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

test(harness-ops): add behavior-probes cases for /autocompact window precedence

未关闭
#6,930 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
shell
领域
testing-qa

调研方向

Start with the existing per-spawn effort cases from #6913 under plugins/harness-ops/skills/behavior-probes/cases/ as a template, and read the runner to see how it passes CLAUDE_CONFIG_DIR through to each case. Then read the observation record from #6906 in context-guard. Done means one autocompact case per table row, each with a paired control, matching the first line of /autocompact output, and user-scope cases that run without touching real settings.

由索引模型根据 Issue 内容生成。

描述

needs-triage priority: low

Problem

The auto-compact window precedence that context-guard records (#6906) was observed once, by hand, on Claude Code 2.1.296 on 2026-10-10. The probe used claude -p "/autocompact" under a throwaway CLAUDE_CONFIG_DIR. Nothing re-checks it when a release changes the resolver. The per-spawn effort precedence, by contrast, is covered by behavior-probes cases (#6913).

Observed:

Setup Reported by /autocompact (no argument)
/autocompact 400000 saves user settings.json at modelSettings.<model id>.autoCompactWindow
+ project top-level autoCompactWindow: 300000 300k: project top-level beats user per-model
user file with top-level 250000 and per-model 400000 400k: per-model beats top-level in the same file
--autocompact 200000 200k: the flag beats settings
CLAUDE_CODE_AUTO_COMPACT_WINDOW=150000 + flag 150k: the env var beats the flag

Proposed next step

  1. Add plugins/harness-ops/skills/behavior-probes/cases/autocompact/* cases with paired controls, one per row.
  2. Each case writes the settings into the case workdir and matches the first line of /autocompact output.
  3. Check whether the runner can isolate CLAUDE_CONFIG_DIR per case. Today it passes the parent's through, so the user-scope rows need that before they can run without touching real settings.
  4. Point context-guard's observation record at the cases once they exist.
主要语言
Shell
星标
22
派生
2
平均合并
6 小时 42 分钟
30 天内合并 PR
902

环境准备

  • 没有 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 摘要。