Skip to content

feat(opencode): generate shorter lowercase session titles - #53182

Closed
moritzWa wants to merge 1 commit into
anomalyco:devfrom
moritzWa:fix/shorter-session-titles
Closed

moritzWa wants to merge 1 commit into
anomalyco:devfrom
moritzWa:fix/shorter-session-titles

Conversation

@moritzWa

@moritzWa moritzWa commented Oct 4, 2026 •

Copy link
Copy Markdown

Issue for this PR

Closes #53173

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Changes the title prompt so generated session titles are short lowercase labels (2–4 words, ≤30 chars) instead of 5–8 word Title Case phrases. It also stops them from starting with "-ing" verbs and from using colons or "&" subtitles. The examples are rewritten to match, since the model follows the examples more than the rules.

The same prompt lives in two places, packages/opencode/src/agent/prompt/title.txt and packages/core/src/plugin/agent.ts, so both are updated. No code changes.

How did you verify your code works?

No tests depend on the prompt text. I ran the same first messages through opencode run in two scratch projects, one with the current prompt and one with the new prompt, both using opencode/big-pickle as the title model. "hey" became "quick greeting" with the new prompt; with the current prompt it timed out, so it's not in the table.

Screenshots / recordings

title prompt comparison

The list screenshots from opencode and Claude Code are in #53173.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Oct 4, 2026
@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Oct 4, 2026
@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@thdxr

thdxr commented Oct 10, 2026

Copy link
Copy Markdown
Member

This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2.

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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.

[FEATURE]: Shorter, lowercase auto-generated session titles

2 participants