Add sessionTitle field to hook output (like additionalContext) for programmatic session renaming
还没有人认领这个 Issue。
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
Currently, hook output only supports additionalContext injection (per docs). There's no way for a hook script to set/update the session title programmatically — the only path is a human typing /rename.
Claude Code supports this via hookSpecificOutput.sessionTitle in its SessionStart/UserPromptSubmit hook output — a deterministic script computes a title and the host applies it directly, no model involvement.
Requesting an equivalent sessionTitle field supported in Copilot CLI's sessionStart and/or agentStop hook output, so a script can rename a session based on info only known after the first prompt (e.g., detected worktree/ticket/PR), without requiring the user to copy-paste /rename <title>.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先跟踪现有的 additionalContext 输出是如何针对 sessionStart 和 agentStop hook 进行解析和应用的。如果存在相关的 hook 输出测试和文档,请检查它们;完成的标准是 hook 可以提供 sessionTitle,并且 CLI 可以将其应用到 session,而无需 /rename。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- shell
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100