You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: V2 session titles include model commentary #51997
This issue might be a duplicate of an existing issue. Please check:
#948: Generated titles sometimes include response text instead of being concise titles, causing non-title model output to appear in the saved session title.
Thanks for the clear report. I reproduced this on 2.0.18, and it still happens on the latest dev (86ce19d).
Steps: I pointed OpenCode at a local mock OpenAI Responses server that returns two messages for every request. The first has phase: "commentary" (We need title only. Need capture investigation. Title concise.) and the second has phase: "final_answer" (Read-only performance investigation). I used the mock as the session model and the title model, ran opencode run "Do a read-only performance investigation across several machines", and checked opencode session list. The saved title was:
We need title only. Need capture investigation. Title concise.Read-only performance investigation
The commentary and the final answer are joined with no separator, so the first-line selection doesn't separate them either. The expected title is just Read-only performance investigation. The script below reproduces it with the CLI.
Related: your PR #52006 (excludes commentary-phase text), #57071 (strips inline reasoning blocks from titles) and #54185 (models replying conversationally instead of giving a title, which has a different cause).
Activity
github-actions commentedon Sep 29, 2026
This issue might be a duplicate of an existing issue. Please check:
shanebishop1 commentedon Sep 29, 2026
#52006 addresses this
opencodejr commentedon Oct 28, 2026
Thanks for the clear report. I reproduced this on 2.0.18, and it still happens on the latest
dev(86ce19d).Steps: I pointed OpenCode at a local mock OpenAI Responses server that returns two messages for every request. The first has
phase: "commentary"(We need title only. Need capture investigation. Title concise.) and the second hasphase: "final_answer"(Read-only performance investigation). I used the mock as the session model and the title model, ranopencode run "Do a read-only performance investigation across several machines", and checkedopencode session list. The saved title was:We need title only. Need capture investigation. Title concise.Read-only performance investigationThe commentary and the final answer are joined with no separator, so the first-line selection doesn't separate them either. The expected title is just
Read-only performance investigation. The script below reproduces it with the CLI.Related: your PR #52006 (excludes commentary-phase text), #57071 (strips inline reasoning blocks from titles) and #54185 (models replying conversationally instead of giving a title, which has a different cause).
Reproduction script (repro.sh)
Run it:
bash repro.sh