Skip to content

fix(agent): derive previews and auto-titles from the original task in dual-model sessions#3958

Merged
esengine merged 1 commit into
main-v2from
fix/dual-model-session-title
Jun 11, 2026
Merged

fix(agent): derive previews and auto-titles from the original task in dual-model sessions#3958
esengine merged 1 commit into
main-v2from
fix/dual-model-session-title

Conversation

@esengine

Copy link
Copy Markdown
Owner

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.HandoffTask extracts 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

… 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
@esengine esengine requested a review from SivanCola as a code owner June 11, 2026 05:42
@github-actions github-actions Bot added v2 Go rewrite (1.x) — main-v2 branch, active development desktop Wails desktop app (desktop/**) agent Core agent loop (internal/agent, internal/control) labels Jun 11, 2026
@esengine esengine merged commit 734d336 into main-v2 Jun 11, 2026
14 checks passed
@esengine esengine deleted the fix/dual-model-session-title branch June 11, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent Core agent loop (internal/agent, internal/control) desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: 双模型(planner+executor)模式下标题取错的输入源

1 participant