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
Add ability to regenerate session title using small model #11988
Currently, session titles are only generated automatically on the first user message. There's no way to:
Regenerate a title if the auto-generated one is poor
Generate a title for sessions that were created before the title feature existed
Use the small model to suggest a better title mid-conversation
Proposed Solution
Add a "Generate title" option that uses the small_model (or falls back to the title agent's configured model) to create a new title based on the conversation history.
Features
API Endpoint: POST /session/:id/generate-title
Optionally accepts a custom prompt/hint as a body parameter
Returns the generated title
UI Integration:
Add "Generate title" item to the session dropdown menu (between Rename and Archive)
Show in both webapp and TUI
Slash Command: /retitle [hint]
No argument: generates title from conversation
With argument: uses the hint to influence title generation (e.g., /retitle focus on the auth refactoring)
Implementation Notes
Reuse the existing title agent and PROMPT_TITLE
Extract title generation logic from ensureTitle() in prompt.ts into a reusable function
Remove the guards that prevent regeneration (isFirst, isDefaultTitle checks)
Use Cases
User wants a more descriptive title after conversation has evolved
Auto-generated title was too generic or missed the main topic
User imported/continued an old session that never got a title
Reacted by Patrick Decat, Chris Lasher, Ivan Gonzalez and Simon Powell
Activity
github-actions commentedon Feb 3, 2026
This issue might be a duplicate of existing issues. Please check:
/renamecommand to be AI powered #9398: [FEATURE]: Improve/renamecommand to be AI powered (directly related - addresses the same need for AI-powered title generation via /rename)Feel free to ignore if none of these address your specific case.
Crystora commentedon Feb 4, 2026
@thdxr Can I try to implement this function and raise a PR?
github-actions commentedon Apr 5, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.