[PR #10101] fix(tui): preserve agent state after compaction #13335

Open
opened 2026-02-16 18:18:12 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/10101

State: open
Merged: No


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

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/10101 **State:** open **Merged:** No --- 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
yindo added the pull-request label 2026-02-16 18:18:12 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13335