docs(evals): note CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS for headless eval runs that use workflows
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 75/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- shell
调研方向
从 evals 插件(plugins/evals,methodology)中的无头运行指南,以及 plugins/skill-quality/reference/invocation-probes.md 中的调用探针参考开始,这两处都展示了 claude -p 的用法。plugins/skill-quality/scripts/measure-invocation.sh 是运行它的脚本。确认 grep -r BG_WAIT 仍然找不到任何内容。完成的标准是:这些位置都指向上游环境变量页面,并标注了截至日期和重新核对的触发条件;说明在 claude -p 下运行的长 Workflows 需要提高上限或设为 0;并且不重复描述默认值。
由索引模型根据 Issue 内容生成。
描述
What was observed
Running a skill-creator old-versus-new comparison headlessly with claude -p killed a Workflow mid-run: claude -p stops waiting for background tasks about 10 minutes after the last turn. Setting CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS=0 avoided it. A search of the repo for BG_WAIT finds no mention, including in plugins/evals (plugin-eval, methodology) and plugins/skill-quality (which do mention claude -p).
The variable is documented upstream: the Claude Code environment variables page lists CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS as the ceiling on idle waiting for background work (subagents, workflows) after the final turn in non-interactive -p mode; 0 waits indefinitely; it requires a recent Claude Code version (v2.1.182 or later per the page). Source: https://code.claude.com/docs/en/env-vars, which links the headless page's "background tasks at exit" section.
Evidence
grep -r "BG_WAIT"over the repo: no matches.plugins/skill-quality/scripts/measure-invocation.shandplugins/skill-quality/reference/invocation-probes.mdrunclaude -pwithout the variable.
Suggested fix
Add a short pointer to the upstream page (with an as-of date and recheck trigger, restating no default) in the headless-run guidance of the evals plugin and the skill-quality invocation-probe reference: long Workflows under claude -p need the ceiling raised or set to 0.
Why it was not fixed in the originating PR
The knowledge came from an eval run, not a change to these files; adding it is a separate docs change.
🤖 Generated with Claude Code
- 主要语言
- Shell
- 星标
- 22
- 派生
- 2
- 平均合并
- 8 小时 34 分钟
- 30 天内合并 PR
- 946
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
melodic-software/claude-code-plugins 的其他 Issue
-
needs-human needs-triage
难度 2/5 1-3 小时 新手友好度 82/100
melodic-software/claude-code-plugins#7636 · 1 条评论 ·
维护者通常 1 天内回复
-
agent-ready needs-human
难度 2/5 1-3 小时 新手友好度 77/100
melodic-software/claude-code-plugins#7598 · 4 条评论 ·
维护者通常 1 天内回复
-
good first issue priority: low
难度 2/5 1-3 小时 新手友好度 62/100
melodic-software/claude-code-plugins#7530 · 1 条评论 ·
维护者通常 1 天内回复
-
needs-human priority: medium
难度 2/5 1-3 小时 新手友好度 65/100
melodic-software/claude-code-plugins#7455 · 1 条评论 ·
维护者通常 1 天内回复
-
priority: medium
难度 2/5 1-3 小时 新手友好度 68/100
melodic-software/claude-code-plugins#7351 · 2 条评论 ·
维护者通常 1 天内回复
查看 melodic-software/claude-code-plugins 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 78/100
-
bug
难度 2/5 1-3 小时 新手友好度 62/100
-
needs-triage
难度 2/5 1-3 小时 新手友好度 84/100
gke-labs/kube-agents#3394 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
area:cli bug good first issue priority:medium
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复