feat: title new sessions from their first message - #2
Open
Mouhand-Kaddo wants to merge 1 commit into
Open
Conversation
Interactive startup and bare /new no longer prompt for a name: the session starts under a timestamp and one background request titles it after the first user message, using the selected provider and model. --name names a session up front; /rename always wins over a pending title. Storage listings now apply the latest rename event so titles show up in session lists, resume-by-name, and name deduplication.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Interactive startup no longer stops at a session-name prompt. The session is created immediately under a timestamp name and titled by one background request after the first user message, using the selected provider/model. Same for bare
/new.--name "Fix login"names a session up front (validated, deduplicated, never auto-titled).--nameis rejected when combined with-p/--prompt,--loop,--chain,-r/--resume,-c/--continue./renameissued while a title is generating always wins.Seams tested (TDD)
sanitize_titlecoercion (multi-line, quotes, length cap, unusable output).list_sessions/resolvereflecting renames.generate_titlevia a fake provider (prompt, sanitization, provider failure)./renamebeats a pending title, invalid titles keep the fallback, a second bare/newin one process titles too.Validation
uv run ruff check src testsclean.uv run python -m pytest— 1108 passed.tests/test_telemetry.pyhas 2 failures + 5 collection errors: pre-existing, from the missing sentry/opentelemetry extras in this environment, unrelated to this change.Reviewed via the two-axis code-review skill; findings fixed before commit.