Skip to content

fix(server): let OpenCode generate session titles - #33

Closed
macodev00 wants to merge 16 commits into
mainfrom
cursor/opencode-session-title-c0c9
Closed

macodev00 wants to merge 16 commits into
mainfrom
cursor/opencode-session-title-c0c9

Conversation

@macodev00

Copy link
Copy Markdown
Owner

What Changed

OpenCode session.create no longer receives a prompt-seed or New thread title. A title is sent only when the user renamed the thread (titleState.source === "manual") and that title is not the first-turn prompt seed.

Why

OpenCode's SessionPrompt.ensureTitle returns immediately unless the session title is still the default New session - / Child session - placeholder. T3 always passed thread.title into session.create, so sessions created from T3 kept the truncated prompt and never ran title generation.

The web client writes that same seed through thread.meta.update before the first turn, which marks the title manual. That seed is still omitted. A later rename, whose text differs from the first-turn seed, is still forwarded.

Fixes pingdotgg#13247

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Grok 4.7

Open in Web Open in Cursor 

juliusmarminge and others added 16 commits September 23, 2026 15:01
…case screenshots (pingdotgg#13316)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com>
Co-authored-by: Exotic <118054752+extoci@users.noreply.github.com>
…otgg#11580)

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Simone <185146821+Lucenx9@users.noreply.github.com>
…3355)

Co-authored-by: Yordis Prieto <yordis.prieto@gmail.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
OpenCode skips SessionPrompt.ensureTitle when session.create already has a title. T3 was sending the prompt seed, so those sessions never got a generated title. Only a user rename is forwarded now.

Fixes pingdotgg#13247
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XXL labels Sep 24, 2026
@cursor

cursor Bot commented Sep 24, 2026

Copy link
Copy Markdown

@coderabbitai review

@macodev00

Copy link
Copy Markdown
Owner Author

Superseded by upstream READY (same head).

@macodev00 macodev00 closed this Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: t3 always passes a title at OpenCode session.create, which suppresses OpenCode's own title generation

8 participants