Repository navigation
fix: publish session titles during the first turn - #811
Merged
Merged
Conversation
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.
A long first turn could leave a new session unnamed while tools ran or waited for approval. On ACP v1 and v2, start title generation as soon as Codex records the first nonblank user message. Send the generated name in
session_info_updateas soon as Codex saves it. If generation fails, returns no usable title, or the save fails, send the normalized prompt text as the fallback. The main turn can finish while generation is still pending.Use the original ACP text so embedded file contents stay out of titles. Match v1 prompts without a client message ID to their accepted turn, including when the recorded item arrives before the
turn/startresponse. A steered prompt can supply the first title. An explicit rename takes precedence.Codex can return a prompt preview while reopening a live thread. Preserve the in-flight title across load and resume so that preview cannot replace it.
Verification