Skip to content

feat(chat): add prompt cache guard for mode switching#927

Merged
wsp1911 merged 1 commit into
GCWing:mainfrom
wsp1911:main
May 28, 2026
Merged

feat(chat): add prompt cache guard for mode switching#927
wsp1911 merged 1 commit into
GCWing:mainfrom
wsp1911:main

Conversation

@wsp1911
Copy link
Copy Markdown
Collaborator

@wsp1911 wsp1911 commented May 28, 2026

  • split session mode tracking into current selection, last surviving dialog mode, and last submitted mode
  • expose prompt cache scope metadata through core, desktop API, and web UI session/mode types
  • warn on send when switching to a mode that invalidates prompt cache reuse
  • keep dialog turn agent type metadata in sync for restore, rollback, and queue flows
  • preserve the input draft when the prompt cache confirmation is dismissed

- split session mode tracking into current selection, last surviving dialog mode, and last submitted mode
- expose prompt cache scope metadata through core, desktop API, and web UI session/mode types
- warn on send when switching to a mode that invalidates prompt cache reuse
- keep dialog turn agent type metadata in sync for restore, rollback, and queue flows
- preserve the input draft when the prompt cache confirmation is dismissed
@wsp1911 wsp1911 merged commit 430eb9d into GCWing:main May 28, 2026
4 checks passed
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