From 3b2aecc92bb1726394b495faaf95f7898973c2e5 Mon Sep 17 00:00:00 2001 From: Deli Gong Date: Wed, 8 Jul 2026 22:09:18 +0800 Subject: [PATCH 1/2] Restore granular disable flags in cc-headless The umbrella CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC also disables the auto-updater, which is why a5b412a deliberately switched to the granular DISABLE_* flags; the README bullet was never updated to match, and the previous commit trusted the README over the config. Revert the env block to the granular flags, keep the removal of the no-op permissions object, and document the rationale in the README so it survives the next cleanup pass. --- cc-headless/.claude/settings.json | 5 ++++- cc-headless/README.md | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cc-headless/.claude/settings.json b/cc-headless/.claude/settings.json index d14bdbf..56dc1f5 100644 --- a/cc-headless/.claude/settings.json +++ b/cc-headless/.claude/settings.json @@ -6,7 +6,10 @@ "sessionUrl": false }, "env": { - "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1", + "DISABLE_TELEMETRY": "1", + "DISABLE_ERROR_REPORTING": "1", + "DISABLE_BUG_COMMAND": "1", + "CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY": "1", "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1", "CLAUDE_CODE_MAX_OUTPUT_TOKENS": "64000" }, diff --git a/cc-headless/README.md b/cc-headless/README.md index 244b82e..f8f043a 100644 --- a/cc-headless/README.md +++ b/cc-headless/README.md @@ -9,7 +9,7 @@ Configuration for running Claude Code with API keys instead of the default subsc - **Custom statusline** showing context usage, model, session count, directory, git info, and line changes - **Model preset** set to Opus - **No Claude attribution** in commits, PRs, or session links (`attribution` set to empty; replaces the deprecated `includeCoAuthoredBy`) -- **Nonessential traffic disabled** — the single `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` variable covers telemetry, error reporting, the `/feedback` command, feedback surveys, and the autoupdater +- **Telemetry disabled** via granular `DISABLE_*` flags — deliberately not the `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` umbrella, which would also disable the auto-updater - **Onboarding bypassed** so Claude Code starts immediately ## Setup From 34148baccc9f2c77c6b3b0a125e9840d9a7cc149 Mon Sep 17 00:00:00 2001 From: Deli Gong Date: Wed, 8 Jul 2026 22:15:01 +0800 Subject: [PATCH 2/2] Trim cc-headless disable flags to the minimal current set CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY is redundant: the survey already suppresses itself whenever DISABLE_TELEMETRY (or DO_NOT_TRACK) sets a non-default telemetry level. Add DISABLE_FEEDBACK_COMMAND, the current name for the /bug -> /feedback rename, and keep DISABLE_BUG_COMMAND so older Claude Code versions stay covered. --- cc-headless/.claude/settings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cc-headless/.claude/settings.json b/cc-headless/.claude/settings.json index 56dc1f5..1ace5f7 100644 --- a/cc-headless/.claude/settings.json +++ b/cc-headless/.claude/settings.json @@ -9,7 +9,7 @@ "DISABLE_TELEMETRY": "1", "DISABLE_ERROR_REPORTING": "1", "DISABLE_BUG_COMMAND": "1", - "CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY": "1", + "DISABLE_FEEDBACK_COMMAND": "1", "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1", "CLAUDE_CODE_MAX_OUTPUT_TOKENS": "64000" },