Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

docs(evals): note CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS for headless eval runs that use workflows

未关闭 适合新手
#7,022 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
75/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
shell
领域
documentation

调研方向

从 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 内容生成。

描述

good first issue needs-human needs-triage priority: low

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.sh and plugins/skill-quality/reference/invocation-probes.md run claude -p without 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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

melodic-software/claude-code-plugins 的其他 Issue

查看 melodic-software/claude-code-plugins 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。