Repository navigation
feat(unstable): add session/set_title method - #2734
Merged
Merged
Conversation
Add schema support for the session-set-title RFD behind the new `unstable_session_set_title` feature, in both v1 and v2: - `session/set_title` request with a required `sessionId` and `title` - response returning the title the agent stored, which may be normalized - `sessionCapabilities.title` (v1) / `session.title` (v2) capability, renamed from `setTitle` in the RFD so later title features can extend the same object - draft overview, initialization, and error page entries
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.
Adds schema support for the session-set-title RFD behind a new
unstable_session_set_titlefeature (included inunstable), in both v1 and v2.Shape
titlefields. A missing,nullor non-string title is rejected, because the Agent stores the request title and the Client displays the response title.sessionCapabilities.titlein v1 andsession.titlein v2, as aSessionTitleCapabilitiesobject where{}means supported. Agents still report titles throughsession/listandsession_info_updatewithout it.Capability name change from the RFD
The RFD proposed
setTitle. Every other session capability is either a method verb (delete,fork,resume) or a feature name (mcp,systemPrompt,additionalDirectories), sosetTitlewould have been the only verb-plus-noun key.titlefollows the feature-name style, and later title features can add fields to it, such as the initial title onsession/newproposed in #1978. I updated the RFD's capability section and revision history to match.Docs
initializationpages (v1 and v2): atitlefield.errorpages (v1 and v2): unknown session gets-32002(the session doesn't have to be active), and a rejected title gets-32602.schema.mdxpages.