set_session_title cannot rename the current session
The ccd_session_mgmt MCP tools exclude the current session:
set_session_titlereturnsSession <id> not foundwhen given the current session's id.list_sessionsdocuments that the current session is excluded, so the id can't even be discovered that way.
The effect is that when a user asks the agent "rename this session", the agent cannot do it — despite the CLI being able to, via /rename and --name. The name is a plain field in ~/.claude/sessions/<pid>.json:
{
"pid": 40854,
"sessionId": "…",
"entrypoint": "claude-desktop",
"name": "business-3f",
"nameSource": "derived"
}
so the restriction reads as arbitrary rather than technical. Writing that field directly does work and survives, but the file is read at startup, so the prompt box may not repaint until the session is resumed.
There is also a second-order effect. The audit-review skill in our repo queues titles for unattended runs in a pending-titles.tsv, on the assumption that a later interactive session drains the queue. When the queued title belongs to the session doing the draining, it can never be applied — the one session that most wants the rename is the one session that cannot perform it.
Request: allow set_session_title to target the current session, or add a dedicated self-rename, matching what /rename already does.
Claude Code 2.1.232, session entrypoint claude-desktop, macOS 25.6.0.