Skip to content

feat: AI session title generation and /rename command - #392

Merged
EugeneTheDev merged 3 commits into
mainfrom
eugenethedev/ai-title-generation
Aug 31, 2026
Merged

feat: AI session title generation and /rename command#392
EugeneTheDev merged 3 commits into
mainfrom
eugenethedev/ai-title-generation

Conversation

@EugeneTheDev

Copy link
Copy Markdown
Collaborator

Summary

  • Adds TitleGenerator: after the first turn of a new session, generates a 3–7 word title via a short ephemeral Codex thread and persists it with thread/name/set. Generation is skipped if the session already has an explicit title or was resumed with an unknown history.
  • Adds /rename as a built-in command in CodexCommands, which calls thread/name/set directly. The resulting thread/name/updated notification from Codex propagates to the ACP client as a session_info_update automatically through the existing notification handler.
  • Adds threadSetName to CodexAppServerClient and renameSession to CodexAcpClient to support both features.

Notes

  • Title generation is fire-and-forget and never blocks the prompt response.
  • If the user renames the session (via /rename or any other means) after AI title generation has run, that explicit rename still propagates to the client via the existing thread/name/updated → session_info_update path.

@EugeneTheDev
EugeneTheDev requested a review from Rizzen August 13, 2026 14:05
Comment thread examples/simple-client.ts Fixed
Comment thread examples/simple-client.ts Fixed
@EugeneTheDev
EugeneTheDev force-pushed the eugenethedev/ai-title-generation branch from 495232e to 4a8437f Compare August 31, 2026 12:25
@EugeneTheDev
EugeneTheDev merged commit 4823131 into main Aug 31, 2026
6 checks passed
@EugeneTheDev
EugeneTheDev deleted the eugenethedev/ai-title-generation branch August 31, 2026 12:30
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