fix(tui): preserve agent state after compaction#10101
fix(tui): preserve agent state after compaction#10101ndarilek wants to merge 2 commits intoanomalyco:devfrom
Conversation
Track lastUserMessage().id changes instead of session ID changes when syncing agent state. Previously, compaction would create a new user message with the current agent mode (e.g., "plan"), but since the session ID stayed the same, the agent state was never synced from it. Fixes anomalyco#8349
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found some potentially related PRs: Most Relevant:
Windows/Path Related:
These PRs could be related to your changes around agent state preservation and Windows path handling. However, none appear to be direct duplicates of PR #10101. The closest related work seems to be PR #7104 on compaction and PR #7206 on TUI agent tasks. |
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
00637c0 to
71e0ba2
Compare
f1ae801 to
08fa7f7
Compare
Track lastUserMessage().id changes instead of session ID changes when
syncing agent state. Previously, compaction would create a new user
message with the current agent mode (e.g., "plan"), but since the
session ID stayed the same, the agent state was never synced from it.
Fixes #8349