fix(agent): derive previews and auto-titles from the original task in dual-model sessions#3958
Merged
Merged
Conversation
… dual-model sessions In planner+executor mode the executor session opens with the handoff boilerplate, so every session preview and auto-generated title collapsed to 'Reasonix executor'. HandoffTask extracts the embedded original task; the session picker, serve preview, and desktop topic titles all use it. Closes #3860
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In planner+executor mode the executor session's first user message is the handoff boilerplate (
# Reasonix executor handoff ... Original task: ...), so every session preview and every auto-generated title collapsed to "Reasonix" / "Reasonix executor" — indistinguishable sessions in the picker and the desktop sidebar. Single-model sessions were unaffected.agent.HandoffTaskextracts the embedded original task from a handoff message (pass-through for anything else), and the three preview/title consumers use it: the CLI session picker (previewSession), the serve preview (previewSessionFile, which also feeds title generation), and the desktop topic auto-title (topicTitleFromSession).The stored session is untouched — only what previews and the title model see changes.
Closes #3860