ai-credits-breakdown: server keeps running and Running list keeps stale entries after closing a canvas
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- javascript, vscode
- 领域
- backend
调研方向
Start by reading ai-credits-breakdown's extension.mjs, especially the canvas close handler and its servers and stopServer logic; the issue does not identify a test file. Reproduce the three-canvas case and check whether closing one tab releases its port and removes its Running entry. Done means both happen for the closed instance while the other canvases keep running.
由索引模型根据 Issue 内容生成。
描述
Summary
Each ai-credits-breakdown canvas instance starts its own local HTTP server. Closing a canvas tab does not stop that server, and the canvas stays listed under "Running".
Environment
- VS Code 1.148.0, macOS (arm64)
ai-credits-breakdownfrom thegithub-awesome-copilotmarketplace, installed under~/.copilot/installed-plugins/awesome-copilot/ai-credits-breakdown
Steps to reproduce
- Open three AI Credits Breakdown canvases, each with a different
instanceId. - Confirm three listening ports on
127.0.0.1owned by one extension-host process (lsof -nP -iTCP -sTCP:LISTEN). In my run these were 47820, 47821 and 47822 under PID 11804. - Close one AI Credits Breakdown tab.
- Re-run the
lsofcheck.
Expected
The closed instance's server stops (onClose calls stopServer), its port is released, and the Running list drops that entry.
Actual
- All three ports are still listening after the close.
- The Running list still shows three AI Credits Breakdown entries.
- Killing the extension-host process removes all three entries from the Running list and frees the ports.
Notes
extension.mjsonCloseremoves the instance fromserversand callsstopServer. The plugin logs nothing on close, so it is not confirmed whetheronCloseruns. Either the handler is not reached, or the host does not call it.- The servers return HTTP 403 to unauthenticated requests, so the ports can be identified without contacting the canvas.
- 主要语言
- JavaScript
- 星标
- 41.8k
- 派生
- 5.5k
- 平均合并
- 1 天 17 小时
- 30 天内合并 PR
- 149
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/awesome-copilot 的其他 Issue
-
external-plugin ready-for-review third party
难度 2/5 1-3 小时 新手友好度 72/100
github/awesome-copilot#6780 · 1 条评论 ·
维护者通常 1 天内回复
-
external-plugin needs-review:MEDIUM ready-for-review
难度 2/5 1-3 小时 新手友好度 64/100
github/awesome-copilot#6751 · 2 条评论 ·
维护者通常 1 天内回复
-
external-plugin requires-submitter-fixes third party
难度 2/5 1-3 小时 新手友好度 70/100
github/awesome-copilot#6661 · 1 条评论 ·
维护者通常 1 天内回复
-
external-plugin ready-for-review
难度 2/5 1-3 小时 新手友好度 67/100
github/awesome-copilot#6659 · 1 条评论 ·
维护者通常 1 天内回复
-
external-plugin needs-review:HIGH ready-for-review third party
难度 2/5 1-3 小时 新手友好度 72/100
github/awesome-copilot#6654 · 2 条评论 ·
维护者通常 1 天内回复
查看 github/awesome-copilot 的全部 Issue
相似的 Issue
-
[workshop-sync] workshop/06-install-gh-aw.md: example version output is outdated (0.81.6 vs v1.2.2)未关闭documentation
难度 1/5 1 小时以内 新手友好度 84/100
githubnext/gh-aw-workshop#6467 ·
维护者通常 1 天内回复
-
bug good first issue help wanted up-for-grabs
难度 2/5 1-3 小时 新手友好度 78/100
ClickHouse/loom#2075 ·
维护者通常 1 天内回复
-
fix
难度 2/5 1-3 小时 新手友好度 68/100
idean3885/claude-ops-agent#1367 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
cytoscape/cytoscape-web#1032 ·
维护者通常 1 天内回复
-
channels:add check:passed
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复