Add session/setTitle method#1199
Open
daniel-agentee wants to merge 1 commit into
Open
Conversation
This was referenced May 14, 2026
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.
Summary
Adds
session/setTitleto the Agent Client Protocol, giving clients a standard way to ask an agent to rename an existing session.Title is plain UTF-8. Empty string remains valid at the protocol level so agents can decide whether that means "clear", "reset", or "use an empty title".
Why
Zed's first-party agent can already rename sessions, but ACP-backed sessions cannot, because there is no protocol method for the client to push a new title to the agent. The user-visible symptom is that the title editor in the agent panel appears for ACP threads but the rename cannot be persisted.
SessionInfoUpdatealready exists in the reverse direction (agent → client) and carriestitle— this PR adds the missing client → agent half of the round-trip.How
SetSessionTitleRequestandSetSessionTitleResponseto the generated v1 and v2 agent schemas.SESSION_SET_TITLE_METHOD_NAME = \"session/setTitle\"to the generated metadata.SetSessionTitle.Tests
Companion PRs
Once this lands I'll open follow-ups for the agent (codex-acp / claude-agent-acp) and client (Zed) sides so the title-editor flow works end-to-end over ACP.