Feature request: let agents/scheduled tasks set their own session (execution) title programmatically
Summary
Please add an agent-callable way to set/rename the current session's (execution's) display title during a run — e.g. an MCP tool like mcp__ccd_session__set_title (idempotent, last-write-wins), or a documented convention a scheduled task can rely on.
Use case
I run a scheduled task every 30 minutes that triages Jira tickets and, whenever it finds one to work, executes it end-to-end (plans, opens PRs across repos, watches CI). Each execution may work a different ticket.
In the executions/sessions list, runs are only distinguishable by timestamp + a random 2-char suffix, so I can't tell which run worked which ticket without opening each one. I'd like each execution to be automatically labeled with the ticket it's working (e.g. SEC-727 — Fix X).
Current state / workarounds
- There is no agent-callable API to set the session title during a run — only manual
/rename(or the dropdown) after the fact. mark_chaptersegments/labels within the transcript (a divider + a jump-to TOC entry), which helps inside a run but does not change the sidebar/list title.- The default display name is
<workdir>-<2char>, which is the same base for every run of a given task.
Requested
- An MCP tool / API the running agent can call to set the current execution's display title (idempotent; last-write-wins) — so an unattended scheduled task can self-label each run with what it's working on.
- Optionally: let the scheduled-task definition specify a title template derived from run content.
Environment
Claude Code desktop — scheduled tasks / routines.