Skip to content

Send the full task to the thread title service - #4829

Merged
brsbl merged 3 commits into
mainfrom
fix/thread-title-full-prompt
Oct 4, 2026
Merged

brsbl merged 3 commits into
mainfrom
fix/thread-title-full-prompt

Conversation

@brsbl

@brsbl brsbl commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Thread title generation sent the AI title service the same 80-column string bb uses as the fallback title, so the task was cut to 80 display columns before inference. This has been true since title generation moved to the templates package in March; #3887 kept the clamp when it split out invoked commands. Anything after the first ~80 characters never reached the model, so it guessed. In Cole's #bugs report, the model only got this:

For the plan graph tooling, Can we show in the background of the plan graph v...

The thread was titled "Add back-button navigation to plan graph tools", even though the request was for a burndown chart.

What changed

  • apps/server/src/services/threads/title-generation.ts: the title service now receives the full cleaned task (from Cole's Fix thread title generation truncating task context #4827, which was auto-closed by the contributor allowlist). It is capped at 4000 display columns so a huge paste can't make titling slow or expensive. Fallback titles still fit 80 columns, and generated titles still fit 48.
  • generate-thread-metadata.md: updated the cleanedPrompt variable description.
  • Tests: added the burndown regression, a test for the 4000-column cap, wide/supplementary Unicode cases, and a long bare skill name.

How you verified

Remote CI (@bb/server title-generation suites). The new burndown and long-skill-name cases fail on main, where the task is cut at 80 columns. The cap test covers a 10,000-character paste.

Original fix by @its-rosetta in #4827.

BB-Thread-ID: thr_a4y66pq7d2

AGENT GENERATED

🤖 Generated with Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@brsbl
brsbl merged commit c201f64 into main Oct 4, 2026
34 checks passed
@brsbl
brsbl deleted the fix/thread-title-full-prompt branch October 4, 2026 00:18
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.

2 participants