Skip to content

feat(session): persist previous agent on switch - #41621

Merged
rekram1-node merged 1 commit into
v2from
persist-agent-switch
Aug 11, 2026
Merged

feat(session): persist previous agent on switch#41621
rekram1-node merged 1 commit into
v2from
persist-agent-switch

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Summary

  • Project agent-switched messages with optional previous, matching model-switched.
  • Durable session.agent.selected still stores only the newly selected agent; projection reads the current Session agent first.
  • Skip no-op agent switches the same way unchanged model switches are ignored.
  • TUI loads the projected switch message so clients see the prior agent.

Test plan

  • packages/core: session-create, session-projector, session-log
  • packages/app: v2 session reducer
  • packages/tui: data event projection
  • typecheck schema, core, client, app, tui

Project agent-switched messages with the prior selection, matching model-switched.
@rekram1-node
rekram1-node merged commit 4df276b into v2 Aug 11, 2026
7 of 8 checks passed
@rekram1-node
rekram1-node deleted the persist-agent-switch branch August 11, 2026 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant