docs(brainstorm): 视觉伴侣补充 Copilot CLI 服务器启动说明#91
Open
qicesun wants to merge 1 commit into
Open
Conversation
Author
|
补充:本次调查还发现两个独立问题,为遵守「一 PR 一问题」已单独开 issue,未捆绑进本 PR:
本 PR 仅解决「缺 Copilot CLI 启动指引 → CLI 卡在 working」这一个症状。 |
Copilot CLI 上视觉伴侣缺少专属启动指引,导致 agent 用阻塞式前台调用启动 server,使 CLI 一直卡在 working。补充 Copilot CLI 段:用后台/异步 shell 模式启动使 server 常驻且工具调用立即返回,收尾用 stop-server.sh。 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
9d8eb36 to
e72b836
Compare
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.
你要解决什么问题?
在 Copilot CLI(Windows,版本 1.0.69-1)上使用 brainstorming 的视觉伴侣时,
skills/brainstorming/visual-companion.md的"按平台启动服务器"一节列出了 Claude Code / Codex / Gemini CLI / 其他环境,但没有 Copilot CLI 条目(上游 obra/superpowers 是有的)。缺少专属指引时,agent 即兴用阻塞式(attached / 前台)命令启动了常驻的
node server.cjs。由于该 web server 永不返回,Copilot CLI 的状态栏跨多个对话轮次一直停在 "working"、对话不回到 idle(用户仍能插话,但状态永不结束)。同时留下 2 个孤儿 server 进程运行了约 3 小时。这个 PR 做了什么改变?
在
visual-companion.md的分平台启动一节补充 "Copilot CLI" 段:指导 agent 用--foreground+ Copilot CLI 的后台/异步 shell 模式启动,使 server 常驻后台、跨轮次存活,同时工具调用立即返回(CLI 回到 idle);收尾用scripts/stop-server.sh停止。单文件、单段落。这个改变适合放在核心库中吗?
适合。本项目 README/描述均声明支持 Copilot CLI,且
visual-companion.md本就按平台给出启动指引——独缺 Copilot CLI。这是核心 brainstorming skill 的基础设施,惠及所有使用 Copilot CLI 视觉伴侣的用户;无第三方依赖、非项目/领域专属。你考虑了哪些替代方案?
server.cjs/start-server.sh生命周期:否决——server 后台常驻是期望行为(用户需要随时查看看板),本问题纯粹是缺启动指引。run_in_background: true、Gemini 的is_background: true),点名更利于 agent 正确执行、也与本文件风格一致。故本段同样点名 bash 工具async: true、powershell 工具detach: true,并说明.sh经 bash 运行(PowerShell 下走 Git Bash);清理指向stop-server.sh。--open、英文mode:"async"):否决——本 fork 全局省略--open,且copilot-tools.md用async: true;逐字镜像反而与 fork 约定冲突。这个 PR 是否包含多个不相关的改变?
否。单文件、单段落新增。两个相关但独立的发现(Windows 孤儿 server bug、Copilot CLI powershell/bash 工具不匹配)已另行开 issue,不捆绑进本 PR。
已有的 PR
visual-companion.md)。二者均未新增 Copilot CLI 启动段,故本 PR 不重复。测试环境
(Windows;Node v24.17.0;Git bash 存在)
评估
node server.cjs≥15s 不返回(会一直占住整轮 → 卡 working)。state/events,全部通过。powershell工具detach: true,经 Git Bash 跑--foreground)启动、调用立即返回、200/403符合预期并自行清理。严格性
superpowers:writing-skills跑对抗压测;改以上述真机 before/after 实测作为证据。人工审核