From d7e3cfb31cef9aa97acf49d8f6ab89c36e877e66 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 5 Feb 2026 17:47:04 +0000 Subject: [PATCH 001/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d19852e127..287e824217 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## 2.1.32 + +- Claude Opus 4.6 is now available! +- Added research preview agent teams feature for multi-agent collaboration (token-intensive feature, requires setting CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1) +- Claude now automatically records and recalls memories as it works +- Added "Summarize from here" to the message selector, allowing partial conversation summarization. +- Skills defined in `.claude/skills/` within additional directories (`--add-dir`) are now loaded automatically. +- Fixed `@` file completion showing incorrect relative paths when running from a subdirectory +- Updated --resume to re-use --agent value specified in previous conversation by default. +- Fixed: Bash tool no longer throws "Bad substitution" errors when heredocs contain JavaScript template literals like `${index + 1}`, which previously interrupted tool execution +- Skill character budget now scales with context window (2% of context), so users with larger context windows can see more skill descriptions without truncation +- Fixed Thai/Lao spacing vowels (สระ า, ำ) not rendering correctly in the input field +- VSCode: Fixed slash commands incorrectly being executed when pressing Enter with preceding text in the input field +- VSCode: Added spinner when loading past conversations list + ## 2.1.31 - Added session resume hint on exit, showing how to continue your conversation later From ef1e0ac0981451ddb924f9c5789949ff48e1995c Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 6 Feb 2026 01:46:32 +0000 Subject: [PATCH 002/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 287e824217..af4f989108 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## 2.1.33 + +- Fixed agent teammate sessions in tmux to send and receive messages +- Fixed warnings about agent teams not being available on your current plan +- Added `TeammateIdle` and `TaskCompleted` hook events for multi-agent workflows +- Added support for restricting which sub-agents can be spawned via `Task(agent_type)` syntax in agent "tools" frontmatter +- Added `memory` frontmatter field support for agents, enabling persistent memory with `user`, `project`, or `local` scope +- Added plugin name to skill descriptions and `/skills` menu for better discoverability +- Fixed an issue where submitting a new message while the model was in extended thinking would interrupt the thinking phase +- Fixed an API error that could occur when aborting mid-stream, where whitespace text combined with a thinking block would bypass normalization and produce an invalid request +- Fixed API proxy compatibility issue where 404 errors on streaming endpoints no longer triggered non-streaming fallback +- Fixed an issue where proxy settings configured via `settings.json` environment variables were not applied to WebFetch and other HTTP requests on the Node.js build +- Fixed `/resume` session picker showing raw XML markup instead of clean titles for sessions started with slash commands +- Improved error messages for API connection failures — now shows specific cause (e.g., ECONNREFUSED, SSL errors) instead of generic "Connection error" +- Errors from invalid managed settings are now surfaced +- VSCode: Added support for remote sessions, allowing OAuth users to browse and resume sessions from claude.ai +- VSCode: Added git branch and message count to the session picker, with support for searching by branch name +- VSCode: Fixed scroll-to-bottom under-scrolling on initial session load and session switch + ## 2.1.32 - Claude Opus 4.6 is now available! From 2bc62d1456e3b3084bb8c7971a8b111ebe5f505d Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 6 Feb 2026 14:26:00 +0000 Subject: [PATCH 003/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index af4f989108..d1f1f91153 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 2.1.34 + +- Fixed a crash when agent teams setting changed between renders +- Fixed a bug where commands excluded from sandboxing (via `sandbox.excludedCommands` or `dangerouslyDisableSandbox`) could bypass the Bash ask permission rule when `autoAllowBashIfSandboxed` was enabled + ## 2.1.33 - Fixed agent teammate sessions in tmux to send and receive messages From e7f36bcdf0c51e3a6be763038ec3b88ad99823d8 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sat, 7 Feb 2026 18:01:26 +0000 Subject: [PATCH 004/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d1f1f91153..132e1d03bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.1.36 + +- Fast mode is now available for Opus 4.6. Learn more at https://code.claude.com/docs/en/fast-mode + ## 2.1.34 - Fixed a crash when agent teams setting changed between renders From 85f28079913b67a498ce16f32fd88aeb72a01939 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sat, 7 Feb 2026 19:09:18 +0000 Subject: [PATCH 005/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 132e1d03bb..cfb32b26da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.1.37 + +- Fixed an issue where /fast was not immediately available after enabling /extra-usage + ## 2.1.36 - Fast mode is now available for Opus 4.6. Learn more at https://code.claude.com/docs/en/fast-mode From 19bb071fe024c1398d3f0a4b3ada25007cf5182c Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 10 Feb 2026 00:52:42 +0000 Subject: [PATCH 006/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cfb32b26da..3a70e67479 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 2.1.38 + +- Fixed VS Code terminal scroll-to-top regression introduced in 2.1.37 +- Fixed Tab key queueing slash commands instead of autocompleting +- Fixed bash permission matching for commands using environment variable wrappers +- Fixed text between tool uses disappearing when not using streaming +- Fixed duplicate sessions when resuming in VS Code extension +- Improved heredoc delimiter parsing to prevent command smuggling +- Blocked writes to `.claude/skills` directory in sandbox mode + ## 2.1.37 - Fixed an issue where /fast was not immediately available after enabling /extra-usage From be5d08fe5f8bcff6c1058fd4ddfce8cc3a32daa3 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 10 Feb 2026 23:10:48 +0000 Subject: [PATCH 007/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a70e67479..e146ed575d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 2.1.39 + +- Improved terminal rendering performance +- Fixed fatal errors being swallowed instead of displayed +- Fixed process hanging after session close +- Fixed character loss at terminal screen boundary +- Fixed blank lines in verbose transcript view + ## 2.1.38 - Fixed VS Code terminal scroll-to-top regression introduced in 2.1.37 From 0b641a77cea9c98e51e6a78169ee7dc5f602c37e Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 11 Feb 2026 08:21:20 +0000 Subject: [PATCH 008/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e146ed575d..6db452b425 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## 2.1.39 +- Added guard against launching Claude Code inside another Claude Code session - Improved terminal rendering performance - Fixed fatal errors being swallowed instead of displayed - Fixed process hanging after session close From bae169824d11df8299fa1d1391de222300c52d3c Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 11 Feb 2026 08:39:40 +0000 Subject: [PATCH 009/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6db452b425..87ba81321f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## 2.1.39 - Added guard against launching Claude Code inside another Claude Code session +- Fixed Agent Teams using wrong model identifier for Bedrock, Vertex, and Foundry customers - Improved terminal rendering performance - Fixed fatal errors being swallowed instead of displayed - Fixed process hanging after session close From 675baffdb30a22fadc6c305dbc2708c4103d860f Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 11 Feb 2026 08:54:27 +0000 Subject: [PATCH 010/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 87ba81321f..9ebbee6152 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Added guard against launching Claude Code inside another Claude Code session - Fixed Agent Teams using wrong model identifier for Bedrock, Vertex, and Foundry customers +- Fixed /resume session previews showing raw XML tags instead of readable command names - Improved terminal rendering performance - Fixed fatal errors being swallowed instead of displayed - Fixed process hanging after session close From 54f0b535b3ad84938f540c1c5c6638c1d028f9b9 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 11 Feb 2026 09:47:22 +0000 Subject: [PATCH 011/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ebbee6152..8c3fde74fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Added guard against launching Claude Code inside another Claude Code session - Fixed Agent Teams using wrong model identifier for Bedrock, Vertex, and Foundry customers +- Fixed a crash when MCP tools return image content during streaming - Fixed /resume session previews showing raw XML tags instead of readable command names - Improved terminal rendering performance - Fixed fatal errors being swallowed instead of displayed From 9b64827a259f72d68f333f41a42708ee13dccd01 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 11 Feb 2026 09:49:08 +0000 Subject: [PATCH 012/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c3fde74fd..5140664405 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Fixed Agent Teams using wrong model identifier for Bedrock, Vertex, and Foundry customers - Fixed a crash when MCP tools return image content during streaming - Fixed /resume session previews showing raw XML tags instead of readable command names +- Improved model error messages for Bedrock/Vertex/Foundry users with fallback suggestions - Improved terminal rendering performance - Fixed fatal errors being swallowed instead of displayed - Fixed process hanging after session close From 7a7bed74e38d7a2a24fc6cb31c934416b890ecc4 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 11 Feb 2026 15:54:36 +0000 Subject: [PATCH 013/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5140664405..59a52d9afa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Fixed a crash when MCP tools return image content during streaming - Fixed /resume session previews showing raw XML tags instead of readable command names - Improved model error messages for Bedrock/Vertex/Foundry users with fallback suggestions +- Added `speed` attribute to OTel events and trace spans for fast mode visibility - Improved terminal rendering performance - Fixed fatal errors being swallowed instead of displayed - Fixed process hanging after session close From e74abe58ab94a5e5c74f3916eb9b61d68c631b29 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 11 Feb 2026 16:07:18 +0000 Subject: [PATCH 014/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 59a52d9afa..6cda38b6c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Fixed a crash when MCP tools return image content during streaming - Fixed /resume session previews showing raw XML tags instead of readable command names - Improved model error messages for Bedrock/Vertex/Foundry users with fallback suggestions +- Fixed hook blocking errors (exit code 2) not showing stderr to the user - Added `speed` attribute to OTel events and trace spans for fast mode visibility - Improved terminal rendering performance - Fixed fatal errors being swallowed instead of displayed From 0a0135f687e3f6ebfd2623c031c6c505c5dbcd54 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 11 Feb 2026 16:20:54 +0000 Subject: [PATCH 015/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6cda38b6c6..f6388b1087 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Fixed a crash when MCP tools return image content during streaming - Fixed /resume session previews showing raw XML tags instead of readable command names - Improved model error messages for Bedrock/Vertex/Foundry users with fallback suggestions +- Fixed plugin browse showing misleading "Space to Toggle" hint for already-installed plugins - Fixed hook blocking errors (exit code 2) not showing stderr to the user - Added `speed` attribute to OTel events and trace spans for fast mode visibility - Improved terminal rendering performance From 6dcc7d8b766113775a2715fe18783ef3ab70a9fd Mon Sep 17 00:00:00 2001 From: Franklin Volcic Date: Wed, 11 Feb 2026 13:42:06 -0800 Subject: [PATCH 016/152] ensure comments are not left if --comment is not present --- plugins/code-review/commands/code-review.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/plugins/code-review/commands/code-review.md b/plugins/code-review/commands/code-review.md index 8fac42311f..2c663cffdf 100644 --- a/plugins/code-review/commands/code-review.md +++ b/plugins/code-review/commands/code-review.md @@ -56,10 +56,15 @@ Note: Still review Claude generated PR's. 6. Filter out any issues that were not validated in step 5. This step will give us our list of high signal issues for our review. -7. If issues were found, skip to step 8 to post inline comments directly. +7. Output a summary of the review findings to the terminal: + - If issues were found, list each issue with a brief description. + - If no issues were found, state: "No issues found. Checked for bugs and CLAUDE.md compliance." - If NO issues were found, post a summary comment using `gh pr comment` (if `--comment` argument is provided): - "No issues found. Checked for bugs and CLAUDE.md compliance." + If `--comment` argument was NOT provided, stop here. Do not post any GitHub comments. + + If `--comment` argument IS provided and NO issues were found, post a summary comment using `gh pr comment` and stop. + + If `--comment` argument IS provided and issues were found, continue to step 8. 8. Create a list of all comments that you plan on leaving. This is only for you to make sure you are comfortable with the comments. Do not post this list anywhere. @@ -85,7 +90,7 @@ Notes: - Use gh CLI to interact with GitHub (e.g., fetch pull requests, create comments). Do not use web fetch. - Create a todo list before starting. - You must cite and link each issue in inline comments (e.g., if referring to a CLAUDE.md, include a link to it). -- If no issues are found, post a comment with the following format: +- If no issues are found and `--comment` argument is provided, post a comment with the following format: --- From aca4801e9182692cf99e223a77c64386ac2dfc16 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 12 Feb 2026 01:56:04 +0000 Subject: [PATCH 017/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f6388b1087..e2aa5beb64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - Fixed plugin browse showing misleading "Space to Toggle" hint for already-installed plugins - Fixed hook blocking errors (exit code 2) not showing stderr to the user - Added `speed` attribute to OTel events and trace spans for fast mode visibility +- Fixed /resume showing interrupt messages as session titles - Improved terminal rendering performance - Fixed fatal errors being swallowed instead of displayed - Fixed process hanging after session close From 76a2154fd5e7e6db75119593bd68d84b0eb7e154 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 12 Feb 2026 05:59:28 +0000 Subject: [PATCH 018/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e2aa5beb64..9eb59e4006 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ - Fixed hook blocking errors (exit code 2) not showing stderr to the user - Added `speed` attribute to OTel events and trace spans for fast mode visibility - Fixed /resume showing interrupt messages as session titles +- Fixed Opus 4.6 launch announcement showing for Bedrock/Vertex/Foundry users - Improved terminal rendering performance - Fixed fatal errors being swallowed instead of displayed - Fixed process hanging after session close From a17040212cb5347411ac85349279034aef6a4dc0 Mon Sep 17 00:00:00 2001 From: Chris Lloyd Date: Wed, 11 Feb 2026 22:34:23 -0800 Subject: [PATCH 019/152] Add daily sweep to enforce issue lifecycle label timeouts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduce a simple, mechanical daily sweep that closes issues with lifecycle labels past their timeout: - needs-repro: 7 days - needs-info: 7 days - needs-votes: 30 days - stale: 30 days The sweep checks when the label was last applied via the events API, and closes the issue if the timeout has elapsed. No AI, no comment checking — if the label is still there past its timeout, close it. Removing a label (by a triager, slash command, or future AI retriage) is what prevents closure. Each close message directs the reporter to open a new issue rather than engaging with the closed one. The script supports --dry-run for local testing: GITHUB_TOKEN=$(gh auth token) \ GITHUB_REPOSITORY_OWNER=anthropics \ GITHUB_REPOSITORY_NAME=claude-code \ bun run scripts/sweep.ts --dry-run ## Test plan Ran --dry-run against anthropics/claude-code. Correctly identified 3 issues past their timeouts (1 needs-repro at 12d, 2 needs-info at 14d and 26d). No false positives. --- .github/workflows/sweep.yml | 31 +++++++++++ scripts/sweep.ts | 106 ++++++++++++++++++++++++++++++++++++ 2 files changed, 137 insertions(+) create mode 100644 .github/workflows/sweep.yml create mode 100644 scripts/sweep.ts diff --git a/.github/workflows/sweep.yml b/.github/workflows/sweep.yml new file mode 100644 index 0000000000..771974fe7d --- /dev/null +++ b/.github/workflows/sweep.yml @@ -0,0 +1,31 @@ +name: "Daily Issue Sweep" + +on: + schedule: + - cron: "0 10 * * *" # 2am Pacific + workflow_dispatch: + +permissions: + issues: write + +concurrency: + group: daily-issue-sweep + +jobs: + sweep: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Enforce lifecycle timeouts + run: bun run scripts/sweep.ts + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }} + GITHUB_REPOSITORY_NAME: ${{ github.event.repository.name }} diff --git a/scripts/sweep.ts b/scripts/sweep.ts new file mode 100644 index 0000000000..73058e8f44 --- /dev/null +++ b/scripts/sweep.ts @@ -0,0 +1,106 @@ +#!/usr/bin/env bun + +// -- + +const NEW_ISSUE = "https://github.com/anthropics/claude-code/issues/new/choose"; +const DRY_RUN = process.argv.includes("--dry-run"); + +const lifecycle = [ + { label: "needs-repro", days: 7 }, + { label: "needs-info", days: 7 }, + { label: "needs-votes", days: 30 }, + { label: "stale", days: 30 }, +]; + +const closeMessages: Record = { + "needs-repro": `Closing — we weren't able to get the reproduction steps needed to investigate.\n\nIf this is still a problem, please [open a new issue](${NEW_ISSUE}) with steps to reproduce.`, + "needs-info": `Closing — we didn't receive the information needed to move forward.\n\nIf this is still a problem, please [open a new issue](${NEW_ISSUE}) with the requested details.`, + "needs-votes": `Closing this feature request — it didn't get enough community support to prioritize.\n\nIf you'd still like to see this, please [open a new feature request](${NEW_ISSUE}) with more context about the use case.`, + stale: `Closing due to inactivity.\n\nIf this is still a problem, please [open a new issue](${NEW_ISSUE}) with up-to-date information.`, +}; + +// -- + +async function githubRequest( + endpoint: string, + method = "GET", + body?: unknown +): Promise { + const token = process.env.GITHUB_TOKEN; + if (!token) throw new Error("GITHUB_TOKEN required"); + + const response = await fetch(`https://api.github.com${endpoint}`, { + method, + headers: { + Authorization: `Bearer ${token}`, + Accept: "application/vnd.github.v3+json", + "User-Agent": "sweep", + ...(body && { "Content-Type": "application/json" }), + }, + ...(body && { body: JSON.stringify(body) }), + }); + + if (!response.ok) { + if (response.status === 404) return {} as T; + const text = await response.text(); + throw new Error(`GitHub API ${response.status}: ${text}`); + } + + return response.json(); +} + +// -- + +async function main() { + const owner = process.env.GITHUB_REPOSITORY_OWNER; + const repo = process.env.GITHUB_REPOSITORY_NAME; + if (!owner || !repo) + throw new Error("GITHUB_REPOSITORY_OWNER and GITHUB_REPOSITORY_NAME required"); + + if (DRY_RUN) console.log("DRY RUN — no issues will be closed\n"); + + let closed = 0; + + for (const { label, days } of lifecycle) { + const cutoff = new Date(); + cutoff.setDate(cutoff.getDate() - days); + console.log(`\n=== ${label} (${days}d timeout) ===`); + + for (let page = 1; page <= 10; page++) { + const issues = await githubRequest( + `/repos/${owner}/${repo}/issues?state=open&labels=${label}&sort=updated&direction=asc&per_page=100&page=${page}` + ); + if (issues.length === 0) break; + + for (const issue of issues) { + if (issue.pull_request) continue; + const base = `/repos/${owner}/${repo}/issues/${issue.number}`; + + const events = await githubRequest(`${base}/events?per_page=100`); + + const labeledAt = events + .filter((e) => e.event === "labeled" && e.label?.name === label) + .map((e) => new Date(e.created_at)) + .pop(); + + if (!labeledAt || labeledAt > cutoff) continue; + + if (DRY_RUN) { + const age = Math.floor((Date.now() - labeledAt.getTime()) / 86400000); + console.log(`#${issue.number}: would close (${label}, ${age}d old) — ${issue.title}`); + } else { + await githubRequest(`${base}/comments`, "POST", { body: closeMessages[label] }); + await githubRequest(base, "PATCH", { state: "closed", state_reason: "not_planned" }); + console.log(`#${issue.number}: closed (${label})`); + } + closed++; + } + } + } + + console.log(`\nDone: ${closed} ${DRY_RUN ? "would be closed" : "closed"}`); +} + +main().catch(console.error); + +export {}; From 77df0af7788f13fa72b072d6d74b3aac7716fe44 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 12 Feb 2026 09:24:03 +0000 Subject: [PATCH 020/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9eb59e4006..3ce83d1e0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - Added `speed` attribute to OTel events and trace spans for fast mode visibility - Fixed /resume showing interrupt messages as session titles - Fixed Opus 4.6 launch announcement showing for Bedrock/Vertex/Foundry users +- Improved error message for many-image dimension limit errors with /compact suggestion - Improved terminal rendering performance - Fixed fatal errors being swallowed instead of displayed - Fixed process hanging after session close From 0931fb76daabd9c68a6aa6d799ba2594d63de42c Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 12 Feb 2026 17:25:52 +0000 Subject: [PATCH 021/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ce83d1e0f..4efefd1f38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - Fixed /resume showing interrupt messages as session titles - Fixed Opus 4.6 launch announcement showing for Bedrock/Vertex/Foundry users - Improved error message for many-image dimension limit errors with /compact suggestion +- Fixed structured-outputs beta header being sent unconditionally on Vertex/Bedrock - Improved terminal rendering performance - Fixed fatal errors being swallowed instead of displayed - Fixed process hanging after session close From a93966285e5d2f1c3bb6fd45a550bfff5f09f897 Mon Sep 17 00:00:00 2001 From: Chris Lloyd Date: Thu, 12 Feb 2026 11:45:31 -0800 Subject: [PATCH 022/152] Unify issue lifecycle labeling and sweep into a single system (#25352) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Unify issue lifecycle labeling and sweep into a single system Consolidate issue triage, stale detection, and lifecycle enforcement into two components: a Claude-powered triage workflow and a unified sweep script. Triage workflow changes: - Add issue_comment trigger so Claude can re-evaluate lifecycle labels when someone responds to a needs-repro/needs-info issue - Add concurrency group per issue with cancel-in-progress to avoid pile-up - Filter out bot comments to prevent sweep/dedupe triggering re-triage - Hardcode allowed label whitelist to prevent label sprawl (was discovering labels via gh label list, leading to junk variants like 'needs repro' vs 'needs-repro') - Replace MCP GitHub server with gh CLI — simpler, no Docker dependency, chaining is caught by the action so permissions are equivalent - Add lifecycle labels (needs-repro, needs-info) for bugs missing info - Add invalid label for off-topic issues (Claude API, billing, etc.) - Add anti-patterns to prevent false positives (don't require specific format, model behavior issues don't need traditional repro, etc.) Sweep script changes: - Absorb stale issue detection (was separate stale-issue-manager workflow) - Mark issues as stale after 14 days of inactivity - Skip assigned issues (team is working on it internally) - Skip enhancements with 10+ thumbs up (community wants it) - Add invalid label with 3-day timeout - Add autoclose label support to drain 200+ legacy issues - Drop needs-votes (stale handles inactive enhancements) - Unify close messages into a single template with per-label reasons - Run 2x daily instead of once Delete stale-issue-manager.yml — its logic is now in sweep.ts. ## Test plan Dry-run sweep locally: GITHUB_TOKEN=$(gh auth token) GITHUB_REPOSITORY_OWNER=anthropics GITHUB_REPOSITORY_NAME=claude-code bun run scripts/sweep.ts --dry-run Triage workflow will be tested by opening a test issue after merge. * Update .github/workflows/claude-issue-triage.yml Co-authored-by: Ashwin Bhat --------- Co-authored-by: Ashwin Bhat --- .github/workflows/claude-issue-triage.yml | 137 ++++++++++--------- .github/workflows/stale-issue-manager.yml | 157 ---------------------- .github/workflows/sweep.yml | 4 +- scripts/sweep.ts | 97 ++++++++++--- 4 files changed, 147 insertions(+), 248 deletions(-) delete mode 100644 .github/workflows/stale-issue-manager.yml diff --git a/.github/workflows/claude-issue-triage.yml b/.github/workflows/claude-issue-triage.yml index 02695ad8b8..95ed66f94c 100644 --- a/.github/workflows/claude-issue-triage.yml +++ b/.github/workflows/claude-issue-triage.yml @@ -1,13 +1,20 @@ name: Claude Issue Triage -description: Automatically triage GitHub issues using Claude Code on: issues: types: [opened] + issue_comment: + types: [created] jobs: triage-issue: runs-on: ubuntu-latest timeout-minutes: 10 + if: >- + github.event_name == 'issues' || + (github.event_name == 'issue_comment' && !github.event.issue.pull_request && github.event.comment.user.type != 'Bot') + concurrency: + group: issue-triage-${{ github.event.issue.number }} + cancel-in-progress: true permissions: contents: read issues: write @@ -17,30 +24,6 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Setup GitHub MCP Server - run: | - mkdir -p /tmp/mcp-config - cat > /tmp/mcp-config/mcp-servers.json << 'EOF' - { - "mcpServers": { - "github": { - "command": "docker", - "args": [ - "run", - "-i", - "--rm", - "-e", - "GITHUB_PERSONAL_ACCESS_TOKEN", - "ghcr.io/github/github-mcp-server:sha-7aced2b" - ], - "env": { - "GITHUB_PERSONAL_ACCESS_TOKEN": "${{ secrets.GITHUB_TOKEN }}" - } - } - } - } - EOF - - name: Run Claude Code for Issue Triage timeout-minutes: 5 uses: anthropics/claude-code-action@v1 @@ -50,56 +33,72 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} allowed_non_write_users: "*" prompt: | - You're an issue triage assistant for GitHub issues. Your task is to analyze the issue and select appropriate labels from the provided list. + You're an issue triage assistant. Analyze the issue and manage labels. - IMPORTANT: Don't post any comments or messages to the issue. Your only action should be to apply labels. + IMPORTANT: Don't post any comments or messages to the issue. Your only actions are adding or removing labels. - Issue Information: + Context: - REPO: ${{ github.repository }} - ISSUE_NUMBER: ${{ github.event.issue.number }} + - EVENT: ${{ github.event_name }} + + ALLOWED LABELS — you may ONLY use labels from this list. Never invent new labels. + + Type: bug, enhancement, question, documentation, duplicate, invalid + Lifecycle: needs-repro, needs-info + Platform: platform:linux, platform:macos, platform:windows, platform:wsl, platform:ios, platform:android, platform:vscode, platform:intellij, platform:web, platform:aws-bedrock + API: api:bedrock, api:vertex + + TOOLS: + - `gh issue view NUMBER`: Read the issue title, body, and labels + - `gh issue view NUMBER --comments`: Read the conversation + - `gh search issues QUERY`: Find similar or duplicate issues + - `gh issue edit NUMBER --add-label` / `--remove-label`: Add or remove labels + + TASK: + + 1. Run `gh issue view ${{ github.event.issue.number }}` to read the issue details. + 2. Run `gh issue view ${{ github.event.issue.number }} --comments` to read the conversation. + + **If EVENT is "issues" (new issue):** + + 3. First, check if this issue is actually about Claude Code (the CLI/IDE tool). Issues about the Claude API, claude.ai, the Claude app, Anthropic billing, or other Anthropic products should be labeled `invalid`. If invalid, apply only that label and stop. + + 4. Analyze and apply category labels: + - Type (bug, enhancement, question, etc.) + - Technical areas and platform + - Check for duplicates with `gh search issues`. Only mark as duplicate of OPEN issues. + + 5. Evaluate lifecycle labels: + - `needs-repro` (bugs only, 7 days): Bug reports without clear steps to reproduce. A good repro has specific, followable steps that someone else could use to see the same issue. + Do NOT apply if the user already provided error messages, logs, file paths, or a description of what they did. Don't require a specific format — narrative descriptions count. + For model behavior issues (e.g. "Claude does X when it should do Y"), don't require traditional repro steps — examples and patterns are sufficient. + - `needs-info` (bugs only, 7 days): The issue needs something from the community before it can progress — e.g. error messages, versions, environment details, or answers to follow-up questions. Don't apply to questions or enhancements. + Do NOT apply if the user already provided version, environment, and error details. If the issue just needs engineering investigation, that's not `needs-info`. + + Issues with these labels are automatically closed after the timeout if there's no response. + The goal is to avoid issues lingering without a clear next step. + + 6. Apply all selected labels: + `gh issue edit ${{ github.event.issue.number }} --add-label "label1" --add-label "label2"` + + **If EVENT is "issue_comment" (comment on existing issue):** + + 3. Evaluate lifecycle labels based on the full conversation: + - If the issue has `needs-repro` or `needs-info` and the missing information has now been provided, remove the label: + `gh issue edit ${{ github.event.issue.number }} --remove-label "needs-repro"` + - If the issue doesn't have lifecycle labels but clearly needs them (e.g., a maintainer asked for repro steps or more details), add the appropriate label. + - Comments like "+1", "me too", "same here", or emoji reactions are NOT the missing information. Only remove labels when substantive details are actually provided. + - Do NOT add or remove category labels (bug, enhancement, etc.) on comment events. - TASK OVERVIEW: - - 1. First, fetch the list of labels available in this repository by running: `gh label list`. Run exactly this command with nothing else. - - 2. Next, use the GitHub tools to get context about the issue: - - You have access to these tools: - - mcp__github__get_issue: Use this to retrieve the current issue's details including title, description, and existing labels - - mcp__github__get_issue_comments: Use this to read any discussion or additional context provided in the comments - - mcp__github__update_issue: Use this to apply labels to the issue (do not use this for commenting) - - mcp__github__search_issues: Use this to find similar issues that might provide context for proper categorization and to identify potential duplicate issues - - mcp__github__list_issues: Use this to understand patterns in how other issues are labeled - - Start by using mcp__github__get_issue to get the issue details - - 3. Analyze the issue content, considering: - - The issue title and description - - The type of issue (bug report, feature request, question, etc.) - - Technical areas mentioned - - Severity or priority indicators - - User impact - - Components affected - - 4. Select appropriate labels from the available labels list provided above: - - Choose labels that accurately reflect the issue's nature - - Be specific but comprehensive - - Select priority labels if you can determine urgency (high-priority, med-priority, or low-priority) - - Consider platform labels (android, ios) if applicable - - If you find similar issues using mcp__github__search_issues, consider using a "duplicate" label if appropriate. Only do so if the issue is a duplicate of another OPEN issue. - - 5. Apply the selected labels: - - Use mcp__github__update_issue to apply your selected labels - - DO NOT post any comments explaining your decision - - DO NOT communicate directly with users - - If no labels are clearly applicable, do not apply any labels - - IMPORTANT GUIDELINES: - - Be thorough in your analysis - - Only select labels from the provided list above + GUIDELINES: + - ONLY use labels from the ALLOWED LABELS list above — never create or guess label names - DO NOT post any comments to the issue - - Your ONLY action should be to apply labels using mcp__github__update_issue + - Be conservative with lifecycle labels — only apply when clearly warranted + - Only apply lifecycle labels (`needs-repro`, `needs-info`) to bugs — never to questions or enhancements + - When in doubt, don't apply a lifecycle label — false positives are worse than missing labels - It's okay to not add any labels if none are clearly applicable anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} claude_args: | - --model claude-sonnet-4-5-20250929 - --mcp-config /tmp/mcp-config/mcp-servers.json - --allowedTools "Bash(gh label list),mcp__github__get_issue,mcp__github__get_issue_comments,mcp__github__update_issue,mcp__github__search_issues,mcp__github__list_issues" + --model claude-opus-4-6 + --allowedTools "Bash(gh issue view:*),Bash(gh issue edit:*),Bash(gh search issues:*)" diff --git a/.github/workflows/stale-issue-manager.yml b/.github/workflows/stale-issue-manager.yml deleted file mode 100644 index 7da781377f..0000000000 --- a/.github/workflows/stale-issue-manager.yml +++ /dev/null @@ -1,157 +0,0 @@ -name: "Manage Stale Issues" - -on: - schedule: - # 2am Pacific = 9am UTC (10am UTC during DST) - - cron: "0 10 * * *" - workflow_dispatch: - -permissions: - issues: write - -concurrency: - group: stale-issue-manager - -jobs: - manage-stale-issues: - runs-on: ubuntu-latest - steps: - - name: Manage stale issues - uses: actions/github-script@v7 - with: - script: | - const oneMonthAgo = new Date(); - oneMonthAgo.setDate(oneMonthAgo.getDate() - 30); - - const twoMonthsAgo = new Date(); - twoMonthsAgo.setDate(twoMonthsAgo.getDate() - 60); - - const warningComment = `This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.`; - - const closingComment = `This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.`; - - let page = 1; - let hasMore = true; - let totalWarned = 0; - let totalClosed = 0; - let totalLabeled = 0; - - while (hasMore) { - // Get open issues sorted by last updated (oldest first) - const { data: issues } = await github.rest.issues.listForRepo({ - owner: context.repo.owner, - repo: context.repo.repo, - state: 'open', - sort: 'updated', - direction: 'asc', - per_page: 100, - page: page - }); - - if (issues.length === 0) { - hasMore = false; - break; - } - - for (const issue of issues) { - // Skip if already locked - if (issue.locked) continue; - - // Skip pull requests - if (issue.pull_request) continue; - - // Check if updated more recently than 30 days ago - const updatedAt = new Date(issue.updated_at); - if (updatedAt > oneMonthAgo) { - // Since issues are sorted by updated_at ascending, - // once we hit a recent issue, all remaining will be recent too - hasMore = false; - break; - } - - // Check if issue has autoclose label - const hasAutocloseLabel = issue.labels.some(label => - typeof label === 'object' && label.name === 'autoclose' - ); - - try { - // Get comments to check for existing warning - const { data: comments } = await github.rest.issues.listComments({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: issue.number, - per_page: 100 - }); - - // Find the last comment from github-actions bot - const botComments = comments.filter(comment => - comment.user && comment.user.login === 'github-actions[bot]' && - comment.body && comment.body.includes('inactive for 30 days') - ); - - const lastBotComment = botComments[botComments.length - 1]; - - if (lastBotComment) { - // Check if the bot comment is older than 30 days (total 60 days of inactivity) - const botCommentDate = new Date(lastBotComment.created_at); - if (botCommentDate < oneMonthAgo) { - // Close the issue - it's been stale for 60+ days - console.log(`Closing issue #${issue.number} (stale for 60+ days): ${issue.title}`); - - // Post closing comment - await github.rest.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: issue.number, - body: closingComment - }); - - // Close the issue - await github.rest.issues.update({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: issue.number, - state: 'closed', - state_reason: 'not_planned' - }); - - totalClosed++; - } - // If bot comment exists but is recent, issue already has warning - } else if (updatedAt < oneMonthAgo) { - // No bot warning yet, issue is 30+ days old - console.log(`Warning issue #${issue.number} (stale for 30+ days): ${issue.title}`); - - // Post warning comment - await github.rest.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: issue.number, - body: warningComment - }); - - totalWarned++; - - // Add autoclose label if not present - if (!hasAutocloseLabel) { - await github.rest.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: issue.number, - labels: ['autoclose'] - }); - totalLabeled++; - } - } - } catch (error) { - console.error(`Failed to process issue #${issue.number}: ${error.message}`); - } - } - - page++; - } - - console.log(`Summary:`); - console.log(`- Issues warned (30 days stale): ${totalWarned}`); - console.log(`- Issues labeled with autoclose: ${totalLabeled}`); - console.log(`- Issues closed (60 days stale): ${totalClosed}`); diff --git a/.github/workflows/sweep.yml b/.github/workflows/sweep.yml index 771974fe7d..e6023cbbbc 100644 --- a/.github/workflows/sweep.yml +++ b/.github/workflows/sweep.yml @@ -1,8 +1,8 @@ -name: "Daily Issue Sweep" +name: "Issue Sweep" on: schedule: - - cron: "0 10 * * *" # 2am Pacific + - cron: "0 10,22 * * *" workflow_dispatch: permissions: diff --git a/scripts/sweep.ts b/scripts/sweep.ts index 73058e8f44..8a67a45822 100644 --- a/scripts/sweep.ts +++ b/scripts/sweep.ts @@ -4,21 +4,20 @@ const NEW_ISSUE = "https://github.com/anthropics/claude-code/issues/new/choose"; const DRY_RUN = process.argv.includes("--dry-run"); +const STALE_DAYS = 14; +const STALE_UPVOTE_THRESHOLD = 10; + +const CLOSE_MESSAGE = (reason: string) => + `Closing for now — ${reason}. Please [open a new issue](${NEW_ISSUE}) if this is still relevant.`; const lifecycle = [ - { label: "needs-repro", days: 7 }, - { label: "needs-info", days: 7 }, - { label: "needs-votes", days: 30 }, - { label: "stale", days: 30 }, + { label: "invalid", days: 3, reason: "this doesn't appear to be about Claude Code" }, + { label: "needs-repro", days: 7, reason: "we still need reproduction steps to investigate" }, + { label: "needs-info", days: 7, reason: "we still need a bit more information to move forward" }, + { label: "stale", days: 14, reason: "inactive for too long" }, + { label: "autoclose", days: 14, reason: "inactive for too long" }, ]; -const closeMessages: Record = { - "needs-repro": `Closing — we weren't able to get the reproduction steps needed to investigate.\n\nIf this is still a problem, please [open a new issue](${NEW_ISSUE}) with steps to reproduce.`, - "needs-info": `Closing — we didn't receive the information needed to move forward.\n\nIf this is still a problem, please [open a new issue](${NEW_ISSUE}) with the requested details.`, - "needs-votes": `Closing this feature request — it didn't get enough community support to prioritize.\n\nIf you'd still like to see this, please [open a new feature request](${NEW_ISSUE}) with more context about the use case.`, - stale: `Closing due to inactivity.\n\nIf this is still a problem, please [open a new issue](${NEW_ISSUE}) with up-to-date information.`, -}; - // -- async function githubRequest( @@ -51,17 +50,59 @@ async function githubRequest( // -- -async function main() { - const owner = process.env.GITHUB_REPOSITORY_OWNER; - const repo = process.env.GITHUB_REPOSITORY_NAME; - if (!owner || !repo) - throw new Error("GITHUB_REPOSITORY_OWNER and GITHUB_REPOSITORY_NAME required"); +async function markStale(owner: string, repo: string) { + const cutoff = new Date(); + cutoff.setDate(cutoff.getDate() - STALE_DAYS); + + let labeled = 0; + + console.log(`\n=== marking stale (${STALE_DAYS}d inactive) ===`); + + for (let page = 1; page <= 10; page++) { + const issues = await githubRequest( + `/repos/${owner}/${repo}/issues?state=open&sort=updated&direction=asc&per_page=100&page=${page}` + ); + if (issues.length === 0) break; + + for (const issue of issues) { + if (issue.pull_request) continue; + if (issue.locked) continue; + if (issue.assignees?.length > 0) continue; + + const updatedAt = new Date(issue.updated_at); + if (updatedAt > cutoff) return labeled; + + const alreadyStale = issue.labels?.some( + (l: any) => l.name === "stale" || l.name === "autoclose" + ); + if (alreadyStale) continue; + + const isEnhancement = issue.labels?.some( + (l: any) => l.name === "enhancement" + ); + const thumbsUp = issue.reactions?.["+1"] ?? 0; + if (isEnhancement && thumbsUp >= STALE_UPVOTE_THRESHOLD) continue; + + const base = `/repos/${owner}/${repo}/issues/${issue.number}`; - if (DRY_RUN) console.log("DRY RUN — no issues will be closed\n"); + if (DRY_RUN) { + const age = Math.floor((Date.now() - updatedAt.getTime()) / 86400000); + console.log(`#${issue.number}: would label stale (${age}d inactive) — ${issue.title}`); + } else { + await githubRequest(`${base}/labels`, "POST", { labels: ["stale"] }); + console.log(`#${issue.number}: labeled stale — ${issue.title}`); + } + labeled++; + } + } + + return labeled; +} +async function closeExpired(owner: string, repo: string) { let closed = 0; - for (const { label, days } of lifecycle) { + for (const { label, days, reason } of lifecycle) { const cutoff = new Date(); cutoff.setDate(cutoff.getDate() - days); console.log(`\n=== ${label} (${days}d timeout) ===`); @@ -89,7 +130,7 @@ async function main() { const age = Math.floor((Date.now() - labeledAt.getTime()) / 86400000); console.log(`#${issue.number}: would close (${label}, ${age}d old) — ${issue.title}`); } else { - await githubRequest(`${base}/comments`, "POST", { body: closeMessages[label] }); + await githubRequest(`${base}/comments`, "POST", { body: CLOSE_MESSAGE(reason) }); await githubRequest(base, "PATCH", { state: "closed", state_reason: "not_planned" }); console.log(`#${issue.number}: closed (${label})`); } @@ -98,7 +139,23 @@ async function main() { } } - console.log(`\nDone: ${closed} ${DRY_RUN ? "would be closed" : "closed"}`); + return closed; +} + +// -- + +async function main() { + const owner = process.env.GITHUB_REPOSITORY_OWNER; + const repo = process.env.GITHUB_REPOSITORY_NAME; + if (!owner || !repo) + throw new Error("GITHUB_REPOSITORY_OWNER and GITHUB_REPOSITORY_NAME required"); + + if (DRY_RUN) console.log("DRY RUN — no changes will be made\n"); + + const labeled = await markStale(owner, repo); + const closed = await closeExpired(owner, repo); + + console.log(`\nDone: ${labeled} ${DRY_RUN ? "would be labeled" : "labeled"} stale, ${closed} ${DRY_RUN ? "would be closed" : "closed"}`); } main().catch(console.error); From 232213304d3e1e936262b8596c6764f46798fd83 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 12 Feb 2026 21:17:39 +0000 Subject: [PATCH 023/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4efefd1f38..e3ed77e1a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ - Fixed Opus 4.6 launch announcement showing for Bedrock/Vertex/Foundry users - Improved error message for many-image dimension limit errors with /compact suggestion - Fixed structured-outputs beta header being sent unconditionally on Vertex/Bedrock +- Fixed spurious warnings for non-agent markdown files in `.claude/agents/` directory - Improved terminal rendering performance - Fixed fatal errors being swallowed instead of displayed - Fixed process hanging after session close From 1b505833825348e6ef4b7d204d40afa72e2f3bb2 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 13 Feb 2026 06:07:54 +0000 Subject: [PATCH 024/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e3ed77e1a1..28076adc4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## 2.1.41 + +- Fixed AWS auth refresh hanging indefinitely by adding a 3-minute timeout +- Added `claude auth login`, `claude auth status`, and `claude auth logout` CLI subcommands +- Added Windows ARM64 (win32-arm64) native binary support +- Improved `/rename` to auto-generate session name from conversation context when called without arguments +- Improved narrow terminal layout for prompt footer +- Fixed file resolution failing for @-mentions with anchor fragments (e.g., `@README.md#installation`) +- Fixed FileReadTool blocking the process on FIFOs, `/dev/stdin`, and large files +- Fixed background task notifications not being delivered in streaming Agent SDK mode +- Fixed cursor jumping to end on each keystroke in classifier rule input +- Fixed markdown link display text being dropped for raw URL +- Fixed auto-compact failure error notifications being shown to users +- Fixed permission wait time being included in subagent elapsed time display +- Fixed proactive ticks firing while in plan mode +- Fixed clear stale permission rules when settings change on disk +- Fixed hook blocking errors showing stderr content in UI + ## 2.1.39 - Added guard against launching Claude Code inside another Claude Code session From 42c62d73ceb48e15ddefa8b2da363c5400ccd152 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 13 Feb 2026 17:43:37 +0000 Subject: [PATCH 025/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28076adc4d..371a6f145c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,14 @@ ## 2.1.41 -- Fixed AWS auth refresh hanging indefinitely by adding a 3-minute timeout +- Added guard against launching Claude Code inside another Claude Code session +- Fixed Agent Teams using wrong model identifier for Bedrock, Vertex, and Foundry customers +- Fixed a crash when MCP tools return image content during streaming +- Fixed /resume session previews showing raw XML tags instead of readable command names +- Improved model error messages for Bedrock/Vertex/Foundry users with fallback suggestions +- Fixed plugin browse showing misleading "Space to Toggle" hint for already-installed plugins +- Fixed hook blocking errors (exit code 2) not showing stderr to the user +- Added `speed` attribute to OTel events and trace spans for fast mode visibility - Added `claude auth login`, `claude auth status`, and `claude auth logout` CLI subcommands - Added Windows ARM64 (win32-arm64) native binary support - Improved `/rename` to auto-generate session name from conversation context when called without arguments @@ -20,19 +27,6 @@ ## 2.1.39 -- Added guard against launching Claude Code inside another Claude Code session -- Fixed Agent Teams using wrong model identifier for Bedrock, Vertex, and Foundry customers -- Fixed a crash when MCP tools return image content during streaming -- Fixed /resume session previews showing raw XML tags instead of readable command names -- Improved model error messages for Bedrock/Vertex/Foundry users with fallback suggestions -- Fixed plugin browse showing misleading "Space to Toggle" hint for already-installed plugins -- Fixed hook blocking errors (exit code 2) not showing stderr to the user -- Added `speed` attribute to OTel events and trace spans for fast mode visibility -- Fixed /resume showing interrupt messages as session titles -- Fixed Opus 4.6 launch announcement showing for Bedrock/Vertex/Foundry users -- Improved error message for many-image dimension limit errors with /compact suggestion -- Fixed structured-outputs beta header being sent unconditionally on Vertex/Bedrock -- Fixed spurious warnings for non-agent markdown files in `.claude/agents/` directory - Improved terminal rendering performance - Fixed fatal errors being swallowed instead of displayed - Fixed process hanging after session close From a01a88d5ee12e36b3d0f356b765c3c569dfc66c8 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 13 Feb 2026 19:55:44 +0000 Subject: [PATCH 026/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 371a6f145c..31a8dd9710 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 2.1.42 + +- Fixed /resume showing interrupt messages as session titles +- Fixed Opus 4.6 launch announcement showing for Bedrock/Vertex/Foundry users +- Improved error message for many-image dimension limit errors with /compact suggestion + ## 2.1.41 - Added guard against launching Claude Code inside another Claude Code session From b374a306996aa4d65a4b5299934d62a3a332c3b8 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 13 Feb 2026 20:01:23 +0000 Subject: [PATCH 027/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 31a8dd9710..2701cfcc5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,11 @@ ## 2.1.42 +- Improved startup performance by deferring Zod schema construction +- Improved prompt cache hit rates by moving date out of system prompt +- Added one-time Opus 4.6 effort callout for eligible users - Fixed /resume showing interrupt messages as session titles -- Fixed Opus 4.6 launch announcement showing for Bedrock/Vertex/Foundry users -- Improved error message for many-image dimension limit errors with /compact suggestion +- Fixed image dimension limit errors to suggest /compact ## 2.1.41 From edfb5437a4f9fa16f84c8d863041d241ca71625f Mon Sep 17 00:00:00 2001 From: Chris Lloyd <718+chrislloyd@users.noreply.github.com> Date: Fri, 13 Feb 2026 15:40:00 -0800 Subject: [PATCH 028/152] Fix sweep script crashing on locked issues (#25649) The sweep job (https://github.com/anthropics/claude-code/actions/runs/21983111029/job/63510453226) was silently failing when closeExpired tried to comment on a locked issue, causing a 403 from the GitHub API. Two issues: 1. closeExpired didn't skip locked issues like markStale already does. Adding the same `if (issue.locked) continue` guard fixes this. 2. The error was swallowed by `main().catch(console.error)` which logs to stderr but exits 0, so CI reported success despite the crash. Replaced the main() wrapper with top-level await so unhandled errors properly crash the process with a non-zero exit code. ## Test plan YOLO --- scripts/sweep.ts | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/scripts/sweep.ts b/scripts/sweep.ts index 8a67a45822..2ebd5318e3 100644 --- a/scripts/sweep.ts +++ b/scripts/sweep.ts @@ -115,6 +115,7 @@ async function closeExpired(owner: string, repo: string) { for (const issue of issues) { if (issue.pull_request) continue; + if (issue.locked) continue; const base = `/repos/${owner}/${repo}/issues/${issue.number}`; const events = await githubRequest(`${base}/events?per_page=100`); @@ -144,20 +145,14 @@ async function closeExpired(owner: string, repo: string) { // -- -async function main() { - const owner = process.env.GITHUB_REPOSITORY_OWNER; - const repo = process.env.GITHUB_REPOSITORY_NAME; - if (!owner || !repo) - throw new Error("GITHUB_REPOSITORY_OWNER and GITHUB_REPOSITORY_NAME required"); +const owner = process.env.GITHUB_REPOSITORY_OWNER; +const repo = process.env.GITHUB_REPOSITORY_NAME; +if (!owner || !repo) + throw new Error("GITHUB_REPOSITORY_OWNER and GITHUB_REPOSITORY_NAME required"); - if (DRY_RUN) console.log("DRY RUN — no changes will be made\n"); +if (DRY_RUN) console.log("DRY RUN — no changes will be made\n"); - const labeled = await markStale(owner, repo); - const closed = await closeExpired(owner, repo); +const labeled = await markStale(owner, repo); +const closed = await closeExpired(owner, repo); - console.log(`\nDone: ${labeled} ${DRY_RUN ? "would be labeled" : "labeled"} stale, ${closed} ${DRY_RUN ? "would be closed" : "closed"}`); -} - -main().catch(console.error); - -export {}; +console.log(`\nDone: ${labeled} ${DRY_RUN ? "would be labeled" : "labeled"} stale, ${closed} ${DRY_RUN ? "would be closed" : "closed"}`); From 8c09097e8c2565c4c9c107cb9ad1cfcb87366368 Mon Sep 17 00:00:00 2001 From: Chris Lloyd <718+chrislloyd@users.noreply.github.com> Date: Fri, 13 Feb 2026 19:39:10 -0800 Subject: [PATCH 029/152] Post a comment when lifecycle labels are applied to issues (#25665) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When lifecycle labels (needs-info, needs-repro, invalid, stale, autoclose) are applied to an issue, the author currently only sees a label change with no explanation. They then get a closing comment days later without ever being nudged to respond. Add a GitHub Actions workflow that triggers on issues.labeled and runs a new lifecycle-comment.ts script to post a comment explaining what's needed and how long before auto-close. Extract lifecycle config (labels, timeouts, close reasons, nudge messages) into a shared issue-lifecycle.ts so the sweep script and comment script stay in sync. Previously the timeouts were duplicated between the sweep script and the comment messages. - needs-info: asks for version, OS, error messages - needs-repro: asks for steps to trigger the issue - invalid: links to the Claude Code repo and Anthropic support - stale/autoclose: explains inactivity auto-close The script no-ops for non-lifecycle labels, so the workflow fires on every label event and lets the script decide — single source of truth. ## Test plan Dry-run all labels locally: GITHUB_REPOSITORY=anthropics/claude-code LABEL=needs-info ISSUE_NUMBER=12345 bun run scripts/lifecycle-comment.ts --dry-run GITHUB_REPOSITORY=anthropics/claude-code LABEL=needs-repro ISSUE_NUMBER=12345 bun run scripts/lifecycle-comment.ts --dry-run GITHUB_REPOSITORY=anthropics/claude-code LABEL=invalid ISSUE_NUMBER=12345 bun run scripts/lifecycle-comment.ts --dry-run GITHUB_REPOSITORY=anthropics/claude-code LABEL=stale ISSUE_NUMBER=12345 bun run scripts/lifecycle-comment.ts --dry-run GITHUB_REPOSITORY=anthropics/claude-code LABEL=autoclose ISSUE_NUMBER=12345 bun run scripts/lifecycle-comment.ts --dry-run Verified sweep.ts still works: GITHUB_TOKEN=$(gh auth token) GITHUB_REPOSITORY_OWNER=anthropics GITHUB_REPOSITORY_NAME=claude-code bun run scripts/sweep.ts --dry-run --- .github/workflows/issue-lifecycle-comment.yml | 27 ++++++++++ scripts/issue-lifecycle.ts | 38 +++++++++++++ scripts/lifecycle-comment.ts | 53 +++++++++++++++++++ scripts/sweep.ts | 17 ++---- 4 files changed, 123 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/issue-lifecycle-comment.yml create mode 100644 scripts/issue-lifecycle.ts create mode 100644 scripts/lifecycle-comment.ts diff --git a/.github/workflows/issue-lifecycle-comment.yml b/.github/workflows/issue-lifecycle-comment.yml new file mode 100644 index 0000000000..75b1a035fa --- /dev/null +++ b/.github/workflows/issue-lifecycle-comment.yml @@ -0,0 +1,27 @@ +name: "Issue Lifecycle Comment" + +on: + issues: + types: [labeled] + +permissions: + issues: write + +jobs: + comment: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Post lifecycle comment + run: bun run scripts/lifecycle-comment.ts + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + LABEL: ${{ github.event.label.name }} + ISSUE_NUMBER: ${{ github.event.issue.number }} diff --git a/scripts/issue-lifecycle.ts b/scripts/issue-lifecycle.ts new file mode 100644 index 0000000000..304b520c0d --- /dev/null +++ b/scripts/issue-lifecycle.ts @@ -0,0 +1,38 @@ +// Single source of truth for issue lifecycle labels, timeouts, and messages. + +export const lifecycle = [ + { + label: "invalid", + days: 3, + reason: "this doesn't appear to be about Claude Code", + nudge: "This doesn't appear to be about [Claude Code](https://github.com/anthropics/claude-code). For general Anthropic support, visit [support.anthropic.com](https://support.anthropic.com).", + }, + { + label: "needs-repro", + days: 7, + reason: "we still need reproduction steps to investigate", + nudge: "We weren't able to reproduce this. Could you provide steps to trigger the issue — what you ran, what happened, and what you expected?", + }, + { + label: "needs-info", + days: 7, + reason: "we still need a bit more information to move forward", + nudge: "We need more information to continue investigating. Can you make sure to include your Claude Code version (`claude --version`), OS, and any error messages or logs?", + }, + { + label: "stale", + days: 14, + reason: "inactive for too long", + nudge: "This issue has been automatically marked as stale due to inactivity.", + }, + { + label: "autoclose", + days: 14, + reason: "inactive for too long", + nudge: "This issue has been marked for automatic closure.", + }, +] as const; + +export type LifecycleLabel = (typeof lifecycle)[number]["label"]; + +export const STALE_UPVOTE_THRESHOLD = 10; diff --git a/scripts/lifecycle-comment.ts b/scripts/lifecycle-comment.ts new file mode 100644 index 0000000000..3edbae7c5e --- /dev/null +++ b/scripts/lifecycle-comment.ts @@ -0,0 +1,53 @@ +#!/usr/bin/env bun + +// Posts a comment when a lifecycle label is applied to an issue, +// giving the author a heads-up and a chance to respond before auto-close. + +import { lifecycle } from "./issue-lifecycle.ts"; + +const DRY_RUN = process.argv.includes("--dry-run"); +const token = process.env.GITHUB_TOKEN; +const repo = process.env.GITHUB_REPOSITORY; // owner/repo +const label = process.env.LABEL; +const issueNumber = process.env.ISSUE_NUMBER; + +if (!DRY_RUN && !token) throw new Error("GITHUB_TOKEN required"); +if (!repo) throw new Error("GITHUB_REPOSITORY required"); +if (!label) throw new Error("LABEL required"); +if (!issueNumber) throw new Error("ISSUE_NUMBER required"); + +const entry = lifecycle.find((l) => l.label === label); +if (!entry) { + console.log(`No lifecycle entry for label "${label}", skipping`); + process.exit(0); +} + +const body = `${entry.nudge} This issue will be closed automatically if there's no activity within ${entry.days} days.`; + +// -- + +if (DRY_RUN) { + console.log(`Would comment on #${issueNumber} for label "${label}":\n\n${body}`); + process.exit(0); +} + +const response = await fetch( + `https://api.github.com/repos/${repo}/issues/${issueNumber}/comments`, + { + method: "POST", + headers: { + Authorization: `Bearer ${token}`, + Accept: "application/vnd.github.v3+json", + "Content-Type": "application/json", + "User-Agent": "lifecycle-comment", + }, + body: JSON.stringify({ body }), + } +); + +if (!response.ok) { + const text = await response.text(); + throw new Error(`GitHub API ${response.status}: ${text}`); +} + +console.log(`Commented on #${issueNumber} for label "${label}"`); diff --git a/scripts/sweep.ts b/scripts/sweep.ts index 2ebd5318e3..41d09ac386 100644 --- a/scripts/sweep.ts +++ b/scripts/sweep.ts @@ -1,23 +1,15 @@ #!/usr/bin/env bun +import { lifecycle, STALE_UPVOTE_THRESHOLD } from "./issue-lifecycle.ts"; + // -- const NEW_ISSUE = "https://github.com/anthropics/claude-code/issues/new/choose"; const DRY_RUN = process.argv.includes("--dry-run"); -const STALE_DAYS = 14; -const STALE_UPVOTE_THRESHOLD = 10; const CLOSE_MESSAGE = (reason: string) => `Closing for now — ${reason}. Please [open a new issue](${NEW_ISSUE}) if this is still relevant.`; -const lifecycle = [ - { label: "invalid", days: 3, reason: "this doesn't appear to be about Claude Code" }, - { label: "needs-repro", days: 7, reason: "we still need reproduction steps to investigate" }, - { label: "needs-info", days: 7, reason: "we still need a bit more information to move forward" }, - { label: "stale", days: 14, reason: "inactive for too long" }, - { label: "autoclose", days: 14, reason: "inactive for too long" }, -]; - // -- async function githubRequest( @@ -51,12 +43,13 @@ async function githubRequest( // -- async function markStale(owner: string, repo: string) { + const staleDays = lifecycle.find((l) => l.label === "stale")!.days; const cutoff = new Date(); - cutoff.setDate(cutoff.getDate() - STALE_DAYS); + cutoff.setDate(cutoff.getDate() - staleDays); let labeled = 0; - console.log(`\n=== marking stale (${STALE_DAYS}d inactive) ===`); + console.log(`\n=== marking stale (${staleDays}d inactive) ===`); for (let page = 1; page <= 10; page++) { const issues = await githubRequest( From d787369919b749ec4d910fb48dea3f06fc33866a Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 16 Feb 2026 21:34:15 +0000 Subject: [PATCH 030/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2701cfcc5e..17e1909a94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 2.1.44 + +- Fixed auth refresh errors + +## 2.1.43 + +- Fixed AWS auth refresh hanging indefinitely by adding a 3-minute timeout +- Fixed spurious warnings for non-agent markdown files in `.claude/agents/` directory +- Fixed structured-outputs beta header being sent unconditionally on Vertex/Bedrock + ## 2.1.42 - Improved startup performance by deferring Zod schema construction From 32c7ff2b6e398090e8c4f3ec7761be701a11c269 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 17 Feb 2026 13:21:46 +0000 Subject: [PATCH 031/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 17e1909a94..fb97f3e9f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## 2.1.44 +- Fixed ENAMETOOLONG errors for deeply-nested directory paths - Fixed auth refresh errors ## 2.1.43 From 4523c004dd0c44a46118ad1e412092809e7540ce Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 17 Feb 2026 18:53:01 +0000 Subject: [PATCH 032/152] chore: Update CHANGELOG.md Fixes #21654 Fixes #22087 Fixes #23561 --- CHANGELOG.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb97f3e9f8..c1b178b199 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## 2.1.45 + +- Added support for Claude Sonnet 4.6 +- Added support for reading `enabledPlugins` and `extraKnownMarketplaces` from `--add-dir` directories +- Added `spinnerTipsOverride` setting to customize spinner tips — configure `tips` with an array of custom tip strings, and optionally set `excludeDefault: true` to show only your custom tips instead of the built-in ones +- Added `SDKRateLimitInfo` and `SDKRateLimitEvent` types to the SDK, enabling consumers to receive rate limit status updates including utilization, reset times, and overage information +- Fixed Agent Teams teammates failing on Bedrock, Vertex, and Foundry by propagating API provider environment variables to tmux-spawned processes (anthropics/claude-code#23561) +- Fixed sandbox "operation not permitted" errors when writing temporary files on macOS by using the correct per-user temp directory (anthropics/claude-code#21654) +- Fixed Task tool (backgrounded agents) crashing with a `ReferenceError` on completion (anthropics/claude-code#22087) +- Fixed autocomplete suggestions not being accepted on Enter when images are pasted in the input +- Fixed skills invoked by subagents incorrectly appearing in main session context after compaction +- Fixed excessive `.claude.json.backup` files accumulating on every startup +- Fixed plugin-provided commands, agents, and hooks not being available immediately after installation without requiring a restart +- Improved startup performance by removing eager loading of session history for stats caching +- Improved memory usage for shell commands that produce large output — RSS no longer grows unboundedly with command output size +- Improved collapsed read/search groups to show the current file or search pattern being processed beneath the summary line while active +- [VSCode] Improved permission destination choice (project/user/session) to persist across sessions + ## 2.1.44 - Fixed ENAMETOOLONG errors for deeply-nested directory paths From 1718a574950cd8979b27b3e21f5e82760b10e8e0 Mon Sep 17 00:00:00 2001 From: Chris Lloyd <718+chrislloyd@users.noreply.github.com> Date: Tue, 17 Feb 2026 10:53:20 -0800 Subject: [PATCH 033/152] Fix issues being auto-closed despite human activity (#26360) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The sweep script was closing issues based solely on when a lifecycle label was applied, ignoring any human comments posted after the label. This caused active issues (like #11792) to be closed even when users responded to the stale warning. Three changes: 1. Teach the triage bot about `stale` and `autoclose` labels so it removes them when a human comments on the issue. 2. Add a safety net in `closeExpired()` that checks for non-bot comments posted after the lifecycle label was applied — if any exist, skip closing. 3. Extend the 10-upvote protection (which previously only applied to enhancements) to all issue types, in both `markStale()` and `closeExpired()`. Fixes #16497 ## Test plan Trace through scenarios manually: - Issue with stale label + human comment after → triage removes label; sweep skips even if triage hasn't run yet (safety net) - Issue with stale label + no human comment → closes as before - Issue with 10+ upvotes of any type → never marked stale or closed Co-authored-by: Claude Opus 4.6 (1M context) --- .github/workflows/claude-issue-triage.yml | 6 ++++-- scripts/sweep.ts | 25 +++++++++++++++++++---- 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/.github/workflows/claude-issue-triage.yml b/.github/workflows/claude-issue-triage.yml index 95ed66f94c..e86144d91c 100644 --- a/.github/workflows/claude-issue-triage.yml +++ b/.github/workflows/claude-issue-triage.yml @@ -45,7 +45,7 @@ jobs: ALLOWED LABELS — you may ONLY use labels from this list. Never invent new labels. Type: bug, enhancement, question, documentation, duplicate, invalid - Lifecycle: needs-repro, needs-info + Lifecycle: needs-repro, needs-info, stale, autoclose Platform: platform:linux, platform:macos, platform:windows, platform:wsl, platform:ios, platform:android, platform:vscode, platform:intellij, platform:web, platform:aws-bedrock API: api:bedrock, api:vertex @@ -85,10 +85,12 @@ jobs: **If EVENT is "issue_comment" (comment on existing issue):** 3. Evaluate lifecycle labels based on the full conversation: + - If the issue has `stale` or `autoclose`, remove the label — a new human comment means the issue is still active: + `gh issue edit ${{ github.event.issue.number }} --remove-label "stale" --remove-label "autoclose"` - If the issue has `needs-repro` or `needs-info` and the missing information has now been provided, remove the label: `gh issue edit ${{ github.event.issue.number }} --remove-label "needs-repro"` - If the issue doesn't have lifecycle labels but clearly needs them (e.g., a maintainer asked for repro steps or more details), add the appropriate label. - - Comments like "+1", "me too", "same here", or emoji reactions are NOT the missing information. Only remove labels when substantive details are actually provided. + - Comments like "+1", "me too", "same here", or emoji reactions are NOT the missing information. Only remove `needs-repro` or `needs-info` when substantive details are actually provided. - Do NOT add or remove category labels (bug, enhancement, etc.) on comment events. GUIDELINES: diff --git a/scripts/sweep.ts b/scripts/sweep.ts index 41d09ac386..4709290be3 100644 --- a/scripts/sweep.ts +++ b/scripts/sweep.ts @@ -70,11 +70,8 @@ async function markStale(owner: string, repo: string) { ); if (alreadyStale) continue; - const isEnhancement = issue.labels?.some( - (l: any) => l.name === "enhancement" - ); const thumbsUp = issue.reactions?.["+1"] ?? 0; - if (isEnhancement && thumbsUp >= STALE_UPVOTE_THRESHOLD) continue; + if (thumbsUp >= STALE_UPVOTE_THRESHOLD) continue; const base = `/repos/${owner}/${repo}/issues/${issue.number}`; @@ -109,6 +106,10 @@ async function closeExpired(owner: string, repo: string) { for (const issue of issues) { if (issue.pull_request) continue; if (issue.locked) continue; + + const thumbsUp = issue.reactions?.["+1"] ?? 0; + if (thumbsUp >= STALE_UPVOTE_THRESHOLD) continue; + const base = `/repos/${owner}/${repo}/issues/${issue.number}`; const events = await githubRequest(`${base}/events?per_page=100`); @@ -120,6 +121,22 @@ async function closeExpired(owner: string, repo: string) { if (!labeledAt || labeledAt > cutoff) continue; + // Skip if a non-bot user commented after the label was applied. + // The triage workflow should remove lifecycle labels on human + // activity, but check here too as a safety net. + const comments = await githubRequest( + `${base}/comments?since=${labeledAt.toISOString()}&per_page=100` + ); + const hasHumanComment = comments.some( + (c) => c.user && c.user.type !== "Bot" + ); + if (hasHumanComment) { + console.log( + `#${issue.number}: skipping (human activity after ${label} label)` + ); + continue; + } + if (DRY_RUN) { const age = Math.floor((Date.now() - labeledAt.getTime()) / 86400000); console.log(`#${issue.number}: would close (${label}, ${age}d old) — ${issue.title}`); From b757fc9ecdf77e450442e3ca9f9093a9da35952b Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 18 Feb 2026 21:37:52 +0000 Subject: [PATCH 034/152] chore: Update CHANGELOG.md Fixes #31 Fixes #17600 Fixes #22020 Fixes #23610 Fixes #25721 Fixes #25748 Fixes #25750 Fixes #25756 Fixes #25789 Fixes #25792 Fixes #25803 Fixes #25811 Fixes #25816 Fixes #25824 Fixes #25826 Fixes #25834 Fixes #25837 Fixes #25909 Fixes #25920 Fixes #25935 Fixes #25943 Fixes #25957 Fixes #25981 Fixes #25990 Fixes #26012 Fixes #26023 Fixes #26033 Fixes #26044 Fixes #26051 Fixes #26059 Fixes #26061 Fixes #26064 Fixes #26065 Fixes #26074 Fixes #26075 Fixes #26078 Fixes #26082 Fixes #26084 Fixes #26096 Fixes #26105 Fixes #26121 Fixes #26123 Fixes #26130 Fixes #26136 Fixes #26140 Fixes #26141 Fixes #26188 --- CHANGELOG.md | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c1b178b199..43a16ff3bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,81 @@ # Changelog +## 2.1.47 + +- Fixed FileWriteTool line counting to preserve intentional trailing blank lines instead of stripping them with `trimEnd()`. +- Fixed Windows terminal rendering bugs caused by `os.EOL` (`\r\n`) in display code — line counts now show correct values instead of always showing 1 on Windows. +- Improved VS Code plan preview: auto-updates as Claude iterates, enables commenting only when the plan is ready for review, and keeps the preview open when rejecting so Claude can revise. +- Fixed a bug where bold and colored text in markdown output could shift to the wrong characters on Windows due to `\r\n` line endings. +- Fixed compaction failing when conversation contains many PDF documents by stripping document blocks alongside images before sending to the compaction API (anthropics/claude-code#26188) +- Improved memory usage in long-running sessions by releasing API stream buffers, agent context, and skill state after use +- Improved startup performance by deferring SessionStart hook execution, reducing time-to-interactive by ~500ms. +- Fixed an issue where bash tool output was silently discarded on Windows when using MSYS2 or Cygwin shells. +- Improved performance of `@` file mentions - file suggestions now appear faster by pre-warming the index on startup and using session-based caching with background refresh. +- Improved memory usage by trimming agent task message history after tasks complete +- Improved memory usage during long agent sessions by eliminating O(n²) message accumulation in progress updates +- Fixed the bash permission classifier to validate that returned match descriptions correspond to actual input rules, preventing hallucinated descriptions from incorrectly granting permissions +- Fixed user-defined agents only loading one file on NFS/FUSE filesystems that report zero inodes (anthropics/claude-code#26044) +- Fixed plugin agent skills silently failing to load when referenced by bare name instead of fully-qualified plugin name (anthropics/claude-code#25834) +- Search patterns in collapsed tool results are now displayed in quotes for clarity +- Windows: Fixed CWD tracking temp files never being cleaned up, causing them to accumulate indefinitely (anthropics/claude-code#17600) +- Use `ctrl+f` to kill all background agents instead of double-pressing ESC. Background agents now continue running when you press ESC to cancel the main thread, giving you more control over agent lifecycle. +- Fixed API 400 errors ("thinking blocks cannot be modified") that occurred in sessions with concurrent agents, caused by interleaved streaming content blocks preventing proper message merging. +- Simplified teammate navigation to use only Shift+Down (with wrapping) instead of both Shift+Up and Shift+Down. +- Fixed an issue where a single file write/edit error would abort all other parallel file write/edit operations. Independent file mutations now complete even when a sibling fails. +- Added `last_assistant_message` field to Stop and SubagentStop hook inputs, providing the final assistant response text so hooks can access it without parsing transcript files. +- Fixed custom session titles set via `/rename` being lost after resuming a conversation (anthropics/claude-code#23610) +- Fixed collapsed read/search hint text overflowing on narrow terminals by truncating from the start. +- Fixed an issue where bash commands with backslash-newline continuation lines (e.g., long commands split across multiple lines with `\`) would produce spurious empty arguments, potentially breaking command execution. +- Fixed built-in slash commands (`/help`, `/model`, `/compact`, etc.) being hidden from the autocomplete dropdown when many user skills are installed (anthropics/claude-code#22020) +- Fixed MCP servers not appearing in the MCP Management Dialog after deferred loading +- Fixed session name persisting in status bar after `/clear` command (anthropics/claude-code#26082) +- Fixed crash when a skill's `name` or `description` in SKILL.md frontmatter is a bare number (e.g., `name: 3000`) — the value is now properly coerced to a string (anthropics/claude-code#25837) +- Fixed /resume silently dropping sessions when the first message exceeds 16KB or uses array-format content (anthropics/claude-code#25721) +- Added `chat:newline` keybinding action for configurable multi-line input (anthropics/claude-code#26075) +- Added `added_dirs` to the statusline JSON `workspace` section, exposing directories added via `/add-dir` to external scripts (anthropics/claude-code#26096) +- Fixed `claude doctor` misclassifying mise and asdf-managed installations as native installs (anthropics/claude-code#26033) +- Fixed zsh heredoc failing with "read-only file system" error in sandboxed commands (anthropics/claude-code#25990) +- Fixed agent progress indicator showing inflated tool use count (anthropics/claude-code#26023) +- Fixed image pasting not working on WSL2 systems where Windows copies images as BMP format (anthropics/claude-code#25935) +- Fixed background agent results returning raw transcript data instead of the agent's final answer (anthropics/claude-code#26012) +- Fixed Warp terminal incorrectly prompting for Shift+Enter setup when it supports it natively (anthropics/claude-code#25957) +- Fixed CJK wide characters causing misaligned timestamps and layout elements in the TUI (anthropics/claude-code#26084) +- Fixed custom agent `model` field in `.claude/agents/*.md` being ignored when spawning team teammates (anthropics/claude-code#26064) +- Fixed plan mode being lost after context compaction, causing the model to switch from planning to implementation mode (anthropics/claude-code#26061) +- Fixed `alwaysThinkingEnabled: true` in settings.json not enabling thinking mode on Bedrock and Vertex providers (anthropics/claude-code#26074) +- Fixed `tool_decision` OTel telemetry event not being emitted in headless/SDK mode (anthropics/claude-code#26059) +- Fixed session name being lost after context compaction — renamed sessions now preserve their custom title through compaction (anthropics/claude-code#26121) +- Increased initial session count in resume picker from 10 to 50 for faster session discovery (anthropics/claude-code#26123) +- Windows: fixed worktree session matching when drive letter casing differs (anthropics/claude-code#26123) +- Fixed `/resume ` failing to find sessions whose first message exceeds 16KB (anthropics/claude-code#25920) +- Fixed "Always allow" on multiline bash commands creating invalid permission patterns that corrupt settings (anthropics/claude-code#25909) +- Fixed React crash (error #31) when a skill's `argument-hint` in SKILL.md frontmatter uses YAML sequence syntax (e.g., `[topic: foo | bar]`) — the value is now properly coerced to a string (anthropics/claude-code#25826) +- Fixed crash when using `/fork` on sessions that used web search — null entries in search results from transcript deserialization are now handled gracefully (anthropics/claude-code#25811) +- Fixed read-only git commands triggering FSEvents file watcher loops on macOS by adding --no-optional-locks flag (anthropics/claude-code#25750) +- Fixed custom agents and skills not being discovered when running from a git worktree — project-level `.claude/agents/` and `.claude/skills/` from the main repository are now included (anthropics/claude-code#25816) +- Fixed non-interactive subcommands like `claude doctor` and `claude plugin validate` being blocked inside nested Claude sessions (anthropics/claude-code#25803) +- Windows: Fixed the same CLAUDE.md file being loaded twice when drive letter casing differs between paths (anthropics/claude-code#25756) +- Fixed inline code spans in markdown being incorrectly parsed as bash commands (anthropics/claude-code#25792) +- Fixed teammate spinners not respecting custom spinnerVerbs from settings (anthropics/claude-code#25748) +- Fixed shell commands permanently failing after a command deletes its own working directory (anthropics/claude-code#26136) +- Fixed hooks (PreToolUse, PostToolUse) silently failing to execute on Windows by using Git Bash instead of cmd.exe (anthropics/claude-code#25981) +- Fixed LSP `findReferences` and other location-based operations returning results from gitignored files (e.g., `node_modules/`, `venv/`) (anthropics/claude-code#26051) +- Moved config backup files from home directory root to `~/.claude/backups/` to reduce home directory clutter (anthropics/claude-code#26130) +- Fixed sessions with large first prompts (>16KB) disappearing from the /resume list (anthropics/claude-code#26140) +- Fixed shell functions with double-underscore prefixes (e.g., `__git_ps1`) not being preserved across shell sessions (anthropics/claude-code#25824) +- Fixed spinner showing "0 tokens" counter before any tokens have been received (anthropics/claude-code#26105) +- VSCode: Fixed conversation messages appearing dimmed while the AskUserQuestion dialog is open (anthropics/claude-code#26078) +- Fixed background tasks failing in git worktrees due to remote URL resolution reading from worktree-specific gitdir instead of the main repository config (anthropics/claude-code#26065) +- Fixed Right Alt key leaving visible `[25~` escape sequence residue in the input field on Windows/Git Bash terminals (anthropics/claude-code#25943) +- The `/rename` command now updates the terminal tab title by default (anthropics/claude-code#25789) +- Fixed Edit tool silently corrupting Unicode curly quotes (\u201c\u201d \u2018\u2019) by replacing them with straight quotes when making edits (anthropics/claude-code#26141) +- Fixed OSC 8 hyperlinks only being clickable on the first line when link text wraps across multiple terminal lines. + +## 2.1.46 + +- Fixed orphaned CC processes after terminal disconnect on macOS +- Added support for using claude.ai MCP connectors in Claude Code + ## 2.1.45 - Added support for Claude Sonnet 4.6 From b18f2e7df08f2226007f7f11d1033054c36e1714 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 19 Feb 2026 23:27:35 +0000 Subject: [PATCH 035/152] chore: Update CHANGELOG.md Fixes #26637 --- CHANGELOG.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 43a16ff3bd..f259945f61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,28 @@ # Changelog +## 2.1.49 + +- Fixed Ctrl+C and ESC being silently ignored when background agents are running and the main thread is idle. Pressing twice within 3 seconds now kills all background agents. +- Fixed prompt suggestion cache regression that reduced cache hit rates. +- Fixed `plugin enable` and `plugin disable` to auto-detect the correct scope when `--scope` is not specified, instead of always defaulting to user scope +- Simple mode (`CLAUDE_CODE_SIMPLE`) now includes the file edit tool in addition to the Bash tool, allowing direct file editing in simple mode. +- Permission suggestions are now populated when safety checks trigger an ask response, enabling SDK consumers to display permission options +- Sonnet 4.5 with 1M context is being removed from the Max plan in favor of our frontier Sonnet 4.6 model, which now has 1M context. Please switch in /model. +- Fixed verbose mode not updating thinking block display when toggled via `/config` — memo comparators now correctly detect verbose changes +- Fixed unbounded WASM memory growth during long sessions by periodically resetting the tree-sitter parser +- Fixed potential rendering issues caused by stale yoga layout references +- Improved performance in non-interactive mode (`-p`) by skipping unnecessary API calls during startup +- Improved performance by caching authentication failures for HTTP and SSE MCP servers, avoiding repeated connection attempts to servers requiring auth +- Fixed unbounded memory growth during long-running sessions caused by Yoga WASM linear memory never shrinking +- SDK model info now includes `supportsEffort`, `supportedEffortLevels`, and `supportsAdaptiveThinking` fields so consumers can discover model capabilities. +- Added `ConfigChange` hook event that fires when configuration files change during a session, enabling enterprise security auditing and optional blocking of settings changes. +- Improved startup performance by caching MCP auth failures to avoid redundant connection attempts +- Improved startup performance by reducing HTTP calls for analytics token counting +- Improved startup performance by batching MCP tool token counting into a single API call +- Fixed `disableAllHooks` setting to respect managed settings hierarchy — non-managed settings can no longer disable managed hooks set by policy (#26637) +- Fixed `--resume` session picker showing raw XML tags for sessions that start with commands like `/clear`. Now correctly falls through to the session ID fallback. +- Improved permission prompts for path safety and working directory blocks to show the reason for the restriction instead of a bare prompt with no context + ## 2.1.47 - Fixed FileWriteTool line counting to preserve intentional trailing blank lines instead of stripping them with `trimEnd()`. From 0d996a7c346e2f3aca34e3488e49f1da537d7811 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 19 Feb 2026 23:55:04 +0000 Subject: [PATCH 036/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f259945f61..a6a92ad8ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ ## 2.1.49 +- Added `--worktree` (`-w`) flag to start Claude in an isolated git worktree +- Subagents support `isolation: "worktree"` for working in a temporary git worktree +- Added Ctrl+F keybinding to kill background agents (two-press confirmation) +- Agent definitions support `background: true` to always run as a background task +- Plugins can ship `settings.json` for default configuration +- Fixed file-not-found errors to suggest corrected paths when the model drops the repo folder - Fixed Ctrl+C and ESC being silently ignored when background agents are running and the main thread is idle. Pressing twice within 3 seconds now kills all background agents. - Fixed prompt suggestion cache regression that reduced cache hit rates. - Fixed `plugin enable` and `plugin disable` to auto-detect the correct scope when `--scope` is not specified, instead of always defaulting to user scope From 65dfa9898e3696800a8a3880731e3ee878212799 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 20 Feb 2026 15:26:36 +0000 Subject: [PATCH 037/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a6a92ad8ea..1a63bbf84c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## 2.1.49 +- Improved MCP OAuth authentication with step-up auth support and discovery caching, reducing redundant network requests during server connections - Added `--worktree` (`-w`) flag to start Claude in an isolated git worktree - Subagents support `isolation: "worktree"` for working in a temporary git worktree - Added Ctrl+F keybinding to kill background agents (two-press confirmation) From 3ad3231f0f3a9ff4e1be18d20cbea1e9955d0047 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 20 Feb 2026 23:48:06 +0000 Subject: [PATCH 038/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a63bbf84c..20d264b6cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,33 @@ # Changelog +## 2.1.50 + +- Added support for `startupTimeout` configuration for LSP servers +- Added `WorktreeCreate` and `WorktreeRemove` hook events, enabling custom VCS setup and teardown when agent worktree isolation creates or removes worktrees. +- Fixed a bug where resumed sessions could be invisible when the working directory involved symlinks, because the session storage path was resolved at different times during startup. Also fixed session data loss on SSH disconnect by flushing session data before hooks and analytics in the graceful shutdown sequence. +- Linux: Fixed native modules not loading on systems with glibc older than 2.30 (e.g., RHEL 8) +- Fixed memory leak in agent teams where completed teammate tasks were never garbage collected from session state +- Fixed `CLAUDE_CODE_SIMPLE` to fully strip down skills, session memory, custom agents, and CLAUDE.md token counting +- Fixed `/mcp reconnect` freezing the CLI when given a server name that doesn't exist +- Fixed memory leak where completed task state objects were never removed from AppState +- Added support for `isolation: worktree` in agent definitions, allowing agents to declaratively run in isolated git worktrees. +- `CLAUDE_CODE_SIMPLE` mode now also disables MCP tools, attachments, hooks, and CLAUDE.md file loading for a fully minimal experience. +- Fixed bug where MCP tools were not discovered when tool search is enabled and a prompt is passed in as a launch argument +- Improved memory usage during long sessions by clearing internal caches after compaction +- Added `claude agents` CLI command to list all configured agents +- Improved memory usage during long sessions by clearing large tool results after they have been processed +- Fixed a memory leak where LSP diagnostic data was never cleaned up after delivery, causing unbounded memory growth in long sessions +- Fixed a memory leak where completed task output was not freed from memory, reducing memory usage in long sessions with many tasks +- Improved startup performance for headless mode (`-p` flag) by deferring Yoga WASM and UI component imports +- Fixed prompt suggestion cache regression that reduced cache hit rates +- Fixed unbounded memory growth in long sessions by capping file history snapshots +- Added `CLAUDE_CODE_DISABLE_1M_CONTEXT` environment variable to disable 1M context window support +- Opus 4.6 (fast mode) now includes the full 1M context window +- VSCode: Added `/extra-usage` command support in VS Code sessions +- Fixed memory leak where TaskOutput retained recent lines after cleanup +- Fixed memory leak in CircularBuffer where cleared items were retained in the backing array +- Fixed memory leak in shell command execution where ChildProcess and AbortController references were retained after cleanup + ## 2.1.49 - Improved MCP OAuth authentication with step-up auth support and discovery caching, reducing redundant network requests during server connections From 3592c8be2a01645820854e4a6eda5e9e4281d366 Mon Sep 17 00:00:00 2001 From: Octavian Guzu Date: Mon, 23 Feb 2026 15:11:01 +0000 Subject: [PATCH 039/152] Use wrapper script for label operations in issue triage Extract triage prompt into /triage-issue command and use a dedicated edit-issue-labels.sh script for label operations instead of raw gh issue edit. The script validates labels against the repo's existing labels before applying them. --- .claude/commands/triage-issue.md | 66 +++++++++++++++++ .github/workflows/claude-issue-triage.yml | 70 +----------------- scripts/edit-issue-labels.sh | 87 +++++++++++++++++++++++ 3 files changed, 154 insertions(+), 69 deletions(-) create mode 100644 .claude/commands/triage-issue.md create mode 100755 scripts/edit-issue-labels.sh diff --git a/.claude/commands/triage-issue.md b/.claude/commands/triage-issue.md new file mode 100644 index 0000000000..f4d0ebaac4 --- /dev/null +++ b/.claude/commands/triage-issue.md @@ -0,0 +1,66 @@ +--- +allowed-tools: Bash(gh label list:*),Bash(gh issue view:*),Bash(./scripts/edit-issue-labels.sh:*),Bash(gh search issues:*) +description: Triage GitHub issues by analyzing and applying labels +--- + +You're an issue triage assistant. Analyze the issue and manage labels. + +IMPORTANT: Don't post any comments or messages to the issue. Your only actions are adding or removing labels. + +Context: + +$ARGUMENTS + +TOOLS: +- `gh label list`: Fetch all available labels in this repo +- `gh issue view NUMBER`: Read the issue title, body, and labels +- `gh issue view NUMBER --comments`: Read the conversation +- `gh search issues QUERY`: Find similar or duplicate issues +- `./scripts/edit-issue-labels.sh --issue NUMBER --add-label LABEL --remove-label LABEL`: Add or remove labels + +TASK: + +1. Run `gh label list` to fetch the available labels. You may ONLY use labels from this list. Never invent new labels. +2. Run `gh issue view ISSUE_NUMBER` to read the issue details. +3. Run `gh issue view ISSUE_NUMBER --comments` to read the conversation. + +**If EVENT is "issues" (new issue):** + +4. First, check if this issue is actually about Claude Code (the CLI/IDE tool). Issues about the Claude API, claude.ai, the Claude app, Anthropic billing, or other Anthropic products should be labeled `invalid`. If invalid, apply only that label and stop. + +5. Analyze and apply category labels: + - Type (bug, enhancement, question, etc.) + - Technical areas and platform + - Check for duplicates with `gh search issues`. Only mark as duplicate of OPEN issues. + +6. Evaluate lifecycle labels: + - `needs-repro` (bugs only, 7 days): Bug reports without clear steps to reproduce. A good repro has specific, followable steps that someone else could use to see the same issue. + Do NOT apply if the user already provided error messages, logs, file paths, or a description of what they did. Don't require a specific format — narrative descriptions count. + For model behavior issues (e.g. "Claude does X when it should do Y"), don't require traditional repro steps — examples and patterns are sufficient. + - `needs-info` (bugs only, 7 days): The issue needs something from the community before it can progress — e.g. error messages, versions, environment details, or answers to follow-up questions. Don't apply to questions or enhancements. + Do NOT apply if the user already provided version, environment, and error details. If the issue just needs engineering investigation, that's not `needs-info`. + + Issues with these labels are automatically closed after the timeout if there's no response. + The goal is to avoid issues lingering without a clear next step. + +7. Apply all selected labels: + `./scripts/edit-issue-labels.sh --issue ISSUE_NUMBER --add-label "label1" --add-label "label2"` + +**If EVENT is "issue_comment" (comment on existing issue):** + +4. Evaluate lifecycle labels based on the full conversation: + - If the issue has `stale` or `autoclose`, remove the label — a new human comment means the issue is still active: + `./scripts/edit-issue-labels.sh --issue ISSUE_NUMBER --remove-label "stale" --remove-label "autoclose"` + - If the issue has `needs-repro` or `needs-info` and the missing information has now been provided, remove the label: + `./scripts/edit-issue-labels.sh --issue ISSUE_NUMBER --remove-label "needs-repro"` + - If the issue doesn't have lifecycle labels but clearly needs them (e.g., a maintainer asked for repro steps or more details), add the appropriate label. + - Comments like "+1", "me too", "same here", or emoji reactions are NOT the missing information. Only remove `needs-repro` or `needs-info` when substantive details are actually provided. + - Do NOT add or remove category labels (bug, enhancement, etc.) on comment events. + +GUIDELINES: +- ONLY use labels from `gh label list` — never create or guess label names +- DO NOT post any comments to the issue +- Be conservative with lifecycle labels — only apply when clearly warranted +- Only apply lifecycle labels (`needs-repro`, `needs-info`) to bugs — never to questions or enhancements +- When in doubt, don't apply a lifecycle label — false positives are worse than missing labels +- It's okay to not add any labels if none are clearly applicable diff --git a/.github/workflows/claude-issue-triage.yml b/.github/workflows/claude-issue-triage.yml index e86144d91c..58fd22b19c 100644 --- a/.github/workflows/claude-issue-triage.yml +++ b/.github/workflows/claude-issue-triage.yml @@ -32,75 +32,7 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} allowed_non_write_users: "*" - prompt: | - You're an issue triage assistant. Analyze the issue and manage labels. - - IMPORTANT: Don't post any comments or messages to the issue. Your only actions are adding or removing labels. - - Context: - - REPO: ${{ github.repository }} - - ISSUE_NUMBER: ${{ github.event.issue.number }} - - EVENT: ${{ github.event_name }} - - ALLOWED LABELS — you may ONLY use labels from this list. Never invent new labels. - - Type: bug, enhancement, question, documentation, duplicate, invalid - Lifecycle: needs-repro, needs-info, stale, autoclose - Platform: platform:linux, platform:macos, platform:windows, platform:wsl, platform:ios, platform:android, platform:vscode, platform:intellij, platform:web, platform:aws-bedrock - API: api:bedrock, api:vertex - - TOOLS: - - `gh issue view NUMBER`: Read the issue title, body, and labels - - `gh issue view NUMBER --comments`: Read the conversation - - `gh search issues QUERY`: Find similar or duplicate issues - - `gh issue edit NUMBER --add-label` / `--remove-label`: Add or remove labels - - TASK: - - 1. Run `gh issue view ${{ github.event.issue.number }}` to read the issue details. - 2. Run `gh issue view ${{ github.event.issue.number }} --comments` to read the conversation. - - **If EVENT is "issues" (new issue):** - - 3. First, check if this issue is actually about Claude Code (the CLI/IDE tool). Issues about the Claude API, claude.ai, the Claude app, Anthropic billing, or other Anthropic products should be labeled `invalid`. If invalid, apply only that label and stop. - - 4. Analyze and apply category labels: - - Type (bug, enhancement, question, etc.) - - Technical areas and platform - - Check for duplicates with `gh search issues`. Only mark as duplicate of OPEN issues. - - 5. Evaluate lifecycle labels: - - `needs-repro` (bugs only, 7 days): Bug reports without clear steps to reproduce. A good repro has specific, followable steps that someone else could use to see the same issue. - Do NOT apply if the user already provided error messages, logs, file paths, or a description of what they did. Don't require a specific format — narrative descriptions count. - For model behavior issues (e.g. "Claude does X when it should do Y"), don't require traditional repro steps — examples and patterns are sufficient. - - `needs-info` (bugs only, 7 days): The issue needs something from the community before it can progress — e.g. error messages, versions, environment details, or answers to follow-up questions. Don't apply to questions or enhancements. - Do NOT apply if the user already provided version, environment, and error details. If the issue just needs engineering investigation, that's not `needs-info`. - - Issues with these labels are automatically closed after the timeout if there's no response. - The goal is to avoid issues lingering without a clear next step. - - 6. Apply all selected labels: - `gh issue edit ${{ github.event.issue.number }} --add-label "label1" --add-label "label2"` - - **If EVENT is "issue_comment" (comment on existing issue):** - - 3. Evaluate lifecycle labels based on the full conversation: - - If the issue has `stale` or `autoclose`, remove the label — a new human comment means the issue is still active: - `gh issue edit ${{ github.event.issue.number }} --remove-label "stale" --remove-label "autoclose"` - - If the issue has `needs-repro` or `needs-info` and the missing information has now been provided, remove the label: - `gh issue edit ${{ github.event.issue.number }} --remove-label "needs-repro"` - - If the issue doesn't have lifecycle labels but clearly needs them (e.g., a maintainer asked for repro steps or more details), add the appropriate label. - - Comments like "+1", "me too", "same here", or emoji reactions are NOT the missing information. Only remove `needs-repro` or `needs-info` when substantive details are actually provided. - - Do NOT add or remove category labels (bug, enhancement, etc.) on comment events. - - GUIDELINES: - - ONLY use labels from the ALLOWED LABELS list above — never create or guess label names - - DO NOT post any comments to the issue - - Be conservative with lifecycle labels — only apply when clearly warranted - - Only apply lifecycle labels (`needs-repro`, `needs-info`) to bugs — never to questions or enhancements - - When in doubt, don't apply a lifecycle label — false positives are worse than missing labels - - It's okay to not add any labels if none are clearly applicable + prompt: "/triage-issue REPO: ${{ github.repository }} ISSUE_NUMBER: ${{ github.event.issue.number }} EVENT: ${{ github.event_name }}" anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} claude_args: | --model claude-opus-4-6 - --allowedTools "Bash(gh issue view:*),Bash(gh issue edit:*),Bash(gh search issues:*)" diff --git a/scripts/edit-issue-labels.sh b/scripts/edit-issue-labels.sh new file mode 100755 index 0000000000..25a924b371 --- /dev/null +++ b/scripts/edit-issue-labels.sh @@ -0,0 +1,87 @@ +#!/usr/bin/env bash +# +# Edits labels on a GitHub issue. +# Usage: ./edit-issue-labels.sh --issue 123 --add-label bug --add-label needs-triage --remove-label untriaged +# + +set -euo pipefail + +ISSUE="" +ADD_LABELS=() +REMOVE_LABELS=() + +# Parse arguments +while [[ $# -gt 0 ]]; do + case $1 in + --issue) + ISSUE="$2" + shift 2 + ;; + --add-label) + ADD_LABELS+=("$2") + shift 2 + ;; + --remove-label) + REMOVE_LABELS+=("$2") + shift 2 + ;; + *) + exit 1 + ;; + esac +done + +# Validate issue number +if [[ -z "$ISSUE" ]]; then + exit 1 +fi + +if ! [[ "$ISSUE" =~ ^[0-9]+$ ]]; then + exit 1 +fi + +if [[ ${#ADD_LABELS[@]} -eq 0 && ${#REMOVE_LABELS[@]} -eq 0 ]]; then + exit 1 +fi + +# Fetch valid labels from the repo +VALID_LABELS=$(gh label list --limit 500 --json name --jq '.[].name') + +# Filter to only labels that exist in the repo +FILTERED_ADD=() +for label in "${ADD_LABELS[@]}"; do + if echo "$VALID_LABELS" | grep -qxF "$label"; then + FILTERED_ADD+=("$label") + fi +done + +FILTERED_REMOVE=() +for label in "${REMOVE_LABELS[@]}"; do + if echo "$VALID_LABELS" | grep -qxF "$label"; then + FILTERED_REMOVE+=("$label") + fi +done + +if [[ ${#FILTERED_ADD[@]} -eq 0 && ${#FILTERED_REMOVE[@]} -eq 0 ]]; then + exit 0 +fi + +# Build gh command arguments +GH_ARGS=("issue" "edit" "$ISSUE") + +for label in "${FILTERED_ADD[@]}"; do + GH_ARGS+=("--add-label" "$label") +done + +for label in "${FILTERED_REMOVE[@]}"; do + GH_ARGS+=("--remove-label" "$label") +done + +gh "${GH_ARGS[@]}" + +if [[ ${#FILTERED_ADD[@]} -gt 0 ]]; then + echo "Added: ${FILTERED_ADD[*]}" +fi +if [[ ${#FILTERED_REMOVE[@]} -gt 0 ]]; then + echo "Removed: ${FILTERED_REMOVE[*]}" +fi From 6aecb15d9877408a37831f0cd481080d94d1c45e Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 24 Feb 2026 01:40:09 +0000 Subject: [PATCH 040/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20d264b6cd..80bf2bafb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## 2.1.51 + +- Added `claude remote-control` subcommand for external builds, enabling local environment serving for all users. +- Updated plugin marketplace default git timeout from 30s to 120s and added `CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS` to configure. +- Added support for custom npm registries and specific version pinning when installing plugins from npm sources +- BashTool now skips login shell (`-l` flag) by default when a shell snapshot is available, improving command execution performance. Previously this required setting `CLAUDE_BASH_NO_LOGIN=true`. +- Fixed a security issue where `statusLine` and `fileSuggestion` hook commands could execute without workspace trust acceptance in interactive mode. +- Tool results larger than 50K characters are now persisted to disk (previously 100K). This reduces context window usage and improves conversation longevity. +- Fixed a security issue where HTTP hooks could interpolate arbitrary environment variables from header values. Env var interpolation now requires an explicit `allowedEnvVars` list in the hook configuration. +- Fixed a bug where duplicate `control_response` messages (e.g. from WebSocket reconnects) could cause API 400 errors by pushing duplicate assistant messages into the conversation. +- Added `CLAUDE_CODE_ACCOUNT_UUID`, `CLAUDE_CODE_USER_EMAIL`, and `CLAUDE_CODE_ORGANIZATION_UUID` environment variables for SDK callers to provide account info synchronously, eliminating a race condition where early telemetry events lacked account metadata. +- Fixed slash command autocomplete crashing when a plugin's SKILL.md description is a YAML array or other non-string type +- HTTP hooks are now routed through the sandbox network proxy when sandboxing is enabled, enforcing the domain allowlist. HTTP hooks are not supported for SessionStart/Setup events. +- The `/model` picker now shows human-readable labels (e.g., "Sonnet 4.5") instead of raw model IDs for pinned model versions, with an upgrade hint when a newer version is available. + ## 2.1.50 - Added support for `startupTimeout` configuration for LSP servers From baf29b882a3d317bb3764a0aa7ee0c20ab75ca7c Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 24 Feb 2026 02:04:23 +0000 Subject: [PATCH 041/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 80bf2bafb7..153b4cbf27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,11 +8,9 @@ - BashTool now skips login shell (`-l` flag) by default when a shell snapshot is available, improving command execution performance. Previously this required setting `CLAUDE_BASH_NO_LOGIN=true`. - Fixed a security issue where `statusLine` and `fileSuggestion` hook commands could execute without workspace trust acceptance in interactive mode. - Tool results larger than 50K characters are now persisted to disk (previously 100K). This reduces context window usage and improves conversation longevity. -- Fixed a security issue where HTTP hooks could interpolate arbitrary environment variables from header values. Env var interpolation now requires an explicit `allowedEnvVars` list in the hook configuration. - Fixed a bug where duplicate `control_response` messages (e.g. from WebSocket reconnects) could cause API 400 errors by pushing duplicate assistant messages into the conversation. - Added `CLAUDE_CODE_ACCOUNT_UUID`, `CLAUDE_CODE_USER_EMAIL`, and `CLAUDE_CODE_ORGANIZATION_UUID` environment variables for SDK callers to provide account info synchronously, eliminating a race condition where early telemetry events lacked account metadata. - Fixed slash command autocomplete crashing when a plugin's SKILL.md description is a YAML array or other non-string type -- HTTP hooks are now routed through the sandbox network proxy when sandboxing is enabled, enforcing the domain allowlist. HTTP hooks are not supported for SessionStart/Setup events. - The `/model` picker now shows human-readable labels (e.g., "Sonnet 4.5") instead of raw model IDs for pinned model versions, with an upgrade hint when a newer version is available. ## 2.1.50 From 8f0fe03e5687b10134d400c10240071523ace5c5 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 24 Feb 2026 06:39:08 +0000 Subject: [PATCH 042/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 153b4cbf27..09c19e87a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.1.52 + +- VS Code: Fixed extension crash on Windows ("command 'claude-vscode.editor.openLast' not found") + ## 2.1.51 - Added `claude remote-control` subcommand for external builds, enabling local environment serving for all users. From 3c917dfe50e00351e496ae876b59356de1585111 Mon Sep 17 00:00:00 2001 From: Octavian Guzu Date: Tue, 24 Feb 2026 16:51:55 +0000 Subject: [PATCH 043/152] Add non-write users check workflow --- .github/workflows/non-write-users-check.yml | 47 +++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/non-write-users-check.yml diff --git a/.github/workflows/non-write-users-check.yml b/.github/workflows/non-write-users-check.yml new file mode 100644 index 0000000000..584bc7ddb3 --- /dev/null +++ b/.github/workflows/non-write-users-check.yml @@ -0,0 +1,47 @@ +name: Non-write Users Check +on: + pull_request: + paths: + - ".github/**" + +permissions: + contents: read + pull-requests: write + +jobs: + allowed-non-write-check: + runs-on: ubuntu-latest + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - run: | + DIFF=$(gh pr diff "$PR_NUMBER" -R "$REPO" || true) + + if ! echo "$DIFF" | grep -qE '^diff --git a/\.github/.*\.ya?ml'; then + exit 0 + fi + + MATCHES=$(echo "$DIFF" | grep "^+.*allowed_non_write_users" || true) + + if [ -z "$MATCHES" ]; then + exit 0 + fi + + EXISTING=$(gh pr view "$PR_NUMBER" -R "$REPO" --json comments --jq '.comments[].body' \ + | grep -c "" || true) + + if [ "$EXISTING" -gt 0 ]; then + exit 0 + fi + + gh pr comment "$PR_NUMBER" -R "$REPO" --body ' + **`allowed_non_write_users` detected** + + This PR adds or modifies `allowed_non_write_users`, which allows users without write access to trigger Claude Code Action workflows. This can introduce security risks. + + If this is a new flow, please make sure you actually need `allowed_non_write_users`. If you are editing an existing workflow, double check that you are not adding new Claude permissions which might lead to a vulnerability. + + See existing workflows in this repo for safe usage examples, or contact the AppSec team.' + env: + PR_NUMBER: ${{ github.event.pull_request.number }} + REPO: ${{ github.repository }} From 05a2bde7be910c9fa3d2ce3c6a1642215cedeec2 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 24 Feb 2026 19:16:03 +0000 Subject: [PATCH 044/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 09c19e87a8..e14fe795eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ - Added `CLAUDE_CODE_ACCOUNT_UUID`, `CLAUDE_CODE_USER_EMAIL`, and `CLAUDE_CODE_ORGANIZATION_UUID` environment variables for SDK callers to provide account info synchronously, eliminating a race condition where early telemetry events lacked account metadata. - Fixed slash command autocomplete crashing when a plugin's SKILL.md description is a YAML array or other non-string type - The `/model` picker now shows human-readable labels (e.g., "Sonnet 4.5") instead of raw model IDs for pinned model versions, with an upgrade hint when a newer version is available. +- Managed settings can now be set via macOS plist or Windows Registry. Learn more at https://code.claude.com/docs/en/settings#settings-files ## 2.1.50 From 6e7f65eb95693516424e3e21b93c700e1a41e069 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 25 Feb 2026 00:12:59 +0000 Subject: [PATCH 045/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e14fe795eb..7eff2e74d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## 2.1.53 + +- Fixed a UI flicker where user input would briefly disappear after submission before the message rendered +- Fixed bulk agent kill (ctrl+f) to send a single aggregate notification instead of one per agent, and to properly clear the command queue +- Fixed graceful shutdown sometimes leaving stale sessions when using Remote Control by parallelizing teardown network calls +- Fixed `--worktree` sometimes being ignored on first launch +- Fixed a panic ("switch on corrupted value") on Windows +- Fixed a crash that could occur when spawning many processes on Windows +- Fixed a crash in the WebAssembly interpreter on Linux x64 & Windows x64 +- Fixed a crash that sometimes occurred after 2 minutes on Windows ARM64 + ## 2.1.52 - VS Code: Fixed extension crash on Windows ("command 'claude-vscode.editor.openLast' not found") From a0128f4a40952ce80cc7f5aba54334a74020a758 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 25 Feb 2026 03:14:59 +0000 Subject: [PATCH 046/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7eff2e74d1..06ad146b1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.1.55 + +- Fixed BashTool failing on Windows with EINVAL error + ## 2.1.53 - Fixed a UI flicker where user input would briefly disappear after submission before the message rendered From db3858a5589c8e6ffeb4cf765edc23cd4dbf900a Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 25 Feb 2026 06:27:03 +0000 Subject: [PATCH 047/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 06ad146b1b..6396abf95b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.1.56 + +- VS Code: Fixed another cause of "command 'claude-vscode.editor.openLast' not found" crashes + ## 2.1.55 - Fixed BashTool failing on Windows with EINVAL error From b2bab3b7435faed81779e9295227602a9931d0d7 Mon Sep 17 00:00:00 2001 From: Octavian Guzu Date: Wed, 25 Feb 2026 14:35:57 +0000 Subject: [PATCH 048/152] Add gh.sh wrapper for gh CLI commands in workflows --- .claude/commands/dedupe.md | 10 ++- .claude/commands/triage-issue.md | 26 ++++--- .github/workflows/claude-issue-triage.yml | 1 + scripts/gh.sh | 85 +++++++++++++++++++++++ 4 files changed, 108 insertions(+), 14 deletions(-) create mode 100755 scripts/gh.sh diff --git a/.claude/commands/dedupe.md b/.claude/commands/dedupe.md index 6641b5d88c..edab658092 100644 --- a/.claude/commands/dedupe.md +++ b/.claude/commands/dedupe.md @@ -1,5 +1,5 @@ --- -allowed-tools: Bash(gh issue view:*), Bash(gh search:*), Bash(gh issue list:*), Bash(./scripts/comment-on-duplicates.sh:*) +allowed-tools: Bash(./scripts/gh.sh:*), Bash(./scripts/comment-on-duplicates.sh:*) description: Find duplicate GitHub issues --- @@ -18,6 +18,10 @@ To do this, follow these steps precisely: Notes (be sure to tell this to your agents, too): -- Use `gh` to interact with Github, rather than web fetch -- Do not use other tools, beyond `gh` and the comment script (eg. don't use other MCP servers, file edit, etc.) +- Use `./scripts/gh.sh` to interact with Github, rather than web fetch or raw `gh`. Examples: + - `./scripts/gh.sh issue view 123` — view an issue + - `./scripts/gh.sh issue view 123 --comments` — view with comments + - `./scripts/gh.sh issue list --state open --limit 20` — list issues + - `./scripts/gh.sh search issues "query" --limit 10` — search for issues +- Do not use other tools, beyond `./scripts/gh.sh` and the comment script (eg. don't use other MCP servers, file edit, etc.) - Make a todo list first diff --git a/.claude/commands/triage-issue.md b/.claude/commands/triage-issue.md index f4d0ebaac4..d257b1ce98 100644 --- a/.claude/commands/triage-issue.md +++ b/.claude/commands/triage-issue.md @@ -1,5 +1,5 @@ --- -allowed-tools: Bash(gh label list:*),Bash(gh issue view:*),Bash(./scripts/edit-issue-labels.sh:*),Bash(gh search issues:*) +allowed-tools: Bash(./scripts/gh.sh:*),Bash(./scripts/edit-issue-labels.sh:*) description: Triage GitHub issues by analyzing and applying labels --- @@ -12,17 +12,21 @@ Context: $ARGUMENTS TOOLS: -- `gh label list`: Fetch all available labels in this repo -- `gh issue view NUMBER`: Read the issue title, body, and labels -- `gh issue view NUMBER --comments`: Read the conversation -- `gh search issues QUERY`: Find similar or duplicate issues -- `./scripts/edit-issue-labels.sh --issue NUMBER --add-label LABEL --remove-label LABEL`: Add or remove labels +- `./scripts/gh.sh` — wrapper for `gh` CLI. Only supports these subcommands and flags: + - `./scripts/gh.sh label list` — fetch all available labels + - `./scripts/gh.sh label list --limit 100` — fetch with limit + - `./scripts/gh.sh issue view 123` — read issue title, body, and labels + - `./scripts/gh.sh issue view 123 --comments` — read the conversation + - `./scripts/gh.sh issue list --state open --limit 20` — list issues + - `./scripts/gh.sh search issues "query"` — find similar or duplicate issues + - `./scripts/gh.sh search issues "query" --limit 10` — search with limit +- `./scripts/edit-issue-labels.sh --issue NUMBER --add-label LABEL --remove-label LABEL` — add or remove labels TASK: -1. Run `gh label list` to fetch the available labels. You may ONLY use labels from this list. Never invent new labels. -2. Run `gh issue view ISSUE_NUMBER` to read the issue details. -3. Run `gh issue view ISSUE_NUMBER --comments` to read the conversation. +1. Run `./scripts/gh.sh label list` to fetch the available labels. You may ONLY use labels from this list. Never invent new labels. +2. Run `./scripts/gh.sh issue view ISSUE_NUMBER` to read the issue details. +3. Run `./scripts/gh.sh issue view ISSUE_NUMBER --comments` to read the conversation. **If EVENT is "issues" (new issue):** @@ -31,7 +35,7 @@ TASK: 5. Analyze and apply category labels: - Type (bug, enhancement, question, etc.) - Technical areas and platform - - Check for duplicates with `gh search issues`. Only mark as duplicate of OPEN issues. + - Check for duplicates with `./scripts/gh.sh search issues`. Only mark as duplicate of OPEN issues. 6. Evaluate lifecycle labels: - `needs-repro` (bugs only, 7 days): Bug reports without clear steps to reproduce. A good repro has specific, followable steps that someone else could use to see the same issue. @@ -58,7 +62,7 @@ TASK: - Do NOT add or remove category labels (bug, enhancement, etc.) on comment events. GUIDELINES: -- ONLY use labels from `gh label list` — never create or guess label names +- ONLY use labels from `./scripts/gh.sh label list` — never create or guess label names - DO NOT post any comments to the issue - Be conservative with lifecycle labels — only apply when clearly warranted - Only apply lifecycle labels (`needs-repro`, `needs-info`) to bugs — never to questions or enhancements diff --git a/.github/workflows/claude-issue-triage.yml b/.github/workflows/claude-issue-triage.yml index 58fd22b19c..21bb607303 100644 --- a/.github/workflows/claude-issue-triage.yml +++ b/.github/workflows/claude-issue-triage.yml @@ -29,6 +29,7 @@ jobs: uses: anthropics/claude-code-action@v1 env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} with: github_token: ${{ secrets.GITHUB_TOKEN }} allowed_non_write_users: "*" diff --git a/scripts/gh.sh b/scripts/gh.sh new file mode 100755 index 0000000000..6113a75be6 --- /dev/null +++ b/scripts/gh.sh @@ -0,0 +1,85 @@ +#!/usr/bin/env bash +set -euo pipefail + +# Wrapper around gh CLI that only allows specific subcommands and flags. +# All commands are scoped to the current repository via GH_REPO or GITHUB_REPOSITORY. +# +# Usage: +# ./scripts/gh.sh issue view 123 +# ./scripts/gh.sh issue view 123 --comments +# ./scripts/gh.sh issue list --state open --limit 20 +# ./scripts/gh.sh search issues "search query" --limit 10 +# ./scripts/gh.sh label list --limit 100 + +ALLOWED_FLAGS=(--comments --state --limit --label) +FLAGS_WITH_VALUES=(--state --limit --label) + +SUB1="${1:-}" +SUB2="${2:-}" +CMD="$SUB1 $SUB2" +case "$CMD" in + "issue view"|"issue list"|"search issues"|"label list") + ;; + *) + exit 1 + ;; +esac + +shift 2 + +# Separate flags from positional arguments +POSITIONAL=() +FLAGS=() +skip_next=false +for arg in "$@"; do + if [[ "$skip_next" == true ]]; then + FLAGS+=("$arg") + skip_next=false + elif [[ "$arg" == -* ]]; then + flag="${arg%%=*}" + matched=false + for allowed in "${ALLOWED_FLAGS[@]}"; do + if [[ "$flag" == "$allowed" ]]; then + matched=true + break + fi + done + if [[ "$matched" == false ]]; then + exit 1 + fi + FLAGS+=("$arg") + # If flag expects a value and isn't using = syntax, skip next arg + if [[ "$arg" != *=* ]]; then + for vflag in "${FLAGS_WITH_VALUES[@]}"; do + if [[ "$flag" == "$vflag" ]]; then + skip_next=true + break + fi + done + fi + else + POSITIONAL+=("$arg") + fi +done + +REPO="${GH_REPO:-${GITHUB_REPOSITORY:-}}" + +if [[ "$CMD" == "search issues" ]]; then + if [[ -z "$REPO" ]]; then + exit 1 + fi + QUERY="${POSITIONAL[0]:-}" + QUERY_LOWER=$(echo "$QUERY" | tr '[:upper:]' '[:lower:]') + if [[ "$QUERY_LOWER" == *"repo:"* || "$QUERY_LOWER" == *"org:"* || "$QUERY_LOWER" == *"user:"* ]]; then + exit 1 + fi + gh "$SUB1" "$SUB2" "$QUERY" --repo "$REPO" "${FLAGS[@]}" +else + # Reject URLs in positional args to prevent cross-repo access + for pos in "${POSITIONAL[@]}"; do + if [[ "$pos" == http://* || "$pos" == https://* ]]; then + exit 1 + fi + done + gh "$SUB1" "$SUB2" "${POSITIONAL[@]}" "${FLAGS[@]}" +fi From ee4ff289f0756a21aa64f8ec04018c0ffa94c19e Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 25 Feb 2026 19:59:14 +0000 Subject: [PATCH 049/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6396abf95b..32479634f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.1.58 + +- Expand Remote Control to more users + ## 2.1.56 - VS Code: Fixed another cause of "command 'claude-vscode.editor.openLast' not found" crashes From 23edca9c9b9ad11194037b7dc9f49fe48503b4ae Mon Sep 17 00:00:00 2001 From: Octavian Guzu Date: Wed, 25 Feb 2026 22:08:11 +0000 Subject: [PATCH 050/152] Remove unused id-token permission and migrate oncall-triage to gh.sh wrapper --- .claude/commands/oncall-triage-ci.md | 66 ++++++++++++++++ .github/workflows/claude-dedupe-issues.yml | 1 - .github/workflows/claude-issue-triage.yml | 1 - .github/workflows/oncall-triage.yml | 88 +--------------------- 4 files changed, 68 insertions(+), 88 deletions(-) create mode 100644 .claude/commands/oncall-triage-ci.md diff --git a/.claude/commands/oncall-triage-ci.md b/.claude/commands/oncall-triage-ci.md new file mode 100644 index 0000000000..1ed316db52 --- /dev/null +++ b/.claude/commands/oncall-triage-ci.md @@ -0,0 +1,66 @@ +--- +allowed-tools: Bash(./scripts/gh.sh:*), Bash(./scripts/edit-issue-labels.sh:*), TodoWrite +description: Triage GitHub issues for oncall attention (CI workflow version) +--- + +You're an oncall triage assistant for GitHub issues. Your task is to identify critical issues that require immediate oncall attention. + +Important: Don't post any comments or messages to the issues. Your only action should be to apply the "oncall" label to qualifying issues. + +$ARGUMENTS + +TOOLS: +- `./scripts/gh.sh` — wrapper for `gh` CLI. Example commands: + - `./scripts/gh.sh issue list --state open --label bug --limit 100` — list open bugs + - `./scripts/gh.sh issue view 123` — view issue details + - `./scripts/gh.sh issue view 123 --comments` — view with comments + - `./scripts/gh.sh search issues "query" --limit 10` — search for issues +- `./scripts/edit-issue-labels.sh --issue NUMBER --add-label LABEL` — add labels to an issue + +Task overview: + +1. Fetch all open issues updated in the last 3 days: + - Use `./scripts/gh.sh issue list --state open --limit 100` to get issues + - This will give you the most recently updated issues first + - For each page of results, check the updatedAt timestamp of each issue + - Add issues updated within the last 3 days (72 hours) to your TODO list as you go + - Once you hit issues older than 3 days, you can stop fetching + +2. Build your TODO list incrementally as you fetch: + - As you fetch each page, immediately add qualifying issues to your TODO list + - One TODO item per issue number (e.g., "Evaluate issue #123") + - This allows you to start processing while still fetching more pages + +3. For each issue in your TODO list: + - Use `./scripts/gh.sh issue view ` to read the issue details (title, body, labels) + - Use `./scripts/gh.sh issue view --comments` to read all comments + - Evaluate whether this issue needs the oncall label: + a) Is it a bug? (has "bug" label or describes bug behavior) + b) Does it have at least 50 engagements? (count comments + reactions) + c) Is it truly blocking? Read and understand the full content to determine: + - Does this prevent core functionality from working? + - Can users work around it? + - Consider severity indicators: "crash", "stuck", "frozen", "hang", "unresponsive", "cannot use", "blocked", "broken" + - Be conservative - only flag issues that truly prevent users from getting work done + +4. For issues that meet all criteria and do not already have the "oncall" label: + - Use `./scripts/edit-issue-labels.sh --issue --add-label "oncall"` + - Do not post any comments + - Do not remove any existing labels + - Do not remove the "oncall" label from issues that already have it + +Important guidelines: +- Use the TODO list to track your progress through ALL candidate issues +- Process issues efficiently - don't read every single issue upfront, work through your TODO list systematically +- Be conservative in your assessment - only flag truly critical blocking issues +- Do not post any comments to issues +- Your only action should be to add the "oncall" label using ./scripts/edit-issue-labels.sh +- Mark each issue as complete in your TODO list as you process it + +5. After processing all issues in your TODO list, provide a summary of your actions: + - Total number of issues processed (candidate issues evaluated) + - Number of issues that received the "oncall" label + - For each issue that got the label: list issue number, title, and brief reason why it qualified + - Close calls: List any issues that almost qualified but didn't quite meet the criteria (e.g., borderline blocking, had workarounds) + - If no issues qualified, state that clearly + - Format the summary clearly for easy reading diff --git a/.github/workflows/claude-dedupe-issues.yml b/.github/workflows/claude-dedupe-issues.yml index 13385e96cd..a48bf31536 100644 --- a/.github/workflows/claude-dedupe-issues.yml +++ b/.github/workflows/claude-dedupe-issues.yml @@ -17,7 +17,6 @@ jobs: permissions: contents: read issues: write - id-token: write steps: - name: Checkout repository diff --git a/.github/workflows/claude-issue-triage.yml b/.github/workflows/claude-issue-triage.yml index 21bb607303..227445da60 100644 --- a/.github/workflows/claude-issue-triage.yml +++ b/.github/workflows/claude-issue-triage.yml @@ -18,7 +18,6 @@ jobs: permissions: contents: read issues: write - id-token: write steps: - name: Checkout repository diff --git a/.github/workflows/oncall-triage.yml b/.github/workflows/oncall-triage.yml index d70d415e44..c347ea3f4d 100644 --- a/.github/workflows/oncall-triage.yml +++ b/.github/workflows/oncall-triage.yml @@ -16,103 +16,19 @@ jobs: permissions: contents: read issues: write - id-token: write steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Setup GitHub MCP Server - run: | - mkdir -p /tmp/mcp-config - cat > /tmp/mcp-config/mcp-servers.json << 'EOF' - { - "mcpServers": { - "github": { - "command": "docker", - "args": [ - "run", - "-i", - "--rm", - "-e", - "GITHUB_PERSONAL_ACCESS_TOKEN", - "ghcr.io/github/github-mcp-server:sha-7aced2b" - ], - "env": { - "GITHUB_PERSONAL_ACCESS_TOKEN": "${{ secrets.GITHUB_TOKEN }}" - } - } - } - } - EOF - - name: Run Claude Code for Oncall Triage timeout-minutes: 10 uses: anthropics/claude-code-action@v1 env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} with: github_token: ${{ secrets.GITHUB_TOKEN }} allowed_non_write_users: "*" - prompt: | - You're an oncall triage assistant for GitHub issues. Your task is to identify critical issues that require immediate oncall attention. - - Important: Don't post any comments or messages to the issues. Your only action should be to apply the "oncall" label to qualifying issues. - - Repository: ${{ github.repository }} - - Task overview: - 1. Fetch all open issues updated in the last 3 days: - - Use mcp__github__list_issues with: - - state="open" - - first=5 (fetch only 5 issues per page) - - orderBy="UPDATED_AT" - - direction="DESC" - - This will give you the most recently updated issues first - - For each page of results, check the updatedAt timestamp of each issue - - Add issues updated within the last 3 days (72 hours) to your TODO list as you go - - Keep paginating using the 'after' parameter until you encounter issues older than 3 days - - Once you hit issues older than 3 days, you can stop fetching (no need to fetch all open issues) - - 2. Build your TODO list incrementally as you fetch: - - As you fetch each page, immediately add qualifying issues to your TODO list - - One TODO item per issue number (e.g., "Evaluate issue #123") - - This allows you to start processing while still fetching more pages - - 3. For each issue in your TODO list: - - Use mcp__github__get_issue to read the issue details (title, body, labels) - - Use mcp__github__get_issue_comments to read all comments - - Evaluate whether this issue needs the oncall label: - a) Is it a bug? (has "bug" label or describes bug behavior) - b) Does it have at least 50 engagements? (count comments + reactions) - c) Is it truly blocking? Read and understand the full content to determine: - - Does this prevent core functionality from working? - - Can users work around it? - - Consider severity indicators: "crash", "stuck", "frozen", "hang", "unresponsive", "cannot use", "blocked", "broken" - - Be conservative - only flag issues that truly prevent users from getting work done - - 4. For issues that meet all criteria and do not already have the "oncall" label: - - Use mcp__github__update_issue to add the "oncall" label - - Do not post any comments - - Do not remove any existing labels - - Do not remove the "oncall" label from issues that already have it - - Important guidelines: - - Use the TODO list to track your progress through ALL candidate issues - - Process issues efficiently - don't read every single issue upfront, work through your TODO list systematically - - Be conservative in your assessment - only flag truly critical blocking issues - - Do not post any comments to issues - - Your only action should be to add the "oncall" label using mcp__github__update_issue - - Mark each issue as complete in your TODO list as you process it - - 7. After processing all issues in your TODO list, provide a summary of your actions: - - Total number of issues processed (candidate issues evaluated) - - Number of issues that received the "oncall" label - - For each issue that got the label: list issue number, title, and brief reason why it qualified - - Close calls: List any issues that almost qualified but didn't quite meet the criteria (e.g., borderline blocking, had workarounds) - - If no issues qualified, state that clearly - - Format the summary clearly for easy reading + prompt: "/oncall-triage-ci REPO: ${{ github.repository }}" anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} - claude_args: | - --mcp-config /tmp/mcp-config/mcp-servers.json - --allowedTools "mcp__github__list_issues,mcp__github__get_issue,mcp__github__get_issue_comments,mcp__github__update_issue" From d6ab0eafec1692c070a835504b662881649d7112 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 26 Feb 2026 00:58:38 +0000 Subject: [PATCH 051/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32479634f9..1d7b139ab9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 2.1.59 + +- Claude automatically saves useful context to auto-memory. Manage with /memory +- Added `/copy` command to show an interactive picker when code blocks are present, allowing selection of individual code blocks or the full response. +- Improved "always allow" prefix suggestions for compound bash commands (e.g. `cd /tmp && git fetch && git push`) to compute smarter per-subcommand prefixes instead of treating the whole command as one +- Improved ordering of short task lists +- Improved memory usage in multi-agent sessions by releasing completed subagent task state +- Fixed MCP OAuth token refresh race condition when running multiple Claude Code instances simultaneously +- Fixed shell commands not showing a clear error message when the working directory has been deleted + ## 2.1.58 - Expand Remote Control to more users From 016734047deab59c7ad8bc2ab8aad9f052ae5e61 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 26 Feb 2026 03:58:44 +0000 Subject: [PATCH 052/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d7b139ab9..e2953d7a5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - Improved memory usage in multi-agent sessions by releasing completed subagent task state - Fixed MCP OAuth token refresh race condition when running multiple Claude Code instances simultaneously - Fixed shell commands not showing a clear error message when the working directory has been deleted +- Fixed config file corruption that could wipe authentication when multiple Claude Code instances ran simultaneously ## 2.1.58 From e67079be1f8b51fa527be5d5afb1991818eb7511 Mon Sep 17 00:00:00 2001 From: Octavian Guzu Date: Thu, 26 Feb 2026 12:05:23 +0000 Subject: [PATCH 053/152] Increase oncall-triage workflow timeouts - Job timeout: 15 -> 25 minutes - Claude Code step timeout: 10 -> 20 minutes --- .github/workflows/oncall-triage.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/oncall-triage.yml b/.github/workflows/oncall-triage.yml index c347ea3f4d..2d7842b26a 100644 --- a/.github/workflows/oncall-triage.yml +++ b/.github/workflows/oncall-triage.yml @@ -12,7 +12,7 @@ on: jobs: oncall-triage: runs-on: ubuntu-latest - timeout-minutes: 15 + timeout-minutes: 25 permissions: contents: read issues: write @@ -22,7 +22,7 @@ jobs: uses: actions/checkout@v4 - name: Run Claude Code for Oncall Triage - timeout-minutes: 10 + timeout-minutes: 20 uses: anthropics/claude-code-action@v1 env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 7ec9125c5454dcd1f60b7ea5056e003bdd54caa4 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 26 Feb 2026 22:33:45 +0000 Subject: [PATCH 054/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e2953d7a5e..2c6f0d5aba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.1.61 + +- Fixed concurrent writes corrupting config file on Windows + ## 2.1.59 - Claude automatically saves useful context to auto-memory. Manage with /memory From 1f48d799b9ef25a5c9cec36dd9a4c6f409b722f6 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 27 Feb 2026 01:55:28 +0000 Subject: [PATCH 055/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c6f0d5aba..1782136a65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.1.62 + +- Fixed prompt suggestion cache regression that reduced cache hit rates + ## 2.1.61 - Fixed concurrent writes corrupting config file on Windows From 35b5fe658a93f0912df3cf451db7155a4ba90efc Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Feb 2026 00:33:48 +0000 Subject: [PATCH 056/152] Remove oncall triage workflow and commands Removes the automated action that adds the "oncall" label to issues, along with its associated slash commands. https://claude.ai/code/session_01KdEmZZ4sqZT4d9xJm4qbnp --- .claude/commands/oncall-triage-ci.md | 66 ---------------------------- .claude/commands/oncall-triage.md | 40 ----------------- .github/workflows/oncall-triage.yml | 34 -------------- 3 files changed, 140 deletions(-) delete mode 100644 .claude/commands/oncall-triage-ci.md delete mode 100644 .claude/commands/oncall-triage.md delete mode 100644 .github/workflows/oncall-triage.yml diff --git a/.claude/commands/oncall-triage-ci.md b/.claude/commands/oncall-triage-ci.md deleted file mode 100644 index 1ed316db52..0000000000 --- a/.claude/commands/oncall-triage-ci.md +++ /dev/null @@ -1,66 +0,0 @@ ---- -allowed-tools: Bash(./scripts/gh.sh:*), Bash(./scripts/edit-issue-labels.sh:*), TodoWrite -description: Triage GitHub issues for oncall attention (CI workflow version) ---- - -You're an oncall triage assistant for GitHub issues. Your task is to identify critical issues that require immediate oncall attention. - -Important: Don't post any comments or messages to the issues. Your only action should be to apply the "oncall" label to qualifying issues. - -$ARGUMENTS - -TOOLS: -- `./scripts/gh.sh` — wrapper for `gh` CLI. Example commands: - - `./scripts/gh.sh issue list --state open --label bug --limit 100` — list open bugs - - `./scripts/gh.sh issue view 123` — view issue details - - `./scripts/gh.sh issue view 123 --comments` — view with comments - - `./scripts/gh.sh search issues "query" --limit 10` — search for issues -- `./scripts/edit-issue-labels.sh --issue NUMBER --add-label LABEL` — add labels to an issue - -Task overview: - -1. Fetch all open issues updated in the last 3 days: - - Use `./scripts/gh.sh issue list --state open --limit 100` to get issues - - This will give you the most recently updated issues first - - For each page of results, check the updatedAt timestamp of each issue - - Add issues updated within the last 3 days (72 hours) to your TODO list as you go - - Once you hit issues older than 3 days, you can stop fetching - -2. Build your TODO list incrementally as you fetch: - - As you fetch each page, immediately add qualifying issues to your TODO list - - One TODO item per issue number (e.g., "Evaluate issue #123") - - This allows you to start processing while still fetching more pages - -3. For each issue in your TODO list: - - Use `./scripts/gh.sh issue view ` to read the issue details (title, body, labels) - - Use `./scripts/gh.sh issue view --comments` to read all comments - - Evaluate whether this issue needs the oncall label: - a) Is it a bug? (has "bug" label or describes bug behavior) - b) Does it have at least 50 engagements? (count comments + reactions) - c) Is it truly blocking? Read and understand the full content to determine: - - Does this prevent core functionality from working? - - Can users work around it? - - Consider severity indicators: "crash", "stuck", "frozen", "hang", "unresponsive", "cannot use", "blocked", "broken" - - Be conservative - only flag issues that truly prevent users from getting work done - -4. For issues that meet all criteria and do not already have the "oncall" label: - - Use `./scripts/edit-issue-labels.sh --issue --add-label "oncall"` - - Do not post any comments - - Do not remove any existing labels - - Do not remove the "oncall" label from issues that already have it - -Important guidelines: -- Use the TODO list to track your progress through ALL candidate issues -- Process issues efficiently - don't read every single issue upfront, work through your TODO list systematically -- Be conservative in your assessment - only flag truly critical blocking issues -- Do not post any comments to issues -- Your only action should be to add the "oncall" label using ./scripts/edit-issue-labels.sh -- Mark each issue as complete in your TODO list as you process it - -5. After processing all issues in your TODO list, provide a summary of your actions: - - Total number of issues processed (candidate issues evaluated) - - Number of issues that received the "oncall" label - - For each issue that got the label: list issue number, title, and brief reason why it qualified - - Close calls: List any issues that almost qualified but didn't quite meet the criteria (e.g., borderline blocking, had workarounds) - - If no issues qualified, state that clearly - - Format the summary clearly for easy reading diff --git a/.claude/commands/oncall-triage.md b/.claude/commands/oncall-triage.md deleted file mode 100644 index 979bdfe6e2..0000000000 --- a/.claude/commands/oncall-triage.md +++ /dev/null @@ -1,40 +0,0 @@ ---- -allowed-tools: Bash(gh issue list:*), Bash(gh issue view:*), Bash(gh issue edit:*), TodoWrite -description: Triage GitHub issues and label critical ones for oncall ---- - -You're an oncall triage assistant for GitHub issues. Your task is to identify critical issues that require immediate oncall attention and apply the "oncall" label. - -Repository: anthropics/claude-code - -Task overview: - -1. First, get all open bugs updated in the last 3 days with at least 50 engagements: - ```bash - gh issue list --repo anthropics/claude-code --state open --label bug --limit 1000 --json number,title,updatedAt,comments,reactions | jq -r '.[] | select((.updatedAt >= (now - 259200 | strftime("%Y-%m-%dT%H:%M:%SZ"))) and ((.comments | length) + ([.reactions[].content] | length) >= 50)) | "\(.number)"' - ``` - -2. Save the list of issue numbers and create a TODO list with ALL of them. This ensures you process every single one. - -3. For each issue in your TODO list: - - Use `gh issue view --repo anthropics/claude-code --json title,body,labels,comments` to get full details - - Read and understand the full issue content and comments to determine actual user impact - - Evaluate: Is this truly blocking users from using Claude Code? - - Consider: "crash", "stuck", "frozen", "hang", "unresponsive", "cannot use", "blocked", "broken" - - Does it prevent core functionality? Can users work around it? - - Be conservative - only flag issues that truly prevent users from getting work done - -4. For issues that are truly blocking and don't already have the "oncall" label: - - Use `gh issue edit --repo anthropics/claude-code --add-label "oncall"` - - Mark the issue as complete in your TODO list - -5. After processing all issues, provide a summary: - - List each issue number that received the "oncall" label - - Include the issue title and brief reason why it qualified - - If no issues qualified, state that clearly - -Important: -- Process ALL issues in your TODO list systematically -- Don't post any comments to issues -- Only add the "oncall" label, never remove it -- Use individual `gh issue view` commands instead of bash for loops to avoid approval prompts diff --git a/.github/workflows/oncall-triage.yml b/.github/workflows/oncall-triage.yml deleted file mode 100644 index 2d7842b26a..0000000000 --- a/.github/workflows/oncall-triage.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Oncall Issue Triage -description: Automatically identify and label critical blocking issues requiring oncall attention -on: - push: - branches: - - add-oncall-triage-workflow # Temporary: for testing only - schedule: - # Run every 6 hours - - cron: '0 */6 * * *' - workflow_dispatch: # Allow manual trigger - -jobs: - oncall-triage: - runs-on: ubuntu-latest - timeout-minutes: 25 - permissions: - contents: read - issues: write - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Run Claude Code for Oncall Triage - timeout-minutes: 20 - uses: anthropics/claude-code-action@v1 - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GH_REPO: ${{ github.repository }} - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - allowed_non_write_users: "*" - prompt: "/oncall-triage-ci REPO: ${{ github.repository }}" - anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} From cd4956871a56b07d9d2a6cb538fae109d04c9d57 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sat, 28 Feb 2026 03:44:47 +0000 Subject: [PATCH 057/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1782136a65..a1a16153b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,34 @@ # Changelog +## 2.1.63 + +- Added `/simplify` and `/batch` bundled slash commands +- Fixed local slash command output like /cost appearing as user-sent messages instead of system messages in the UI +- Project configs & auto memory now shared across git worktrees of the same repository +- Added `ENABLE_CLAUDEAI_MCP_SERVERS=false` env var to opt out from making claude.ai MCP servers available +- Improved `/model` command to show the currently active model in the slash command menu +- Added HTTP hooks, which can POST JSON to a URL and receive JSON instead of running a shell command +- Fixed listener leak in bridge polling loop +- Fixed listener leak in MCP OAuth flow cleanup +- Added manual URL paste fallback during MCP OAuth authentication. If the automatic localhost redirect doesn't work, you can paste the callback URL to complete authentication. +- Fixed memory leak when navigating hooks configuration menu +- Fixed listener leak in interactive permission handler during auto-approvals +- Fixed file count cache ignoring glob ignore patterns +- Fixed memory leak in bash command prefix cache +- Fixed MCP tool/resource cache leak on server reconnect +- Fixed IDE host IP detection cache incorrectly sharing results across ports +- Fixed WebSocket listener leak on transport reconnect +- Fixed memory leak in git root detection cache that could cause unbounded growth in long-running sessions +- Fixed memory leak in JSON parsing cache that grew unbounded over long sessions +- VSCode: Fixed remote sessions not appearing in conversation history +- Fixed a race condition in the REPL bridge where new messages could arrive at the server interleaved with historical messages during the initial connection flush, causing message ordering issues. +- Fixed memory leak where long-running teammates retained all messages in AppState even after conversation compaction +- Fixed a memory leak where MCP server fetch caches were not cleared on disconnect, causing growing memory usage with servers that reconnect frequently +- Improved memory usage in long sessions with subagents by stripping heavy progress message payloads during context compaction +- Added "Always copy full response" option to the `/copy` picker. When selected, future `/copy` commands will skip the code block picker and copy the full response directly. +- VSCode: Added session rename and remove actions to the sessions list +- Fixed `/clear` not resetting cached skills, which could cause stale skill content to persist in the new conversation + ## 2.1.62 - Fixed prompt suggestion cache regression that reduced cache hit rates From 26a1334ef337b2328153fdd9e0c737f305c0ca58 Mon Sep 17 00:00:00 2001 From: Octavian Guzu Date: Mon, 2 Mar 2026 12:22:00 +0000 Subject: [PATCH 058/152] Improve gh.sh wrapper: stricter validation and better error messages - Use allowlist for issue view (numeric issue numbers only) - Enforce zero positional args for issue list / label list - Pin GH_HOST and GH_REPO explicitly to avoid ambient state - Add descriptive error messages with usage examples --- scripts/gh.sh | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/scripts/gh.sh b/scripts/gh.sh index 6113a75be6..06c15c847b 100755 --- a/scripts/gh.sh +++ b/scripts/gh.sh @@ -11,6 +11,15 @@ set -euo pipefail # ./scripts/gh.sh search issues "search query" --limit 10 # ./scripts/gh.sh label list --limit 100 +export GH_HOST=github.com + +REPO="${GH_REPO:-${GITHUB_REPOSITORY:-}}" +if [[ -z "$REPO" || "$REPO" == */*/* || "$REPO" != */* ]]; then + echo "Error: GH_REPO or GITHUB_REPOSITORY must be set to owner/repo format (e.g., GITHUB_REPOSITORY=anthropics/claude-code)" >&2 + exit 1 +fi +export GH_REPO="$REPO" + ALLOWED_FLAGS=(--comments --state --limit --label) FLAGS_WITH_VALUES=(--state --limit --label) @@ -21,6 +30,7 @@ case "$CMD" in "issue view"|"issue list"|"search issues"|"label list") ;; *) + echo "Error: only 'issue view', 'issue list', 'search issues', 'label list' are allowed (e.g., ./scripts/gh.sh issue view 123)" >&2 exit 1 ;; esac @@ -45,6 +55,7 @@ for arg in "$@"; do fi done if [[ "$matched" == false ]]; then + echo "Error: only --comments, --state, --limit, --label flags are allowed (e.g., ./scripts/gh.sh issue list --state open --limit 20)" >&2 exit 1 fi FLAGS+=("$arg") @@ -62,24 +73,24 @@ for arg in "$@"; do fi done -REPO="${GH_REPO:-${GITHUB_REPOSITORY:-}}" - if [[ "$CMD" == "search issues" ]]; then - if [[ -z "$REPO" ]]; then - exit 1 - fi QUERY="${POSITIONAL[0]:-}" QUERY_LOWER=$(echo "$QUERY" | tr '[:upper:]' '[:lower:]') if [[ "$QUERY_LOWER" == *"repo:"* || "$QUERY_LOWER" == *"org:"* || "$QUERY_LOWER" == *"user:"* ]]; then + echo "Error: search query must not contain repo:, org:, or user: qualifiers (e.g., ./scripts/gh.sh search issues \"bug report\" --limit 10)" >&2 exit 1 fi gh "$SUB1" "$SUB2" "$QUERY" --repo "$REPO" "${FLAGS[@]}" +elif [[ "$CMD" == "issue view" ]]; then + if [[ ${#POSITIONAL[@]} -ne 1 ]] || ! [[ "${POSITIONAL[0]}" =~ ^[0-9]+$ ]]; then + echo "Error: issue view requires exactly one numeric issue number (e.g., ./scripts/gh.sh issue view 123)" >&2 + exit 1 + fi + gh "$SUB1" "$SUB2" "${POSITIONAL[0]}" "${FLAGS[@]}" else - # Reject URLs in positional args to prevent cross-repo access - for pos in "${POSITIONAL[@]}"; do - if [[ "$pos" == http://* || "$pos" == https://* ]]; then - exit 1 - fi - done - gh "$SUB1" "$SUB2" "${POSITIONAL[@]}" "${FLAGS[@]}" + if [[ ${#POSITIONAL[@]} -ne 0 ]]; then + echo "Error: issue list and label list do not accept positional arguments (e.g., ./scripts/gh.sh issue list --state open, ./scripts/gh.sh label list --limit 100)" >&2 + exit 1 + fi + gh "$SUB1" "$SUB2" "${FLAGS[@]}" fi From 9c63e985f66332b5dbc1428bedc9377a84b74af9 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 4 Mar 2026 01:18:30 +0000 Subject: [PATCH 059/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a1a16153b8..cf826c8005 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,70 @@ # Changelog +## 2.1.64 + +- Added persistent session support to `claude server`: connections with a `session_key` survive WebSocket disconnects and can be resumed across server restarts. New flags: `--workspace`, `--idle-timeout`, `--max-sessions`. +- Added `claude remote-control server` for hosting multiple concurrent sessions with worktree or same-dir isolation +- Added optional name argument to `/remote-control` and `claude remote-control` (`/remote-control My Project` or `--name "My Project"`) to set a custom session title visible in claude.ai/code +- Added Voice STT support for 10 new languages (20 total) — Russian, Polish, Turkish, Dutch, Ukrainian, Greek, Czech, Danish, Swedish, Norwegian +- Added effort level display (e.g., "with low effort") to the logo and spinner, making it easier to see which effort setting is active +- Added agent name display in terminal title when using `claude --agent` +- Added `sandbox.enableWeakerNetworkIsolation` setting (macOS only) to allow Go programs like `gh`, `gcloud`, and `terraform` to verify TLS certificates when using a custom MITM proxy with `httpProxyPort` +- Added `includeGitInstructions` setting (and `CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS` env var) to remove built-in commit and PR workflow instructions from Claude's system prompt +- Added `/reload-plugins` command to activate pending plugin changes without restarting +- Added a one-time startup prompt suggesting Claude Code Desktop on macOS and Windows (max 3 showings, dismissible) +- Added `${CLAUDE_SKILL_DIR}` variable for skills to reference their own directory in SKILL.md content +- Added `InstructionsLoaded` hook event that fires when CLAUDE.md or `.claude/rules/*.md` files are loaded into context +- Added `agent_id` (for subagents) and `agent_type` (for subagents and `--agent`) to hook events +- Added `worktree` field to status line hook commands with name, path, branch, and original repo directory when running in a `--worktree` session +- Added scheduled skill triggers to the background tasks indicator with a detail dialog showing schedule and countdown +- Added `pluginTrustMessage` in managed settings to append organization-specific context to the plugin trust warning shown before installation +- Added policy limit fetching (e.g., remote control restrictions) for Team plan OAuth users, not just Enterprise +- Added `pathPattern` to `strictKnownMarketplaces` for regex-matching file/directory marketplace sources alongside `hostPattern` restrictions +- Added plugin source type `git-subdir` to point to a subdirectory within a git repo +- Added `CLAUDE_CODE_AUTO_MEMORY_PATH` env var to override the auto-memory directory with a direct path +- Added `oauth.authServerMetadataUrl` config option for MCP servers to specify a custom OAuth metadata discovery URL when standard discovery fails +- Fixed symlink bypass where writing new files through a symlinked parent directory could escape the working directory in `acceptEdits` mode +- Fixed sandbox prompting users to approve non-allowed domains when `allowManagedDomainsOnly` is enabled in managed settings — non-allowed domains are now blocked automatically with no bypass +- Fixed interactive tools (e.g., `AskUserQuestion`) being silently auto-allowed when listed in a skill's allowed-tools, bypassing the permission prompt and running with empty answers +- Fixed multi-GB memory spike when committing with large untracked binary files in the working tree +- Fixed Escape not interrupting a running turn when the input box has draft text. Use Up arrow to pull queued messages back for editing, or Ctrl+U to clear the input line. +- Fixed Android app crash when running local slash commands (`/voice`, `/cost`) in Remote Control sessions +- Fixed a memory leak where old message array versions accumulated in React Compiler `memoCache` over long sessions +- Fixed a memory leak where REPL render scopes accumulated over long sessions (~35MB over 1000 turns) +- Fixed memory retention in in-process teammates where the parent's full conversation history was pinned for the teammate's lifetime, preventing GC after `/clear` or auto-compact +- Fixed a memory leak in interactive mode where hook events could accumulate unboundedly during long sessions +- Fixed hang when `--mcp-config` points to a corrupted file +- Fixed slow startup when many skills/plugins are installed +- Fixed `cd && rm/mv/cp ...` permission prompt to mention the chained write command instead of only showing "allow reading from /" +- Fixed `cd && ` permission prompt to surface the chained command instead of only showing "Yes, allow reading from /" +- Fixed conditional `.claude/rules/*.md` files (with `paths:` frontmatter) and nested CLAUDE.md files not loading in print mode (`claude -p`) +- Fixed `/clear` not fully clearing all session caches, reducing memory retention in long sessions +- Fixed terminal flicker caused by animated elements at the scrollback boundary +- Fixed UI frame drops on macOS when using MCP servers with OAuth (regression from 2.1.x) +- Fixed occasional frame stalls during typing caused by synchronous debug log flushes +- Fixed `TeammateIdle` and `TaskCompleted` hooks to support `{"continue": false, "stopReason": "..."}` to stop the teammate, matching `Stop` hook behavior +- Fixed `WorktreeCreate` and `WorktreeRemove` plugin hooks being silently ignored +- Fixed `WorktreeCreate` hooks registered by plugins or SDK consumers being silently ignored +- Fixed skill descriptions with colons (e.g., "Triggers include: X, Y, Z") failing to load from SKILL.md frontmatter +- Fixed project skills without a `description:` frontmatter field not appearing in Claude's available skills list +- Fixed `/context` showing identical token counts for all MCP tools from a server +- Fixed literal `nul` file creation on Windows when the model uses CMD-style `2>nul` redirection in Git Bash +- Fixed extra blank lines appearing below each tool call in the expanded subagent transcript view (Ctrl+O) +- Fixed Tab/arrow keys not cycling Settings tabs when `/config` search box is focused but empty +- Fixed service key OAuth sessions (CCR containers) spamming `[ERROR]` logs with 403s from profile-scoped endpoints +- Fixed inconsistent color for "Remote Control active" status indicator +- Fixed Voice waveform cursor covering the first suffix letter when dictating mid-input +- Fixed Voice input showing all 5 spaces during warmup instead of capping at ~2 (aligning with the "keep holding…" hint) +- Improved MCP binary content handling: tools returning PDFs, Office documents, or audio now save decoded bytes to disk with the correct file extension instead of dumping raw base64 into the conversation context. WebFetch also saves binary responses alongside its summary. +- Improved memory usage in long sessions by stabilizing `onSubmit` across message updates +- Improved LSP tool rendering and memory context building to no longer read entire files +- Improved session upload and memory sync to avoid reading large files into memory before size/binary checks +- Improved file operation performance by avoiding reading file contents for existence checks (6 sites) +- Improved documentation to clarify that `--append-system-prompt-file` and `--system-prompt-file` work in interactive mode (the docs previously said print mode only) +- Changed thinking summaries in Ctrl+O to show a `✻ Thinking…` stub instead of full content. Set `showThinkingSummaries: true` in settings.json to restore. +- [VSCode] Fixed rename and remove icons showing on the current active session when it is untitled and empty +- [VSCode] Fixed blank dot appearing in the timeline for some tools + ## 2.1.63 - Added `/simplify` and `/batch` bundled slash commands From a8335230bc62baae60c8eb18ae77ab32123454bd Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 4 Mar 2026 02:23:29 +0000 Subject: [PATCH 060/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 67 +++------------------------------------------------- 1 file changed, 3 insertions(+), 64 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf826c8005..610ca17ad3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,69 +1,8 @@ # Changelog -## 2.1.64 - -- Added persistent session support to `claude server`: connections with a `session_key` survive WebSocket disconnects and can be resumed across server restarts. New flags: `--workspace`, `--idle-timeout`, `--max-sessions`. -- Added `claude remote-control server` for hosting multiple concurrent sessions with worktree or same-dir isolation -- Added optional name argument to `/remote-control` and `claude remote-control` (`/remote-control My Project` or `--name "My Project"`) to set a custom session title visible in claude.ai/code -- Added Voice STT support for 10 new languages (20 total) — Russian, Polish, Turkish, Dutch, Ukrainian, Greek, Czech, Danish, Swedish, Norwegian -- Added effort level display (e.g., "with low effort") to the logo and spinner, making it easier to see which effort setting is active -- Added agent name display in terminal title when using `claude --agent` -- Added `sandbox.enableWeakerNetworkIsolation` setting (macOS only) to allow Go programs like `gh`, `gcloud`, and `terraform` to verify TLS certificates when using a custom MITM proxy with `httpProxyPort` -- Added `includeGitInstructions` setting (and `CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS` env var) to remove built-in commit and PR workflow instructions from Claude's system prompt -- Added `/reload-plugins` command to activate pending plugin changes without restarting -- Added a one-time startup prompt suggesting Claude Code Desktop on macOS and Windows (max 3 showings, dismissible) -- Added `${CLAUDE_SKILL_DIR}` variable for skills to reference their own directory in SKILL.md content -- Added `InstructionsLoaded` hook event that fires when CLAUDE.md or `.claude/rules/*.md` files are loaded into context -- Added `agent_id` (for subagents) and `agent_type` (for subagents and `--agent`) to hook events -- Added `worktree` field to status line hook commands with name, path, branch, and original repo directory when running in a `--worktree` session -- Added scheduled skill triggers to the background tasks indicator with a detail dialog showing schedule and countdown -- Added `pluginTrustMessage` in managed settings to append organization-specific context to the plugin trust warning shown before installation -- Added policy limit fetching (e.g., remote control restrictions) for Team plan OAuth users, not just Enterprise -- Added `pathPattern` to `strictKnownMarketplaces` for regex-matching file/directory marketplace sources alongside `hostPattern` restrictions -- Added plugin source type `git-subdir` to point to a subdirectory within a git repo -- Added `CLAUDE_CODE_AUTO_MEMORY_PATH` env var to override the auto-memory directory with a direct path -- Added `oauth.authServerMetadataUrl` config option for MCP servers to specify a custom OAuth metadata discovery URL when standard discovery fails -- Fixed symlink bypass where writing new files through a symlinked parent directory could escape the working directory in `acceptEdits` mode -- Fixed sandbox prompting users to approve non-allowed domains when `allowManagedDomainsOnly` is enabled in managed settings — non-allowed domains are now blocked automatically with no bypass -- Fixed interactive tools (e.g., `AskUserQuestion`) being silently auto-allowed when listed in a skill's allowed-tools, bypassing the permission prompt and running with empty answers -- Fixed multi-GB memory spike when committing with large untracked binary files in the working tree -- Fixed Escape not interrupting a running turn when the input box has draft text. Use Up arrow to pull queued messages back for editing, or Ctrl+U to clear the input line. -- Fixed Android app crash when running local slash commands (`/voice`, `/cost`) in Remote Control sessions -- Fixed a memory leak where old message array versions accumulated in React Compiler `memoCache` over long sessions -- Fixed a memory leak where REPL render scopes accumulated over long sessions (~35MB over 1000 turns) -- Fixed memory retention in in-process teammates where the parent's full conversation history was pinned for the teammate's lifetime, preventing GC after `/clear` or auto-compact -- Fixed a memory leak in interactive mode where hook events could accumulate unboundedly during long sessions -- Fixed hang when `--mcp-config` points to a corrupted file -- Fixed slow startup when many skills/plugins are installed -- Fixed `cd && rm/mv/cp ...` permission prompt to mention the chained write command instead of only showing "allow reading from /" -- Fixed `cd && ` permission prompt to surface the chained command instead of only showing "Yes, allow reading from /" -- Fixed conditional `.claude/rules/*.md` files (with `paths:` frontmatter) and nested CLAUDE.md files not loading in print mode (`claude -p`) -- Fixed `/clear` not fully clearing all session caches, reducing memory retention in long sessions -- Fixed terminal flicker caused by animated elements at the scrollback boundary -- Fixed UI frame drops on macOS when using MCP servers with OAuth (regression from 2.1.x) -- Fixed occasional frame stalls during typing caused by synchronous debug log flushes -- Fixed `TeammateIdle` and `TaskCompleted` hooks to support `{"continue": false, "stopReason": "..."}` to stop the teammate, matching `Stop` hook behavior -- Fixed `WorktreeCreate` and `WorktreeRemove` plugin hooks being silently ignored -- Fixed `WorktreeCreate` hooks registered by plugins or SDK consumers being silently ignored -- Fixed skill descriptions with colons (e.g., "Triggers include: X, Y, Z") failing to load from SKILL.md frontmatter -- Fixed project skills without a `description:` frontmatter field not appearing in Claude's available skills list -- Fixed `/context` showing identical token counts for all MCP tools from a server -- Fixed literal `nul` file creation on Windows when the model uses CMD-style `2>nul` redirection in Git Bash -- Fixed extra blank lines appearing below each tool call in the expanded subagent transcript view (Ctrl+O) -- Fixed Tab/arrow keys not cycling Settings tabs when `/config` search box is focused but empty -- Fixed service key OAuth sessions (CCR containers) spamming `[ERROR]` logs with 403s from profile-scoped endpoints -- Fixed inconsistent color for "Remote Control active" status indicator -- Fixed Voice waveform cursor covering the first suffix letter when dictating mid-input -- Fixed Voice input showing all 5 spaces during warmup instead of capping at ~2 (aligning with the "keep holding…" hint) -- Improved MCP binary content handling: tools returning PDFs, Office documents, or audio now save decoded bytes to disk with the correct file extension instead of dumping raw base64 into the conversation context. WebFetch also saves binary responses alongside its summary. -- Improved memory usage in long sessions by stabilizing `onSubmit` across message updates -- Improved LSP tool rendering and memory context building to no longer read entire files -- Improved session upload and memory sync to avoid reading large files into memory before size/binary checks -- Improved file operation performance by avoiding reading file contents for existence checks (6 sites) -- Improved documentation to clarify that `--append-system-prompt-file` and `--system-prompt-file` work in interactive mode (the docs previously said print mode only) -- Changed thinking summaries in Ctrl+O to show a `✻ Thinking…` stub instead of full content. Set `showThinkingSummaries: true` in settings.json to restore. -- [VSCode] Fixed rename and remove icons showing on the current active session when it is untitled and empty -- [VSCode] Fixed blank dot appearing in the timeline for some tools +## 2.1.66 + +- Reduced spurious error logging ## 2.1.63 From 0b3f7cbbbd8c0e78c4bb63134ead608c555df5de Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 4 Mar 2026 10:10:30 +0000 Subject: [PATCH 061/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 610ca17ad3..ee93589d47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 2.1.68 + +- Opus 4.6 now defaults to medium effort for Max and Team subscribers. Medium effort works well for most tasks — it's the sweet spot between speed and thoroughness. You can change this anytime with `/model` +- Re-introduced the "ultrathink" keyword to enable high effort for the next turn +- Removed Opus 4 and 4.1 from Claude Code on the first-party API — users with these models pinned are automatically moved to Opus 4.6 + ## 2.1.66 - Reduced spurious error logging From 9582ad480f687bbeaf0025852ac4f020b07f20bb Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 5 Mar 2026 00:25:31 +0000 Subject: [PATCH 062/152] chore: Update CHANGELOG.md Fixes #28334 Fixes #30185 --- CHANGELOG.md | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ee93589d47..f9232b04f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,111 @@ # Changelog +## 2.1.69 + +- Added the `/claude-api` skill for building applications with the Claude API and Anthropic SDK +- Added Ctrl+U on an empty bash prompt (`!`) to exit bash mode, matching `escape` and `backspace` +- Added numeric keypad support for selecting options in Claude's interview questions (previously only the number row above QWERTY worked) +- Added optional name argument to `/remote-control` and `claude remote-control` (`/remote-control My Project` or `--name "My Project"`) to set a custom session title visible in claude.ai/code +- Added Voice STT support for 10 new languages (20 total) — Russian, Polish, Turkish, Dutch, Ukrainian, Greek, Czech, Danish, Swedish, Norwegian +- Added effort level display (e.g., "with low effort") to the logo and spinner, making it easier to see which effort setting is active +- Added agent name display in terminal title when using `claude --agent` +- Added `sandbox.enableWeakerNetworkIsolation` setting (macOS only) to allow Go programs like `gh`, `gcloud`, and `terraform` to verify TLS certificates when using a custom MITM proxy with `httpProxyPort` +- Added `includeGitInstructions` setting (and `CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS` env var) to remove built-in commit and PR workflow instructions from Claude's system prompt +- Added `/reload-plugins` command to activate pending plugin changes without restarting +- Added a one-time startup prompt suggesting Claude Code Desktop on macOS and Windows (max 3 showings, dismissible) +- Added `${CLAUDE_SKILL_DIR}` variable for skills to reference their own directory in SKILL.md content +- Added `InstructionsLoaded` hook event that fires when CLAUDE.md or `.claude/rules/*.md` files are loaded into context +- Added `agent_id` (for subagents) and `agent_type` (for subagents and `--agent`) to hook events +- Added `worktree` field to status line hook commands with name, path, branch, and original repo directory when running in a `--worktree` session +- Added `pluginTrustMessage` in managed settings to append organization-specific context to the plugin trust warning shown before installation +- Added policy limit fetching (e.g., remote control restrictions) for Team plan OAuth users, not just Enterprise +- Added `pathPattern` to `strictKnownMarketplaces` for regex-matching file/directory marketplace sources alongside `hostPattern` restrictions +- Added plugin source type `git-subdir` to point to a subdirectory within a git repo +- Added `oauth.authServerMetadataUrl` config option for MCP servers to specify a custom OAuth metadata discovery URL when standard discovery fails +- Fixed a security issue where nested skill discovery could load skills from gitignored directories like `node_modules` +- Fixed trust dialog silently enabling all `.mcp.json` servers on first run. You'll now see the per-server approval dialog as expected +- Fixed `claude remote-control` crashing immediately on npm installs with "bad option: --sdk-url" (anthropics/claude-code#28334) +- Fixed `--model claude-opus-4-0` and `--model claude-opus-4-1` resolving to deprecated Opus versions instead of current +- Fixed macOS keychain corruption when using multiple OAuth MCP servers. Large OAuth metadata blobs could overflow the `security -i` stdin buffer, silently leaving stale credentials behind and causing repeated `/login` prompts. +- Fixed `.credentials.json` losing `subscriptionType` (showing "Claude API" instead of "Claude Pro"/"Claude Max") when the profile endpoint transiently fails during token refresh (anthropics/claude-code#30185) +- Fixed ghost dotfiles (`.bashrc`, `HEAD`, etc.) appearing as untracked files in the working directory after sandboxed Bash commands on Linux +- Fixed Shift+Enter printing `[27;2;13~` instead of inserting a newline in Ghostty over SSH +- Fixed stash (Ctrl+S) being cleared when submitting a message while Claude is working +- Fixed ctrl+o (transcript toggle) freezing for many seconds in long sessions with lots of file edits +- Fixed plan mode feedback input not supporting multi-line text entry (backslash+Enter and Shift+Enter now insert newlines) +- Fixed cursor not moving down into blank lines at the top of the input box +- Fixed `/stats` crash when transcript files contain entries with missing or malformed timestamps +- Fixed a brief hang after a streaming error on long sessions (the transcript was being fully rewritten to drop one line; it is now truncated in place) +- Fixed `--setting-sources user` not blocking dynamically discovered project skills +- Fixed duplicate CLAUDE.md, slash commands, agents, and rules when running from a worktree nested inside its main repo (e.g. `claude -w`) +- Fixed plugin Stop/SessionEnd/etc hooks not firing after any `/plugin` operation +- Fixed plugin hooks being silently dropped when two plugins use the same `${CLAUDE_PLUGIN_ROOT}/...` command template +- Fixed memory leak in long-running SDK/CCR sessions where conversation messages were retained unnecessarily +- Fixed API 400 errors in forked agents (autocompact, summarization) when resuming sessions that were interrupted mid-tool-batch +- Fixed "unexpected tool_use_id found in tool_result blocks" error when resuming conversations that start with an orphaned tool result +- Fixed teammates accidentally spawning nested teammates via the Agent tool's `name` parameter +- Fixed `CLAUDE_CODE_MAX_OUTPUT_TOKENS` being ignored during conversation compaction +- Fixed `/compact` summary rendering as a user bubble in SDK consumers (Claude Code Remote web UI, VSCode extension) +- Fixed voice space bar getting stuck after a failed voice activation (module loading race, cold GrowthBook) +- Fixed worktree file copy on Windows +- Fixed global `.claude` folder detection on Windows +- Fixed symlink bypass where writing new files through a symlinked parent directory could escape the working directory in `acceptEdits` mode +- Fixed sandbox prompting users to approve non-allowed domains when `allowManagedDomainsOnly` is enabled in managed settings — non-allowed domains are now blocked automatically with no bypass +- Fixed interactive tools (e.g., `AskUserQuestion`) being silently auto-allowed when listed in a skill's allowed-tools, bypassing the permission prompt and running with empty answers +- Fixed multi-GB memory spike when committing with large untracked binary files in the working tree +- Fixed Escape not interrupting a running turn when the input box has draft text. Use Up arrow to pull queued messages back for editing, or Ctrl+U to clear the input line. +- Fixed Android app crash when running local slash commands (`/voice`, `/cost`) in Remote Control sessions +- Fixed a memory leak where old message array versions accumulated in React Compiler `memoCache` over long sessions +- Fixed a memory leak where REPL render scopes accumulated over long sessions (~35MB over 1000 turns) +- Fixed memory retention in in-process teammates where the parent's full conversation history was pinned for the teammate's lifetime, preventing GC after `/clear` or auto-compact +- Fixed a memory leak in interactive mode where hook events could accumulate unboundedly during long sessions +- Fixed hang when `--mcp-config` points to a corrupted file +- Fixed slow startup when many skills/plugins are installed +- Fixed `cd && ` permission prompt to surface the chained command instead of only showing "Yes, allow reading from /" +- Fixed conditional `.claude/rules/*.md` files (with `paths:` frontmatter) and nested CLAUDE.md files not loading in print mode (`claude -p`) +- Fixed `/clear` not fully clearing all session caches, reducing memory retention in long sessions +- Fixed terminal flicker caused by animated elements at the scrollback boundary +- Fixed UI frame drops on macOS when using MCP servers with OAuth (regression from 2.1.x) +- Fixed occasional frame stalls during typing caused by synchronous debug log flushes +- Fixed `TeammateIdle` and `TaskCompleted` hooks to support `{"continue": false, "stopReason": "..."}` to stop the teammate, matching `Stop` hook behavior +- Fixed `WorktreeCreate` and `WorktreeRemove` plugin hooks being silently ignored +- Fixed skill descriptions with colons (e.g., "Triggers include: X, Y, Z") failing to load from SKILL.md frontmatter +- Fixed project skills without a `description:` frontmatter field not appearing in Claude's available skills list +- Fixed `/context` showing identical token counts for all MCP tools from a server +- Fixed literal `nul` file creation on Windows when the model uses CMD-style `2>nul` redirection in Git Bash +- Fixed extra blank lines appearing below each tool call in the expanded subagent transcript view (Ctrl+O) +- Fixed Tab/arrow keys not cycling Settings tabs when `/config` search box is focused but empty +- Fixed service key OAuth sessions (CCR containers) spamming `[ERROR]` logs with 403s from profile-scoped endpoints +- Fixed inconsistent color for "Remote Control active" status indicator +- Fixed Voice waveform cursor covering the first suffix letter when dictating mid-input +- Fixed Voice input showing all 5 spaces during warmup instead of capping at ~2 (aligning with the "keep holding…" hint) +- Improved spinner performance by isolating the 50ms animation loop from the surrounding shell, reducing render and CPU overhead during turns +- Improved UI rendering performance in native binaries with React Compiler +- Improved `--worktree` startup by eliminating a git subprocess on the startup path +- Improved macOS startup by eliminating redundant settings-file reloads when managed settings resolve +- Improved macOS startup for Claude.ai enterprise/team users by skipping an unnecessary keychain lookup +- Improved MCP `-p` startup by pipelining claude.ai config fetch with local connections and using a concurrency pool instead of sequential batching +- Improved voice startup by removing imperceptible warmup pulse animations that were causing re-render stutter +- Improved MCP binary content handling: tools returning PDFs, Office documents, or audio now save decoded bytes to disk with the correct file extension instead of dumping raw base64 into the conversation context. WebFetch also saves binary responses alongside its summary. +- Improved memory usage in long sessions by stabilizing `onSubmit` across message updates +- Improved LSP tool rendering and memory context building to no longer read entire files +- Improved session upload and memory sync to avoid reading large files into memory before size/binary checks +- Improved file operation performance by avoiding reading file contents for existence checks (6 sites) +- Improved documentation to clarify that `--append-system-prompt-file` and `--system-prompt-file` work in interactive mode (the docs previously said print mode only) +- Reduced baseline memory by ~16MB by deferring Yoga WASM preloading +- Reduced memory footprint for SDK and CCR sessions using stream-json output +- Reduced memory usage when resuming large sessions (including compacted history) +- Reduced token usage on multi-agent tasks with more concise subagent final reports +- Changed Sonnet 4.5 users on Pro/Max/Team Premium to be automatically migrated to Sonnet 4.6 +- Changed the `/resume` picker to show your most recent prompt instead of the first one. This also resolves some titles appearing as `(session)`. +- Changed claude.ai MCP connector failures to show a notification instead of silently disappearing from the tool list +- Changed example command suggestions to be generated deterministically instead of calling Haiku +- Changed resuming after compaction to no longer produce a preamble recap before continuing +- [SDK] Changed task creation to no longer require the `activeForm` field — the spinner falls back to the task subject +- [VSCode] Added compaction display as a collapsible "Compacted chat" card with the summary inside +- [VSCode] The permission mode picker now respects `permissions.disableBypassPermissionsMode` from your effective Claude Code settings (including managed/policy settings) — when set to `disable`, bypass permissions mode is hidden from the picker +- [VSCode] Fixed RTL text (Arabic, Hebrew, Persian) rendering reversed in the chat panel (regression in v2.1.63) + ## 2.1.68 - Opus 4.6 now defaults to medium effort for Max and Team subscribers. Medium effort works well for most tasks — it's the sweet spot between speed and thoroughness. You can change this anytime with `/model` From da80366c484698e6370ad9e8abf121f33f8f79e0 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 6 Mar 2026 01:19:18 +0000 Subject: [PATCH 063/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f9232b04f6..6049d5036e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,37 @@ # Changelog +## 2.1.70 + +- Fixed API 400 errors when using `ANTHROPIC_BASE_URL` with a third-party gateway — tool search now correctly detects proxy endpoints and disables `tool_reference` blocks +- Fixed `API Error: 400 This model does not support the effort parameter` when using custom Bedrock inference profiles or other model identifiers not matching standard Claude naming patterns +- Fixed empty model responses immediately after `ToolSearch` — the server renders tool schemas with system-prompt-style tags at the prompt tail, which could confuse models into stopping early +- Fixed prompt-cache bust when an MCP server with `instructions` connects after the first turn +- Fixed Enter inserting a newline instead of submitting when typing over a slow SSH connection +- Fixed clipboard corrupting non-ASCII text (CJK, emoji) on Windows/WSL by using PowerShell `Set-Clipboard` +- Fixed extra VS Code windows opening at startup on Windows when running from the VS Code integrated terminal +- Fixed voice mode failing on Windows native binary with "native audio module could not be loaded" +- Fixed push-to-talk not activating on session start when `voiceEnabled: true` was set in settings +- Fixed markdown links containing `#NNN` references incorrectly pointing to the current repository instead of the linked URL +- Fixed repeated "Model updated to Opus 4.6" notification when a project's `.claude/settings.json` has a legacy Opus model string pinned +- Fixed plugins showing as inaccurately installed in `/plugin` +- Fixed plugins showing "not found in marketplace" errors on fresh startup by auto-refreshing after marketplace installation +- Fixed `/security-review` command failing with `unknown option merge-base` on older git versions +- Fixed `/color` command having no way to reset back to the default color — `/color default`, `/color gray`, `/color reset`, and `/color none` now restore the default +- Fixed a performance regression in the `AskUserQuestion` preview dialog that re-ran markdown rendering on every keystroke in the notes input +- Fixed feature flags read during early startup never refreshing their disk cache, causing stale values to persist across sessions +- Fixed `permissions.defaultMode` settings values other than `acceptEdits` or `plan` being applied in Claude Code Remote environments — they are now ignored +- Fixed skill listing being re-injected on every `--resume` (~600 tokens saved per resume) +- Fixed teleport marker not rendering in VS Code teleported sessions +- Improved error message when microphone captures silence to distinguish from "no speech detected" +- Improved compaction to preserve images in the summarizer request, allowing prompt cache reuse for faster and cheaper compaction +- Improved `/rename` to work while Claude is processing, instead of being silently queued +- Reduced prompt input re-renders during turns by ~74% +- Reduced startup memory by ~426KB for users without custom CA certificates +- Reduced Remote Control `/poll` rate to once per 10 minutes while connected (was 1–2s), cutting server load ~300×. Reconnection is unaffected — transport loss immediately wakes fast polling. +- [VSCode] Added spark icon in VS Code activity bar that lists all Claude Code sessions, with sessions opening as full editors +- [VSCode] Added full markdown document view for plans in VS Code, with support for adding comments to provide feedback +- [VSCode] Added native MCP server management dialog — use `/mcp` in the chat panel to enable/disable servers, reconnect, and manage OAuth authentication without switching to the terminal + ## 2.1.69 - Added the `/claude-api` skill for building applications with the Claude API and Anthropic SDK From 53a5f3ee0703c2ab1b6d1dd18d8ab65187f9b8ad Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sat, 7 Mar 2026 00:11:59 +0000 Subject: [PATCH 064/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6049d5036e..8ab2cf9318 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,36 @@ # Changelog +## 2.1.71 + +- Added `/loop` command to run a prompt or slash command on a recurring interval (e.g. `/loop 5m check the deploy`) +- Added cron scheduling tools for recurring prompts within a session +- Added `voice:pushToTalk` keybinding to make the voice activation key rebindable in `keybindings.json` (default: space) — modifier+letter combos like `meta+k` have zero typing interference +- Added `fmt`, `comm`, `cmp`, `numfmt`, `expr`, `test`, `printf`, `getconf`, `seq`, `tsort`, and `pr` to the bash auto-approval allowlist +- Fixed stdin freeze in long-running sessions where keystrokes stop being processed but the process stays alive +- Fixed a 5–8 second startup freeze for users with voice mode enabled, caused by CoreAudio initialization blocking the main thread after system wake +- Fixed startup UI freeze when many claude.ai proxy connectors refresh an expired OAuth token simultaneously +- Fixed forked conversations (`/fork`) sharing the same plan file, which caused plan edits in one fork to overwrite the other +- Fixed the Read tool putting oversized images into context when image processing failed, breaking subsequent turns in long image-heavy sessions +- Fixed false-positive permission prompts for compound bash commands containing heredoc commit messages +- Fixed plugin installations being lost when running multiple Claude Code instances +- Fixed claude.ai connectors failing to reconnect after OAuth token refresh +- Fixed claude.ai MCP connector startup notifications appearing for every org-configured connector instead of only previously connected ones +- Fixed background agent completion notifications missing the output file path, which made it difficult for parent agents to recover agent results after context compaction +- Fixed duplicate output in Bash tool error messages when commands exit with non-zero status +- Fixed Chrome extension auto-detection getting permanently stuck on "not installed" after running on a machine without local Chrome +- Fixed `/plugin marketplace update` failing with merge conflicts when the marketplace is pinned to a branch/tag ref +- Fixed `/plugin marketplace add owner/repo@ref` incorrectly parsing `@` — previously only `#` worked as a ref separator, causing undiagnosable errors with `strictKnownMarketplaces` +- Fixed duplicate entries in `/permissions` Workspace tab when the same directory is added with and without a trailing slash +- Fixed `--print` hanging forever when team agents are configured — the exit loop no longer waits on long-lived `in_process_teammate` tasks +- Fixed "❯ Tool loaded." appearing in the REPL after every `ToolSearch` call +- Fixed prompting for `cd && git ...` on Windows when the model uses a mingw-style path +- Improved startup time by deferring native image processor loading to first use +- Improved bridge session reconnection to complete within seconds after laptop wake from sleep, instead of waiting up to 10 minutes +- Improved `/plugin uninstall` to disable project-scoped plugins in `.claude/settings.local.json` instead of modifying `.claude/settings.json`, so changes don't affect teammates +- Improved plugin-provided MCP server deduplication — servers that duplicate a manually-configured server (same command/URL) are now skipped, preventing duplicate connections and tool sets. Suppressions are shown in the `/plugin` menu. +- Updated `/debug` to toggle debug logging on mid-session, since debug logs are no longer written by default +- Removed startup notification noise for unauthenticated org-registered claude.ai connectors + ## 2.1.70 - Fixed API 400 errors when using `ANTHROPIC_BASE_URL` with a third-party gateway — tool search now correctly detects proxy endpoints and disables `tool_reference` blocks From 00553dec20a7b3ad58252a22de7cf1b45ee20330 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 10 Mar 2026 00:42:15 +0000 Subject: [PATCH 065/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ab2cf9318..827ff80c1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,62 @@ # Changelog +## 2.1.72 + +- Changed tool search to bypass the third-party proxy gate when the environment variable is set (replaces `CLAUDE_CODE_PROXY_SUPPORTS_TOOL_REFERENCE`, now removed) +- Added `w` key in `/copy` to write the focused selection directly to a file, bypassing the clipboard (useful over SSH) +- Added optional description argument to `/plan` (e.g., `/plan fix the auth bug`) that enters plan mode and immediately starts +- Added `claude plugins` as an alias for `claude plugin` +- Added `ExitWorktree` tool to leave an `EnterWorktree` session +- Added `CLAUDE_CODE_DISABLE_CRON` environment variable to immediately stop scheduled cron jobs mid-session +- Added `lsof`, `pgrep`, `tput`, `ss`, `fd`, and `fdfind` to the bash auto-approval allowlist, reducing permission prompts for common read-only operations +- Added support for marketplace git URLs without `.git` suffix (Azure DevOps, AWS CodeCommit) +- Restored the `model` parameter on the Agent tool for per-invocation model overrides +- Simplified effort levels to low/medium/high (removed max) with new symbols (○ ◐ ●) and a brief notification instead of a persistent icon. Use `/effort auto` to reset to default +- Improved `/config` — Escape now cancels changes, Enter saves and closes, Space toggles settings +- Improved up-arrow history to show current session's messages first when running multiple concurrent sessions +- Improved voice input transcription accuracy for repo names and common dev terms (regex, OAuth, JSON) +- Improved marketplace clone failure messages to show diagnostic info even when git produces no stderr +- Improved `claude plugin validate` to explain that marketplace.json source paths are relative to the repo root when rejecting `../` paths +- Improved bash command parsing by switching to a native module — faster initialization and no memory leak +- Reduced false-positive bash permission prompts — tree-sitter parsing now handles `find -exec`, variable assignments, command substitutions, and many other patterns that previously triggered unnecessary prompts. Also fixed tree-sitter not loading in npm-installed versions +- Reduced bundle size by ~510 KB +- Changed CLAUDE.md HTML comments (``) to be hidden from Claude when auto-injected. Comments remain visible when read with the Read tool +- Fixed slow exits when background tasks or hooks were slow to respond +- Fixed agent task progress stuck on "Initializing…" +- Fixed skill hooks firing twice per event when a hooks-enabled skill is invoked by the model +- Fixed several voice mode issues: occasional input lag, false "No speech detected" errors after releasing push-to-talk, and stale transcripts re-filling the prompt after submission +- Fixed `--continue` not resuming from the most recent point after `--compact` +- Fixed bash security parsing edge cases +- Fixed several plugin issues: installation failing on Windows with `EEXIST` error in OneDrive folders, marketplace blocking user-scope installs when a project-scope install exists, `CLAUDE_CODE_PLUGIN_CACHE_DIR` creating literal `~` directories, and `plugin.json` with marketplace-only fields failing to load +- Fixed feedback survey appearing too frequently in long sessions +- Fixed `--effort` CLI flag being reset by unrelated settings writes on startup +- Fixed backgrounded Ctrl+B queries losing their transcript or corrupting the new conversation after `/clear` +- Fixed `/clear` killing background agent/bash tasks — only foreground tasks are now cleared +- Fixed worktree isolation issues: Task tool resume not restoring cwd, and background task notifications missing `worktreePath` and `worktreeBranch` +- Fixed `/model` not displaying results when run while Claude is working +- Fixed digit keys selecting menu options instead of typing in plan mode permission prompt's text input +- Fixed sandbox permission issues: certain file write operations incorrectly allowed without prompting, and output redirections to allowlisted directories (like `/tmp/claude/`) prompting unnecessarily +- Improved CPU utilization in long sessions +- Fixed prompt cache invalidation in SDK `query()` calls, reducing input token costs up to 12x +- Fixed Escape key becoming unresponsive after cancelling a query +- Fixed double Ctrl+C not exiting when background agents or tasks are running +- Fixed team agents to inherit the leader's model +- Fixed "Always Allow" saving permission rules that never match again +- Fixed several hooks issues: `transcript_path` pointing to the wrong directory for resumed/forked sessions, agent `prompt` being silently deleted from settings.json on every settings write, PostToolUse block reason displaying twice, async hooks not receiving stdin with bash `read -r`, and validation error message showing an example that fails validation +- Fixed session crashes in Desktop/SDK when Read returned files containing U+2028/U+2029 characters +- Fixed terminal title being cleared on exit even when `CLAUDE_CODE_DISABLE_TERMINAL_TITLE` was set +- Fixed several permission rule matching issues: wildcard rules not matching commands with heredocs, embedded newlines, or no arguments; `sandbox.excludedCommands` failing with env var prefixes; "always allow" suggesting overly broad prefixes for nested CLI tools; and deny rules not applying to all command forms +- Fixed oversized and truncated images from Bash data-URL output +- Fixed a crash when resuming sessions that contained Bedrock API errors +- Fixed intermittent "expected boolean, received string" validation errors on Edit, Bash, and Grep tool inputs +- Fixed multi-line session titles when forking from a conversation whose first message contained newlines +- Fixed queued messages not showing attached images, and images being lost when pressing ↑ to edit a queued message +- Fixed parallel tool calls where a failed Read/WebFetch/Glob would cancel its siblings — only Bash errors now cascade +- VSCode: Fixed scroll speed in integrated terminals not matching native terminals +- VSCode: Fixed Shift+Enter submitting input instead of inserting a newline for users with older keybindings +- VSCode: Added effort level indicator on the input border +- VSCode: Added `vscode://anthropic.claude-code/open` URI handler to open a new Claude Code tab programmatically, with optional `prompt` and `session` query parameters + ## 2.1.71 - Added `/loop` command to run a prompt or slash command on a recurring interval (e.g. `/loop 5m check the deploy`) From 540b61b9fd8b4f823dd8ebfb8075eebf1fffdaf5 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 10 Mar 2026 01:04:32 +0000 Subject: [PATCH 066/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 827ff80c1f..f28558bbdd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,7 +18,6 @@ - Improved marketplace clone failure messages to show diagnostic info even when git produces no stderr - Improved `claude plugin validate` to explain that marketplace.json source paths are relative to the repo root when rejecting `../` paths - Improved bash command parsing by switching to a native module — faster initialization and no memory leak -- Reduced false-positive bash permission prompts — tree-sitter parsing now handles `find -exec`, variable assignments, command substitutions, and many other patterns that previously triggered unnecessary prompts. Also fixed tree-sitter not loading in npm-installed versions - Reduced bundle size by ~510 KB - Changed CLAUDE.md HTML comments (``) to be hidden from Claude when auto-injected. Comments remain visible when read with the Read tool - Fixed slow exits when background tasks or hooks were slow to respond From f6dbf44cd5f5a90f8fd2608c13f3d7bcf15bfe6f Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 10 Mar 2026 01:16:00 +0000 Subject: [PATCH 067/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f28558bbdd..9030b8631c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,21 +2,17 @@ ## 2.1.72 -- Changed tool search to bypass the third-party proxy gate when the environment variable is set (replaces `CLAUDE_CODE_PROXY_SUPPORTS_TOOL_REFERENCE`, now removed) +- Fixed tool search to activate even with `ANTHROPIC_BASE_URL` as long as `ENABLE_TOOL_SEARCH` is set. - Added `w` key in `/copy` to write the focused selection directly to a file, bypassing the clipboard (useful over SSH) - Added optional description argument to `/plan` (e.g., `/plan fix the auth bug`) that enters plan mode and immediately starts -- Added `claude plugins` as an alias for `claude plugin` - Added `ExitWorktree` tool to leave an `EnterWorktree` session - Added `CLAUDE_CODE_DISABLE_CRON` environment variable to immediately stop scheduled cron jobs mid-session - Added `lsof`, `pgrep`, `tput`, `ss`, `fd`, and `fdfind` to the bash auto-approval allowlist, reducing permission prompts for common read-only operations -- Added support for marketplace git URLs without `.git` suffix (Azure DevOps, AWS CodeCommit) - Restored the `model` parameter on the Agent tool for per-invocation model overrides - Simplified effort levels to low/medium/high (removed max) with new symbols (○ ◐ ●) and a brief notification instead of a persistent icon. Use `/effort auto` to reset to default - Improved `/config` — Escape now cancels changes, Enter saves and closes, Space toggles settings - Improved up-arrow history to show current session's messages first when running multiple concurrent sessions - Improved voice input transcription accuracy for repo names and common dev terms (regex, OAuth, JSON) -- Improved marketplace clone failure messages to show diagnostic info even when git produces no stderr -- Improved `claude plugin validate` to explain that marketplace.json source paths are relative to the repo root when rejecting `../` paths - Improved bash command parsing by switching to a native module — faster initialization and no memory leak - Reduced bundle size by ~510 KB - Changed CLAUDE.md HTML comments (``) to be hidden from Claude when auto-injected. Comments remain visible when read with the Read tool @@ -26,6 +22,8 @@ - Fixed several voice mode issues: occasional input lag, false "No speech detected" errors after releasing push-to-talk, and stale transcripts re-filling the prompt after submission - Fixed `--continue` not resuming from the most recent point after `--compact` - Fixed bash security parsing edge cases +- Added support for marketplace git URLs without `.git` suffix (Azure DevOps, AWS CodeCommit) +- Improved marketplace clone failure messages to show diagnostic info even when git produces no stderr - Fixed several plugin issues: installation failing on Windows with `EEXIST` error in OneDrive folders, marketplace blocking user-scope installs when a project-scope install exists, `CLAUDE_CODE_PLUGIN_CACHE_DIR` creating literal `~` directories, and `plugin.json` with marketplace-only fields failing to load - Fixed feedback survey appearing too frequently in long sessions - Fixed `--effort` CLI flag being reset by unrelated settings writes on startup From 45b54301267d60b8c2b482ab80d2c0b36443a5f1 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 11 Mar 2026 18:25:53 +0000 Subject: [PATCH 068/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9030b8631c..f53466bdb9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,34 @@ # Changelog +## 2.1.73 + +- Added `modelOverrides` setting to map model picker entries to custom provider model IDs (e.g. Bedrock inference profile ARNs) +- Added actionable guidance when OAuth login or connectivity checks fail due to SSL certificate errors (corporate proxies, `NODE_EXTRA_CA_CERTS`) +- Fixed freezes and 100% CPU loops triggered by permission prompts for complex bash commands +- Fixed a deadlock that could freeze Claude Code when many skill files changed at once (e.g. during `git pull` in a repo with a large `.claude/skills/` directory) +- Fixed Bash tool output being lost when running multiple Claude Code sessions in the same project directory +- Fixed subagents with `model: opus`/`sonnet`/`haiku` being silently downgraded to older model versions on Bedrock, Vertex, and Microsoft Foundry +- Fixed background bash processes spawned by subagents not being cleaned up when the agent exits +- Fixed `/resume` showing the current session in the picker +- Fixed `/ide` crashing with `onInstall is not defined` when auto-installing the extension +- Fixed `/loop` not being available on Bedrock/Vertex/Foundry and when telemetry was disabled +- Fixed SessionStart hooks firing twice when resuming a session via `--resume` or `--continue` +- Fixed JSON-output hooks injecting no-op system-reminder messages into the model's context on every turn +- Fixed voice mode session corruption when a slow connection overlaps a new recording +- Fixed Linux sandbox failing to start with "ripgrep (rg) not found" on native builds +- Fixed Linux native modules not loading on Amazon Linux 2 and other glibc 2.26 systems +- Fixed "media_type: Field required" API error when receiving images via Remote Control +- Fixed `/heapdump` failing on Windows with `EEXIST` error when the Desktop folder already exists +- Improved Up arrow after interrupting Claude — now restores the interrupted prompt and rewinds the conversation in one step +- Improved IDE detection speed at startup +- Improved clipboard image pasting performance on macOS +- Improved `/effort` to work while Claude is responding, matching `/model` behavior +- Improved voice mode to automatically retry transient connection failures during rapid push-to-talk re-press +- Improved the Remote Control spawn mode selection prompt with better context +- Changed default Opus model on Bedrock, Vertex, and Microsoft Foundry to Opus 4.6 (was Opus 4.1) +- Deprecated `/output-style` command — use `/config` instead. Output style is now fixed at session start for better prompt caching +- VSCode: Fixed HTTP 400 errors for users behind proxies or on Bedrock/Vertex with Claude 4.5 models + ## 2.1.72 - Fixed tool search to activate even with `ANTHROPIC_BASE_URL` as long as `ENABLE_TOOL_SEARCH` is set. From 6f049b620f6066c5246b922dc7360371fe33c826 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 12 Mar 2026 00:33:33 +0000 Subject: [PATCH 069/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f53466bdb9..f230235c65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,25 @@ # Changelog +## 2.1.74 + +- Added actionable suggestions to `/context` command — identifies context-heavy tools, memory bloat, and capacity warnings with specific optimization tips +- Added `autoMemoryDirectory` setting to configure a custom directory for auto-memory storage +- Fixed memory leak where streaming API response buffers were not released when the generator was terminated early, causing unbounded RSS growth on the Node.js/npm code path +- Fixed managed policy `ask` rules being bypassed by user `allow` rules or skill `allowed-tools` +- Fixed full model IDs (e.g., `claude-opus-4-5`) being silently ignored in agent frontmatter `model:` field and `--agents` JSON config — agents now accept the same model values as `--model` +- Fixed MCP OAuth authentication hanging when the callback port is already in use +- Fixed MCP OAuth refresh never prompting for re-auth after the refresh token expires, for OAuth servers that return errors with HTTP 200 (e.g. Slack) +- Fixed voice mode silently failing on the macOS native binary for users whose terminal had never been granted microphone permission — the binary now includes the `audio-input` entitlement so macOS prompts correctly +- Fixed `SessionEnd` hooks being killed after 1.5 s on exit regardless of `hook.timeout` — now configurable via `CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS` +- Fixed `/plugin install` failing inside the REPL for marketplace plugins with local sources +- Fixed marketplace update not syncing git submodules — plugin sources in submodules no longer break after update +- Fixed unknown slash commands with arguments silently dropping input — now shows your input as a warning +- Fixed Hebrew, Arabic, and other RTL text not rendering correctly in Windows Terminal, conhost, and VS Code integrated terminal +- Fixed LSP servers not working on Windows due to malformed file URIs +- Changed `--plugin-dir` so local dev copies now override installed marketplace plugins with the same name (unless that plugin is force-enabled by managed settings) +- [VSCode] Fixed delete button not working for Untitled sessions +- [VSCode] Improved scroll wheel responsiveness in the integrated terminal with terminal-aware acceleration + ## 2.1.73 - Added `modelOverrides` setting to map model picker entries to custom provider model IDs (e.g. Bedrock inference profile ARNs) From db8834ba1d72e9a26fba30ac85f3bc4316bb0689 Mon Sep 17 00:00:00 2001 From: Kashyap Murali Date: Wed, 11 Mar 2026 22:16:05 -0700 Subject: [PATCH 070/152] feat(code-review): pass confirmed=true when posting inline comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The inline-comment MCP tool now requires confirmed=true to post (otherwise calls are buffered). This structurally prevents subagent test/probe comments from reaching customer PRs — subagents that inherit the tool and probe it without confirmed=true see their calls harmlessly buffered. Backward compatible: against older versions of claude-code-action that don't know the param, the extra field is ignored and the comment posts as before. --- plugins/code-review/commands/code-review.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/code-review/commands/code-review.md b/plugins/code-review/commands/code-review.md index 2c663cffdf..0b27765f17 100644 --- a/plugins/code-review/commands/code-review.md +++ b/plugins/code-review/commands/code-review.md @@ -68,7 +68,7 @@ Note: Still review Claude generated PR's. 8. Create a list of all comments that you plan on leaving. This is only for you to make sure you are comfortable with the comments. Do not post this list anywhere. -9. Post inline comments for each issue using `mcp__github_inline_comment__create_inline_comment`. For each comment: +9. Post inline comments for each issue using `mcp__github_inline_comment__create_inline_comment` with `confirmed: true`. For each comment: - Provide a brief description of the issue - For small, self-contained fixes, include a committable suggestion block - For larger fixes (6+ lines, structural changes, or changes spanning multiple locations), describe the issue and suggested fix without a suggestion block From 48b1c6c0ba0b0644c97d2014d68f0c94ef157904 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 13 Mar 2026 17:16:17 +0000 Subject: [PATCH 071/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f230235c65..d39b17950d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## 2.1.75 + +- Added 1M context window for Opus 4.6 by default for Max, Team, and Enterprise plans (previously required extra usage) +- Added `/color` command for all users to set a prompt-bar color for your session +- Added session name display on the prompt bar when using `/rename` +- Added last-modified timestamps to memory files, helping Claude reason about which memories are fresh vs. stale +- Added hook source display (settings/plugin/skill) in permission prompts when a hook requires confirmation +- Fixed voice mode not activating correctly on fresh installs without toggling `/voice` twice +- Fixed the Claude Code header not updating the displayed model name after switching models with `/model` or Option+P +- Fixed session crash when an attachment message computation returns undefined values +- Fixed Bash tool mangling `!` in piped commands (e.g., `jq 'select(.x != .y)'` now works correctly) +- Fixed managed-disabled plugins showing up in the `/plugin` Installed tab — plugins force-disabled by your organization are now hidden +- Fixed token estimation over-counting for thinking and `tool_use` blocks, preventing premature context compaction +- Fixed corrupted marketplace config path handling +- Fixed `/resume` losing session names after resuming a forked or continued session +- Fixed Esc not closing the `/status` dialog after visiting the Config tab +- Fixed input handling when accepting or rejecting a plan +- Fixed footer hint in agent teams showing "↓ to expand" instead of the correct "shift + ↓ to expand" +- Improved startup performance on macOS non-MDM machines by skipping unnecessary subprocess spawns +- Suppressed async hook completion messages by default (visible with `--verbose` or transcript mode) +- Breaking change: Removed deprecated Windows managed settings fallback at `C:\ProgramData\ClaudeCode\managed-settings.json` — use `C:\Program Files\ClaudeCode\managed-settings.json` + ## 2.1.74 - Added actionable suggestions to `/context` command — identifies context-heavy tools, memory bloat, and capacity warnings with specific optimization tips From 420a1884671fe09addc881f9a62624dae952d21c Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sat, 14 Mar 2026 01:23:05 +0000 Subject: [PATCH 072/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d39b17950d..82d5e221fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,43 @@ # Changelog +## 2.1.76 + +- Added MCP elicitation support — MCP servers can now request structured input mid-task via an interactive dialog (form fields or browser URL) +- Added new `Elicitation` and `ElicitationResult` hooks to intercept and override responses before they're sent back +- Added `-n` / `--name ` CLI flag to set a display name for the session at startup +- Added `worktree.sparsePaths` setting for `claude --worktree` in large monorepos to check out only the directories you need via git sparse-checkout +- Added `PostCompact` hook that fires after compaction completes +- Added `/effort` slash command to set model effort level +- Added session quality survey — enterprise admins can configure the sample rate via the `feedbackSurveyRate` setting +- Fixed deferred tools (loaded via `ToolSearch`) losing their input schemas after conversation compaction, causing array and number parameters to be rejected with type errors +- Fixed slash commands showing "Unknown skill" +- Fixed plan mode asking for re-approval after the plan was already accepted +- Fixed voice mode swallowing keypresses while a permission dialog or plan editor was open +- Fixed `/voice` not working on Windows when installed via npm +- Fixed spurious "Context limit reached" when invoking a skill with `model:` frontmatter on a 1M-context session +- Fixed "adaptive thinking is not supported on this model" error when using non-standard model strings +- Fixed `Bash(cmd:*)` permission rules not matching when a quoted argument contains `#` +- Fixed "don't ask again" in the Bash permission dialog showing the full raw command for pipes and compound commands +- Fixed auto-compaction retrying indefinitely after consecutive failures — a circuit breaker now stops after 3 attempts +- Fixed MCP reconnect spinner persisting after successful reconnection +- Fixed LSP plugins not registering servers when the LSP Manager initialized before marketplaces were reconciled +- Fixed clipboard copying in tmux over SSH — now attempts both direct terminal write and tmux clipboard integration +- Fixed `/export` showing only the filename instead of the full file path in the success message +- Fixed transcript not auto-scrolling to new messages after selecting text +- Fixed Escape key not working to exit the login method selection screen +- Fixed several Remote Control issues: sessions silently dying when the server reaps an idle environment, rapid messages being queued one-at-a-time instead of batched, and stale work items causing redelivery after JWT refresh +- Fixed bridge sessions failing to recover after extended WebSocket disconnects +- Fixed slash commands not found when typing the exact name of a soft-hidden command +- Improved `--worktree` startup performance by reading git refs directly and skipping redundant `git fetch` when the remote branch is already available locally +- Improved background agent behavior — killing a background agent now preserves its partial results in the conversation context +- Improved model fallback notifications — now always visible instead of hidden behind verbose mode, with human-friendly model names +- Improved blockquote readability on dark terminal themes — text is now italic with a left bar instead of dim +- Improved stale worktree cleanup — worktrees left behind after an interrupted parallel run are now automatically cleaned up +- Improved Remote Control session titles — now derived from your first prompt instead of showing "Interactive session" +- Improved `/voice` to show your dictation language on enable and warn when your `language` setting isn't supported for voice input +- Updated `--plugin-dir` to only accept one path to support subcommands — use repeated `--plugin-dir` for multiple directories +- [VSCode] Fixed gitignore patterns containing commas silently excluding entire filetypes from the @-mention file picker + ## 2.1.75 - Added 1M context window for Opus 4.6 by default for Max, Team, and Enterprise plans (previously required extra usage) From 079dc856c6c990de5be28e288939293905c154c1 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 17 Mar 2026 00:27:26 +0000 Subject: [PATCH 073/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82d5e221fd..ed0458d27a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,52 @@ # Changelog +## 2.1.77 + +- Increased default maximum output token limits for Claude Opus 4.6 to 64k tokens, and the upper bound for Opus 4.6 and Sonnet 4.6 models to 128k tokens +- Added `allowRead` sandbox filesystem setting to re-allow read access within `denyRead` regions +- `/copy` now accepts an optional index: `/copy N` copies the Nth-latest assistant response +- Fixed "Always Allow" on compound bash commands (e.g. `cd src && npm test`) saving a single rule for the full string instead of per-subcommand, leading to dead rules and repeated permission prompts +- Fixed auto-updater starting overlapping binary downloads when the slash-command overlay repeatedly opened and closed, accumulating tens of gigabytes of memory +- Fixed `--resume` silently truncating recent conversation history due to a race between memory-extraction writes and the main transcript +- Fixed PreToolUse hooks returning `"allow"` bypassing `deny` permission rules, including enterprise managed settings +- Fixed Write tool silently converting line endings when overwriting CRLF files or creating files in CRLF directories +- Fixed memory growth in long-running sessions from progress messages surviving compaction +- Fixed cost and token usage not being tracked when the API falls back to non-streaming mode +- Fixed `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS` not stripping beta tool-schema fields, causing proxy gateways to reject requests +- Fixed Bash tool reporting errors for successful commands when the system temp directory path contains spaces +- Fixed paste being lost when typing immediately after pasting +- Fixed Ctrl+D in `/feedback` text input deleting forward instead of the second press exiting the session +- Fixed API error when dragging a 0-byte image file into the prompt +- Fixed Claude Desktop sessions incorrectly using the terminal CLI's configured API key instead of OAuth +- Fixed `git-subdir` plugins at different subdirectories of the same monorepo commit colliding in the plugin cache +- Fixed ordered list numbers not rendering in terminal UI +- Fixed a race condition where stale-worktree cleanup could delete an agent worktree just resumed from a previous crash +- Fixed input deadlock when opening `/mcp` or similar dialogs while the agent is running +- Fixed Backspace and Delete keys not working in vim NORMAL mode +- Fixed status line not updating when vim mode is toggled on or off +- Fixed hyperlinks opening twice on Cmd+click in VS Code, Cursor, and other xterm.js-based terminals +- Fixed background colors rendering as terminal-default inside tmux with default configuration +- Fixed iTerm2 session crash when selecting text inside tmux over SSH +- Fixed clipboard copy silently failing in tmux sessions; copy toast now indicates whether to paste with `⌘V` or tmux `prefix+]` +- Fixed `←`/`→` accidentally switching tabs in settings, permissions, and sandbox dialogs while navigating lists +- Fixed IDE integration not auto-connecting when Claude Code is launched inside tmux or screen +- Fixed CJK characters visually bleeding into adjacent UI elements when clipped at the right edge +- Fixed teammate panes not closing when the leader exits +- Fixed iTerm2 auto mode not detecting iTerm2 for native split-pane teammates +- Faster startup on macOS (~60ms) by reading keychain credentials in parallel with module loading +- Faster `--resume` on fork-heavy and very large sessions — up to 45% faster loading and ~100-150MB less peak memory +- Improved Esc to abort in-flight non-streaming API requests +- Improved `claude plugin validate` to check skill, agent, and command frontmatter plus `hooks/hooks.json`, catching YAML parse errors and schema violations +- Background bash tasks are now killed if output exceeds 5GB, preventing runaway processes from filling disk +- Sessions are now auto-named from plan content when you accept a plan +- Improved headless mode plugin installation to compose correctly with `CLAUDE_CODE_PLUGIN_SEED_DIR` +- Show a notice when `apiKeyHelper` takes longer than 10s, preventing it from blocking the main loop +- The Agent tool no longer accepts a `resume` parameter — use `SendMessage({to: agentId})` to continue a previously spawned agent +- `SendMessage` now auto-resumes stopped agents in the background instead of returning an error +- Renamed `/fork` to `/branch` (`/fork` still works as an alias) +- [VSCode] Improved plan preview tab titles to use the plan's heading instead of "Claude's Plan" +- [VSCode] When option+click doesn't trigger native selection on macOS, the footer now points to the `macOptionClickForcesSelection` setting + ## 2.1.76 - Added MCP elicitation support — MCP servers can now request structured input mid-task via an interactive dialog (form fields or browser URL) From a3d9426e3e183d1fdc560fcc8a69e9d854f040c9 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 17 Mar 2026 23:42:05 +0000 Subject: [PATCH 074/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed0458d27a..9f68539982 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,34 @@ # Changelog +## 2.1.78 + +- Added `StopFailure` hook event that fires when the turn ends due to an API error (rate limit, auth failure, etc.) +- Added `${CLAUDE_PLUGIN_DATA}` variable for plugin persistent state that survives plugin updates; `/plugin uninstall` prompts before deleting it +- Added `effort`, `maxTurns`, and `disallowedTools` frontmatter support for plugin-shipped agents +- Terminal notifications (iTerm2/Kitty/Ghostty popups, progress bar) now reach the outer terminal when running inside tmux with `set -g allow-passthrough on` +- Response text now streams line-by-line as it's generated +- Fixed `git log HEAD` failing with "ambiguous argument" inside sandboxed Bash on Linux, and stub files polluting `git status` in the working directory +- Fixed `cc log` and `--resume` silently truncating conversation history on large sessions (>5 MB) that used subagents +- Fixed infinite loop when API errors triggered stop hooks that re-fed blocking errors to the model +- Fixed `deny: ["mcp__servername"]` permission rules not removing MCP server tools before sending to the model, allowing it to see and attempt blocked tools +- Fixed `sandbox.filesystem.allowWrite` not working with absolute paths (previously required `//` prefix) +- Fixed `/sandbox` Dependencies tab showing Linux prerequisites on macOS instead of macOS-specific info +- **Security:** Fixed silent sandbox disable when `sandbox.enabled: true` is set but dependencies are missing — now shows a visible startup warning +- Fixed `.git`, `.claude`, and other protected directories being writable without a prompt in `bypassPermissions` mode +- Fixed ctrl+u in normal mode scrolling instead of readline kill-line (ctrl+u/ctrl+d half-page scroll moved to transcript mode only) +- Fixed voice mode modifier-combo push-to-talk keybindings (e.g. ctrl+k) requiring a hold instead of activating immediately +- Fixed voice mode not working on WSL2 with WSLg (Windows 11); WSL1/Win10 users now get a clear error +- Fixed `--worktree` flag not loading skills and hooks from the worktree directory +- Fixed `CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS` and `includeGitInstructions` setting not suppressing the git status section in the system prompt +- Fixed Bash tool not finding Homebrew and other PATH-dependent binaries when VS Code is launched from Dock/Spotlight +- Fixed washed-out Claude orange color in VS Code/Cursor/code-server terminals that don't advertise truecolor support +- Added `ANTHROPIC_CUSTOM_MODEL_OPTION` env var to add a custom entry to the `/model` picker, with optional `_NAME` and `_DESCRIPTION` suffixed vars for display +- Fixed `ANTHROPIC_BETAS` environment variable being silently ignored when using Haiku models +- Fixed queued prompts being concatenated without a newline separator +- Improved memory usage and startup time when resuming large sessions +- [VSCode] Fixed a brief flash of the login screen when opening the sidebar while already authenticated +- [VSCode] Fixed "API Error: Rate limit reached" when selecting Opus — model dropdown no longer offers 1M context variant to subscribers whose plan tier is unknown + ## 2.1.77 - Increased default maximum output token limits for Claude Opus 4.6 to 64k tokens, and the upper bound for Opus 4.6 and Sonnet 4.6 models to 128k tokens From 5e34f198d0f617de8679b69c50c421ae973d3466 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 18 Mar 2026 22:28:45 +0000 Subject: [PATCH 075/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f68539982..28b120f72e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,26 @@ # Changelog +## 2.1.79 + +- Added `--console` flag to `claude auth login` for Anthropic Console (API billing) authentication +- Added "Show turn duration" toggle to the `/config` menu +- Fixed `claude -p` hanging when spawned as a subprocess without explicit stdin (e.g. Python `subprocess.run`) +- Fixed Ctrl+C not working in `-p` (print) mode +- Fixed `/btw` returning the main agent's output instead of answering the side question when triggered during streaming +- Fixed voice mode not activating correctly on startup when `voiceEnabled: true` is set +- Fixed left/right arrow tab navigation in `/permissions` +- Fixed `CLAUDE_CODE_DISABLE_TERMINAL_TITLE` not preventing terminal title from being set on startup +- Fixed custom status line showing nothing when workspace trust is blocking it +- Fixed enterprise users being unable to retry on rate limit (429) errors +- Fixed `SessionEnd` hooks not firing when using interactive `/resume` to switch sessions +- Improved startup memory usage by ~18MB across all scenarios +- Improved non-streaming API fallback with a 2-minute per-attempt timeout, preventing sessions from hanging indefinitely +- `CLAUDE_CODE_PLUGIN_SEED_DIR` now supports multiple seed directories separated by the platform path delimiter (`:` on Unix, `;` on Windows) +- [VSCode] Added `/remote-control` — bridge your session to claude.ai/code to continue from a browser or phone +- [VSCode] Session tabs now get AI-generated titles based on your first message +- [VSCode] Fixed the thinking pill showing "Thinking" instead of "Thought for Ns" after a response completes +- [VSCode] Fixed missing session diff button when opening sessions from the left sidebar + ## 2.1.78 - Added `StopFailure` hook event that fires when the turn ends due to an API error (rate limit, auth failure, etc.) From 16536693ecc04f50f04696e109fe2a1a5f0d09fd Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 19 Mar 2026 22:08:02 +0000 Subject: [PATCH 076/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28b120f72e..208e49fce9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,25 @@ # Changelog +## 2.1.80 + +- Added `rate_limits` field to statusline scripts for displaying Claude.ai rate limit usage (5-hour and 7-day windows with `used_percentage` and `resets_at`) +- Added `source: 'settings'` plugin marketplace source — declare plugin entries inline in settings.json +- Added CLI tool usage detection to plugin tips, in addition to file pattern matching +- Added `effort` frontmatter support for skills and slash commands to override the model effort level when invoked +- Added `--channels` (research preview) — allow MCP servers to push messages into your session +- Fixed `--resume` dropping parallel tool results — sessions with parallel tool calls now restore all tool_use/tool_result pairs instead of showing `[Tool result missing]` placeholders +- Fixed voice mode WebSocket failures caused by Cloudflare bot detection on non-browser TLS fingerprints +- Fixed 400 errors when using fine-grained tool streaming through API proxies, Bedrock, or Vertex +- Fixed `/remote-control` appearing for gateway and third-party provider deployments where it cannot function +- Fixed `/sandbox` tab switching not responding to Tab or arrow keys +- Improved responsiveness of `@` file autocomplete in large git repositories +- Improved `/effort` to show what auto currently resolves to, matching the status bar indicator +- Improved `/permissions` — Tab and arrow keys now switch tabs from within a list +- Improved background tasks panel — left arrow now closes from the list view +- Simplified plugin install tips to use a single `/plugin install` command instead of a two-step flow +- Reduced memory usage on startup in large repositories (~80 MB saved on 250k-file repos) +- Fixed managed settings (`enabledPlugins`, `permissions.defaultMode`, policy-set env vars) not being applied at startup when `remote-settings.json` was cached from a prior session + ## 2.1.79 - Added `--console` flag to `claude auth login` for Anthropic Console (API billing) authentication From 6aadfbdca2c29f498f579509a56000e4e8daaf90 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 20 Mar 2026 22:24:03 +0000 Subject: [PATCH 077/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 208e49fce9..4b18cccf65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,35 @@ # Changelog +## 2.1.81 + +- Added `--bare` flag for scripted `-p` calls — skips hooks, LSP, plugin sync, and skill directory walks; requires `ANTHROPIC_API_KEY` or an `apiKeyHelper` via `--settings` (OAuth and keychain auth disabled); auto-memory fully disabled +- Added `--channels` permission relay — channel servers that declare the permission capability can forward tool approval prompts to your phone +- Fixed multiple concurrent Claude Code sessions requiring repeated re-authentication when one session refreshes its OAuth token +- Fixed voice mode silently swallowing retry failures and showing a misleading "check your network" message instead of the actual error +- Fixed voice mode audio not recovering when the server silently drops the WebSocket connection +- Fixed `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS` not suppressing the structured-outputs beta header, causing 400 errors on proxy gateways forwarding to Vertex/Bedrock +- Fixed `--channels` bypass for Team/Enterprise orgs with no other managed settings configured +- Fixed a crash on Node.js 18 +- Fixed unnecessary permission prompts for Bash commands containing dashes in strings +- Fixed plugin hooks blocking prompt submission when the plugin directory is deleted mid-session +- Fixed a race condition where background agent task output could hang indefinitely when the task completed between polling intervals +- Resuming a session that was in a worktree now switches back to that worktree +- Fixed `/btw` not including pasted text when used during an active response +- Fixed a race where fast Cmd+Tab followed by paste could beat the clipboard copy under tmux +- Fixed terminal tab title not updating with an auto-generated session description +- Fixed invisible hook attachments inflating the message count in transcript mode +- Fixed Remote Control sessions showing a generic title instead of deriving from the first prompt +- Fixed `/rename` not syncing the title for Remote Control sessions +- Fixed Remote Control `/exit` not reliably archiving the session +- Improved MCP read/search tool calls to collapse into a single "Queried {server}" line (expand with Ctrl+O) +- Improved `!` bash mode discoverability — Claude now suggests it when you need to run an interactive command +- Improved plugin freshness — ref-tracked plugins now re-clone on every load to pick up upstream changes +- Improved Remote Control session titles to refresh after your third message +- Updated MCP OAuth to support Client ID Metadata Document (CIMD / SEP-991) for servers without Dynamic Client Registration +- Changed plan mode to hide the "clear context" option by default (restore with `"showClearContextOnPlanAccept": true`) +- Disabled line-by-line response streaming on Windows (including WSL in Windows Terminal) due to rendering issues +- [VSCode] Fixed Windows PATH inheritance for Bash tool when using Git Bash (regression in v2.1.78) + ## 2.1.80 - Added `rate_limits` field to statusline scripts for displaying Claude.ai rate limit usage (5-hour and 7-day windows with `used_percentage` and `resets_at`) From cada21c89dc76cb0355fdeee659806674abfd38c Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 25 Mar 2026 06:08:05 +0000 Subject: [PATCH 078/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b18cccf65..3ec829e7bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,67 @@ # Changelog +## 2.1.83 + +- Added `managed-settings.d/` drop-in directory alongside `managed-settings.json`, letting separate teams deploy independent policy fragments that merge alphabetically +- Added `CwdChanged` and `FileChanged` hook events for reactive environment management (e.g., direnv) +- Added `sandbox.failIfUnavailable` setting to exit with an error when sandbox is enabled but cannot start, instead of running unsandboxed +- Added `disableDeepLinkRegistration` setting to prevent `claude-cli://` protocol handler registration +- Added `CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1` to strip Anthropic and cloud provider credentials from subprocess environments (Bash tool, hooks, MCP stdio servers) +- Added transcript search — press `/` in transcript mode (`Ctrl+O`) to search, `n`/`N` to step through matches +- Added `Ctrl+X Ctrl+E` as an alias for opening the external editor (readline-native binding; `Ctrl+G` still works) +- Pasted images now insert an `[Image #N]` chip at the cursor so you can reference them positionally in your prompt +- Agents can now declare `initialPrompt` in frontmatter to auto-submit a first turn +- `chat:killAgents` and `chat:fastMode` are now rebindable via `~/.claude/keybindings.json` +- Fixed mouse tracking escape sequences leaking to shell prompt after exit +- Fixed Claude Code hanging on exit on macOS +- Fixed screen flashing blank after being idle for a few seconds +- Fixed a hang when diffing very large files with few common lines — diffs now time out after 5 seconds and fall back gracefully +- Fixed a 1–8 second UI freeze on startup when voice input was enabled, caused by eagerly loading the native audio module +- Fixed a startup regression where Claude Code would wait ~3s for claude.ai MCP config fetch before proceeding +- Fixed `--mcp-config` CLI flag bypassing `allowedMcpServers`/`deniedMcpServers` managed policy enforcement +- Fixed claude.ai MCP connectors (Slack, Gmail, etc.) not being available in single-turn `--print` mode +- Fixed `caffeinate` process not properly terminating when Claude Code exits, preventing Mac from sleeping +- Fixed bash mode not activating when tab-accepting `!`-prefixed command suggestions +- Fixed stale slash command selection showing wrong highlighted command after navigating suggestions +- Fixed `/config` menu showing both the search cursor and list selection at the same time +- Fixed background subagents becoming invisible after context compaction, which could cause duplicate agents to be spawned +- Fixed background agent tasks staying stuck in "running" state when git or API calls hang during cleanup +- Fixed `--channels` showing "Channels are not currently available" on first launch after upgrade +- Fixed uninstalled plugin hooks continuing to fire until the next session +- Fixed queued commands flickering during streaming responses +- Fixed slash commands being sent to the model as text when submitted while a message is processing +- Fixed scrollback jumping when collapsed read/search groups finish after scrolling offscreen +- Fixed scrollback jumping to top when the model starts or stops thinking +- Fixed SDK session history loss on resume caused by hook progress/attachment messages forking the parentUuid chain +- Fixed copy-on-select not firing when you release the mouse outside the terminal window +- Fixed ghost characters appearing in height-constrained lists when items overflow +- Fixed `Ctrl+B` interfering with readline backward-char at an idle prompt — it now only fires when a foreground task can be backgrounded +- Fixed tool result files never being cleaned up, ignoring the `cleanupPeriodDays` setting +- Fixed space key being swallowed for up to 3 seconds after releasing voice hold-to-talk +- Fixed ALSA library errors corrupting the terminal UI when using voice mode on Linux without audio hardware (Docker, headless, WSL1) +- Fixed voice mode SoX detection on Termux/Android where spawning `which` is kernel-restricted +- Fixed Remote Control sessions showing as Idle in the web session list while actively running +- Fixed footer navigation selecting an invisible Remote Control pill in config-driven mode +- Fixed memory leak in remote sessions where tool use IDs accumulate indefinitely +- Improved Bedrock SDK cold-start latency by overlapping profile fetch with other boot work +- Improved `--resume` memory usage and startup latency on large sessions +- Improved plugin startup — commands, skills, and agents now load from disk cache without re-fetching +- Improved Remote Control session titles: AI-generated titles now appear within seconds of the first message +- Improved `WebFetch` to identify as `Claude-User` so site operators can recognize and allowlist Claude Code traffic via `robots.txt` +- Reduced `WebFetch` peak memory usage for large pages +- Reduced scrollback resets in long sessions from once per turn to once per ~50 messages +- Faster `claude -p` startup with unauthenticated HTTP/SSE MCP servers (~600ms saved) +- Bash ghost-text suggestions now include just-submitted commands immediately +- Increased non-streaming fallback token cap (21k → 64k) and timeout (120s → 300s local) so fallback requests are less likely to be truncated +- Interrupting a prompt before any response now automatically restores your input so you can edit and resubmit +- `/status` now works while Claude is responding, instead of being queued until the turn finishes +- Plugin MCP servers that duplicate an org-managed connector are now suppressed instead of running a second connection +- Linux: respect `XDG_DATA_HOME` when registering the `claude-cli://` protocol handler +- Changed "stop all background agents" keybinding from `Ctrl+F` to `Ctrl+X Ctrl+K` to stop shadowing readline forward-char +- Deprecated `TaskOutput` tool in favor of using `Read` on the background task's output file path +- [VSCode] Spinner now turns red with "Not responding" when the backend hasn't responded for 60 seconds +- [VSCode] Fixed session history not loading correctly when reopening a session via URL or after restart + ## 2.1.81 - Added `--bare` flag for scripted `-p` calls — skips hooks, LSP, plugin sync, and skill directory walks; requires `ANTHROPIC_API_KEY` or an `apiKeyHelper` via `--settings` (OAuth and keychain auth disabled); auto-memory fully disabled From a542f1b4b34473702eb4c678da9e5cbcfdc450f4 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 25 Mar 2026 06:28:41 +0000 Subject: [PATCH 079/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ec829e7bd..cdf994107c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -59,8 +59,25 @@ - Linux: respect `XDG_DATA_HOME` when registering the `claude-cli://` protocol handler - Changed "stop all background agents" keybinding from `Ctrl+F` to `Ctrl+X Ctrl+K` to stop shadowing readline forward-char - Deprecated `TaskOutput` tool in favor of using `Read` on the background task's output file path +- Added `CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK` env var to disable the non-streaming fallback when streaming fails +- Plugin options (`manifest.userConfig`) now available externally — plugins can prompt for configuration at enable time, with `sensitive: true` values stored in keychain (macOS) or protected credentials file (other platforms) +- Claude can now reference the on-disk path of clipboard-pasted images for file operations +- `Ctrl+L` now clears the screen and forces a full redraw — use this to recover when Cmd+K leaves the UI partially blank. Use `Ctrl+U` or double-Esc to clear prompt input. +- `--bare -p` (SDK pattern) is ~14% faster to the API request +- Memory: `MEMORY.md` index now truncates at 25KB as well as 200 lines +- Disabled `AskUserQuestion` and plan-mode tools when `--channels` is active +- Fixed API 400 error when a pasted image was queued during a failing tool call +- Fixed MCP tool calls hanging indefinitely when an SSE connection drops mid-call and exhausts its reconnection attempts +- Fixed Remote Control session titles showing raw XML when a background agent completed before the first user message +- Fixed remote sessions forgetting conversation history after a container restart due to progress-message gaps in the resumed transcript chain +- Fixed remote sessions requiring re-login on transient auth errors instead of retrying automatically +- Fixed `rg ... | wc -l` and similar piped commands hanging and returning `0` in sandbox mode on Linux +- Fixed voice input hold-to-talk not activating when a CJK IME inserts a full-width space +- Fixed `--worktree` hanging silently when the worktree name contained a forward slash - [VSCode] Spinner now turns red with "Not responding" when the backend hasn't responded for 60 seconds - [VSCode] Fixed session history not loading correctly when reopening a session via URL or after restart +- [VSCode] Added Esc-twice (or `/rewind`) to open a keyboard-navigable rewind picker +- [VSCode] Fixed "Fork conversation from here" and rewind actions failing silently after the session cache goes stale ## 2.1.81 From a0d9b87038e72d8a523b61c152ec53299ac6fe94 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 26 Mar 2026 00:30:53 +0000 Subject: [PATCH 080/152] chore: Update CHANGELOG.md Fixes #123 --- CHANGELOG.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cdf994107c..0830736811 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,48 @@ # Changelog +## 2.1.84 + +- Added PowerShell tool for Windows as an opt-in preview. Learn more at https://code.claude.com/docs/en/tools-reference#powershell-tool +- Added `ANTHROPIC_DEFAULT_{OPUS,SONNET,HAIKU}_MODEL_SUPPORTS` env vars to override effort/thinking capability detection for pinned default models for 3p (Bedrock, Vertex, Foundry), and `_MODEL_NAME`/`_DESCRIPTION` to customize the `/model` picker label +- Added `CLAUDE_STREAM_IDLE_TIMEOUT_MS` env var to configure the streaming idle watchdog threshold (default 90s) +- Added `TaskCreated` hook that fires when a task is created via `TaskCreate` +- Added `WorktreeCreate` hook support for `type: "http"` — return the created worktree path via `hookSpecificOutput.worktreePath` in the response JSON +- Added `allowedChannelPlugins` managed setting for team/enterprise admins to define a channel plugin allowlist +- Added `x-client-request-id` header to API requests for debugging timeouts +- Added idle-return prompt that nudges users returning after 75+ minutes to `/clear`, reducing unnecessary token re-caching on stale sessions +- Deep links (`claude-cli://`) now open in your preferred terminal instead of whichever terminal happens to be first in the detection list +- Rules and skills `paths:` frontmatter now accepts a YAML list of globs +- MCP tool descriptions and server instructions are now capped at 2KB to prevent OpenAPI-generated servers from bloating context +- MCP servers configured both locally and via claude.ai connectors are now deduplicated — the local config wins +- Background bash tasks that appear stuck on an interactive prompt now surface a notification after ~45 seconds +- Token counts ≥1M now display as "1.5m" instead of "1512.6k" +- Global system-prompt caching now works when `ToolSearch` is enabled, including for users with MCP tools configured +- Fixed voice push-to-talk: holding the voice key no longer leaks characters into the text input, and transcripts now insert at the correct position +- Fixed up/down arrow keys being unresponsive when a footer item is focused +- Fixed `Ctrl+U` (kill-to-line-start) being a no-op at line boundaries in multiline input, so repeated `Ctrl+U` now clears across lines +- Fixed null-unbinding a default chord binding (e.g. `"ctrl+x ctrl+k": null`) still entering chord-wait mode instead of freeing the prefix key +- Fixed mouse events inserting literal "mouse" text into transcript search input +- Fixed workflow subagents failing with API 400 when the outer session uses `--json-schema` and the subagent also specifies a schema +- Fixed missing background color behind certain emoji in user message bubbles on some terminals +- Fixed the "allow Claude to edit its own settings for this session" permission option not sticking for users with `Edit(.claude)` allow rules +- Fixed a hang when generating attachment snippets for large edited files +- Fixed MCP tool/resource cache leak on server reconnect +- Fixed a startup performance issue where partial clone repositories (Scalar/GVFS) triggered mass blob downloads +- Fixed native terminal cursor not tracking the text input caret, so IME composition (CJK input) now renders inline and screen readers can follow the input position +- Fixed spurious "Not logged in" errors on macOS caused by transient keychain read failures +- Fixed cold-start race where core tools could be deferred without their bypass active, causing Edit/Write to fail with InputValidationError on typed parameters +- Improved detection for dangerous removals of Windows drive roots (`C:\`, `C:\Windows`, etc.) +- Improved interactive startup by ~30ms by running `setup()` in parallel with slash command and agent loading +- Improved startup for `claude "prompt"` with MCP servers — the REPL now renders immediately instead of blocking until all servers connect +- Improved Remote Control to show a specific reason when blocked instead of a generic "not yet enabled" message +- Improved p90 prompt cache rate +- Reduced scroll-to-top resets in long sessions by making the message window immune to compaction and grouping changes +- Reduced terminal flickering when animated tool progress scrolls above the viewport +- Changed issue/PR references to only become clickable links when written as `owner/repo#123` — bare `#123` is no longer auto-linked +- Slash commands unavailable for the current auth setup (`/voice`, `/mobile`, `/chrome`, `/upgrade`, etc.) are now hidden instead of shown +- [VSCode] Added rate limit warning banner with usage percentage and reset time +- Stats screenshot (Ctrl+S in /stats) now works in all builds and is 16× faster + ## 2.1.83 - Added `managed-settings.d/` drop-in directory alongside `managed-settings.json`, letting separate teams deploy independent policy fragments that merge alphabetically From f75b6138eff5f36c48e7c4ddb2fe44b959ac2d8c Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 26 Mar 2026 22:52:07 +0000 Subject: [PATCH 081/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0830736811..447da9baf8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,38 @@ # Changelog +## 2.1.85 + +- Added `CLAUDE_CODE_MCP_SERVER_NAME` and `CLAUDE_CODE_MCP_SERVER_URL` environment variables to MCP `headersHelper` scripts, allowing one helper to serve multiple servers +- Added conditional `if` field for hooks using permission rule syntax (e.g., `Bash(git *)`) to filter when they run, reducing process spawning overhead +- Added timestamp markers in transcripts when scheduled tasks (`/loop`, `CronCreate`) fire +- Added trailing space after `[Image #N]` placeholder when pasting images +- Deep link queries (`claude-cli://open?q=…`) now support up to 5,000 characters, with a "scroll to review" warning for long pre-filled prompts +- MCP OAuth now follows RFC 9728 Protected Resource Metadata discovery to find the authorization server +- Plugins blocked by organization policy (`managed-settings.json`) can no longer be installed or enabled, and are hidden from marketplace views +- PreToolUse hooks can now satisfy `AskUserQuestion` by returning `updatedInput` alongside `permissionDecision: "allow"`, enabling headless integrations that collect answers via their own UI +- `tool_parameters` in OpenTelemetry tool_result events are now gated behind `OTEL_LOG_TOOL_DETAILS=1` +- Fixed `/compact` failing with "context exceeded" when the conversation has grown too large for the compact request itself to fit +- Fixed `/plugin enable` and `/plugin disable` failing when a plugin's install location differs from where it's declared in settings +- Fixed `--worktree` exiting with an error in non-git repositories before the `WorktreeCreate` hook could run +- Fixed `deniedMcpServers` setting not blocking claude.ai MCP servers +- Fixed `switch_display` in the computer-use tool returning "not available in this session" on multi-monitor setups +- Fixed crash when `OTEL_LOGS_EXPORTER`, `OTEL_METRICS_EXPORTER`, or `OTEL_TRACES_EXPORTER` is set to `none` +- Fixed diff syntax highlighting not working in non-native builds +- Fixed MCP step-up authorization failing when a refresh token exists — servers requesting elevated scopes via `403 insufficient_scope` now correctly trigger the re-authorization flow +- Fixed memory leak in remote sessions when a streaming response is interrupted +- Fixed persistent ECONNRESET errors during edge connection churn by using a fresh TCP connection on retry +- Fixed prompts getting stuck in the queue after running certain slash commands, with up-arrow unable to retrieve them +- Fixed Python Agent SDK: `type:'sdk'` MCP servers passed via `--mcp-config` are no longer dropped during startup +- Fixed raw key sequences appearing in the prompt when running over SSH or in the VS Code integrated terminal +- Fixed Remote Control session status staying stuck on "Requires Action" after a permission is resolved +- Fixed shift+enter and meta+enter being intercepted by typeahead suggestions instead of inserting newlines +- Fixed stale content bleeding through when scrolling up during streaming +- Fixed terminal left in enhanced keyboard mode after exit in Ghostty, Kitty, WezTerm, and other terminals supporting the Kitty keyboard protocol — Ctrl+C and Ctrl+D now work correctly after quitting +- Improved @-mention file autocomplete performance on large repositories +- Improved PowerShell dangerous command detection +- Improved scroll performance with large transcripts by replacing WASM yoga-layout with a pure TypeScript implementation +- Reduced UI stutter when compaction triggers on large sessions + ## 2.1.84 - Added PowerShell tool for Windows as an opt-in preview. Learn more at https://code.claude.com/docs/en/tools-reference#powershell-tool From 2923bc87d10da4fda57570313f2abbc5b457fed1 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 27 Mar 2026 21:42:05 +0000 Subject: [PATCH 082/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 447da9baf8..e17ed407dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,34 @@ # Changelog +## 2.1.86 + +- Added `X-Claude-Code-Session-Id` header to API requests so proxies can aggregate requests by session without parsing the body +- Added `.jj` and `.sl` to VCS directory exclusion lists so Grep and file autocomplete don't descend into Jujutsu or Sapling metadata +- Fixed `--resume` failing with "tool_use ids were found without tool_result blocks" on sessions created before v2.1.85 +- Fixed Write/Edit/Read failing on files outside the project root (e.g., `~/.claude/CLAUDE.md`) when conditional skills or rules are configured +- Fixed unnecessary config disk writes on every skill invocation that could cause performance issues and config corruption on Windows +- Fixed potential out-of-memory crash when using `/feedback` on very long sessions with large transcript files +- Fixed `--bare` mode dropping MCP tools in interactive sessions and silently discarding messages enqueued mid-turn +- Fixed the `c` shortcut copying only ~20 characters of the OAuth login URL instead of the full URL +- Fixed masked input (e.g., OAuth code paste) leaking the start of the token when wrapping across multiple lines on narrow terminals +- Fixed official marketplace plugin scripts failing with "Permission denied" on macOS/Linux since v2.1.83 +- Fixed statusline showing another session's model when running multiple Claude Code instances and using `/model` in one of them +- Fixed scroll not following new messages after wheel scroll or click-to-select at the bottom of a long conversation +- Fixed `/plugin` uninstall dialog: pressing `n` now correctly uninstalls the plugin while preserving its data directory +- Fixed a regression where pressing Enter after clicking could leave the transcript blank until the response arrived +- Fixed `ultrathink` hint lingering after deleting the keyword +- Fixed memory growth in long sessions from markdown/highlight render caches retaining full content strings +- Reduced startup event-loop stalls when many claude.ai MCP connectors are configured (macOS keychain cache extended from 5s to 30s) +- Reduced token overhead when mentioning files with `@` — raw string content no longer JSON-escaped +- Improved prompt cache hit rate for Bedrock, Vertex, and Foundry users by removing dynamic content from tool descriptions +- Memory filenames in the "Saved N memories" notice now highlight on hover and open on click +- Skill descriptions in the `/skills` listing are now capped at 250 characters to reduce context usage +- Changed `/skills` menu to sort alphabetically for easier scanning +- Auto mode now shows "unavailable for your plan" when disabled by plan restrictions (was "temporarily unavailable") +- [VSCode] Fixed extension incorrectly showing "Not responding" during long-running operations +- [VSCode] Fixed extension defaulting Max plan users to Sonnet after the OAuth token refreshes (8 hours after login) +- Read tool now uses compact line-number format and deduplicates unchanged re-reads, reducing token usage + ## 2.1.85 - Added `CLAUDE_CODE_MCP_SERVER_NAME` and `CLAUDE_CODE_MCP_SERVER_URL` environment variables to MCP `headersHelper` scripts, allowing one helper to serve multiple servers From 78a44f1b7dbd6f728cb8966b36ab7fa1be99dbc5 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sun, 29 Mar 2026 02:16:58 +0000 Subject: [PATCH 083/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e17ed407dd..700d711619 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.1.87 + +- Fixed messages in Cowork Dispatch not getting delivered + ## 2.1.86 - Added `X-Claude-Code-Session-Id` header to API requests so proxies can aggregate requests by session without parsing the body From 2d5c1bab92971bbdaecdb1767481973215ee7f2d Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 30 Mar 2026 23:53:01 +0000 Subject: [PATCH 084/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 700d711619..68dcaadfc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,49 @@ # Changelog +## 2.1.88 + +- Added `CLAUDE_CODE_NO_FLICKER=1` environment variable to opt into flicker-free alt-screen rendering with virtualized scrollback +- Added `PermissionDenied` hook that fires after auto mode classifier denials — return `{retry: true}` to tell the model it can retry +- Added named subagents to `@` mention typeahead suggestions +- Fixed prompt cache misses in long sessions caused by tool schema bytes changing mid-session +- Fixed nested CLAUDE.md files being re-injected dozens of times in long sessions that read many files +- Fixed Edit/Write tools doubling CRLF on Windows and stripping Markdown hard line breaks (two trailing spaces) +- Fixed `StructuredOutput` schema cache bug causing ~50% failure rate in workflows with multiple schemas +- Fixed memory leak where large JSON inputs were retained as LRU cache keys in long-running sessions +- Fixed a potential out-of-memory crash when the Edit tool was used on very large files (>1 GiB) +- Fixed a crash when removing a message from very large session files (over 50MB) +- Fixed `--resume` crash when transcript contains a tool result from an older CLI version or interrupted write +- Fixed misleading "Rate limit reached" message when the API returned an entitlement error — now shows the actual error with actionable hints +- Fixed LSP server zombie state after crash — server now restarts on next request instead of failing until session restart +- Fixed hooks `if` condition filtering not matching compound commands (`ls && git push`) or commands with env-var prefixes (`FOO=bar git push`) +- Fixed prompt history entries containing CJK or emoji being silently dropped when they fall on a 4KB boundary in `~/.claude/history.jsonl` +- Fixed `/stats` losing historical data beyond 30 days when the stats cache format changes +- Fixed `/stats` undercounting tokens by excluding subagent/fork usage +- Fixed scrollback disappearing when scrolling up in long sessions +- Fixed collapsed search/read group badges duplicating in terminal scrollback during heavy parallel tool use +- Fixed notification `invalidates` not clearing the currently-displayed notification immediately +- Fixed prompt briefly disappearing after submit when background messages arrived during processing +- Fixed long `/btw` responses being clipped with no way to scroll — responses now render in a scrollable viewport +- Fixed Devanagari and other combining-mark text being truncated in assistant output +- Fixed rendering artifacts on main-screen terminals after layout shifts +- Fixed voice mode failing to request microphone permission on macOS Apple Silicon +- Fixed voice push-to-talk not activating for some modifier-combo bindings +- Fixed voice mode on Windows failing with "WebSocket upgrade rejected with HTTP 101" +- Fixed Shift+Enter submitting instead of inserting a newline on Windows Terminal Preview 1.25 +- Fixed periodic UI jitter during streaming in iTerm2 when running inside tmux +- Fixed PowerShell tool incorrectly reporting failures when commands like `git push` wrote progress to stderr on Windows PowerShell 5.1 +- Fixed SDK error result messages (`error_during_execution`, `error_max_turns`) to correctly set `is_error: true` with descriptive messages +- Fixed task notifications being lost when backgrounding a session with Ctrl+B +- Fixed PreToolUse/PostToolUse hooks not providing `file_path` as an absolute path for Write/Edit/Read tools +- Improved PowerShell tool prompt with version-appropriate syntax guidance (5.1 vs 7+) +- Thinking summaries are no longer generated by default in interactive sessions — set `showThinkingSummaries: true` in settings to restore +- Auto mode denied commands now show a notification and appear in `/permissions` → Recent tab +- `/env` now applies to PowerShell tool commands (previously only affected Bash) +- `/usage` now hides redundant "Current week (Sonnet only)" bar for Pro and Enterprise plans +- Collapsed tool summary now shows "Listed N directories" for ls/tree/du instead of "Read N files" +- Image paste no longer inserts a trailing space +- Pasting `!command` into an empty prompt now enters bash mode, matching typed `!` behavior + ## 2.1.87 - Fixed messages in Cowork Dispatch not getting delivered From 4411cbae098222d6a43574b1c9d5931d897d0188 Mon Sep 17 00:00:00 2001 From: Octavian Guzu Date: Tue, 31 Mar 2026 12:36:59 +0100 Subject: [PATCH 085/152] Read issue number from workflow event in helper scripts (#40969) Updates edit-issue-labels.sh and comment-on-duplicates.sh to read the issue number from GITHUB_EVENT_PATH (the workflow event payload) instead of accepting it as a CLI argument. Simplifies the call signature and keeps the scripts aligned with the triggering issue. Also updates the /triage-issue and /dedupe command docs to match. :house: Remote-Dev: homespace --- .claude/commands/dedupe.md | 2 +- .claude/commands/triage-issue.md | 8 +++--- .github/workflows/claude-dedupe-issues.yml | 1 + .github/workflows/claude-issue-triage.yml | 1 + scripts/comment-on-duplicates.sh | 31 +++++++++------------- scripts/edit-issue-labels.sh | 27 +++++++++---------- 6 files changed, 32 insertions(+), 38 deletions(-) diff --git a/.claude/commands/dedupe.md b/.claude/commands/dedupe.md index edab658092..d83fa2793b 100644 --- a/.claude/commands/dedupe.md +++ b/.claude/commands/dedupe.md @@ -13,7 +13,7 @@ To do this, follow these steps precisely: 4. Next, feed the results from #1 and #2 into another agent, so that it can filter out false positives, that are likely not actually duplicates of the original issue. If there are no duplicates remaining, do not proceed. 5. Finally, use the comment script to post duplicates: ``` - ./scripts/comment-on-duplicates.sh --base-issue --potential-duplicates + ./scripts/comment-on-duplicates.sh --potential-duplicates ``` Notes (be sure to tell this to your agents, too): diff --git a/.claude/commands/triage-issue.md b/.claude/commands/triage-issue.md index d257b1ce98..d1a196991c 100644 --- a/.claude/commands/triage-issue.md +++ b/.claude/commands/triage-issue.md @@ -20,7 +20,7 @@ TOOLS: - `./scripts/gh.sh issue list --state open --limit 20` — list issues - `./scripts/gh.sh search issues "query"` — find similar or duplicate issues - `./scripts/gh.sh search issues "query" --limit 10` — search with limit -- `./scripts/edit-issue-labels.sh --issue NUMBER --add-label LABEL --remove-label LABEL` — add or remove labels +- `./scripts/edit-issue-labels.sh --add-label LABEL --remove-label LABEL` — add or remove labels (issue number is read from the workflow event) TASK: @@ -48,15 +48,15 @@ TASK: The goal is to avoid issues lingering without a clear next step. 7. Apply all selected labels: - `./scripts/edit-issue-labels.sh --issue ISSUE_NUMBER --add-label "label1" --add-label "label2"` + `./scripts/edit-issue-labels.sh --add-label "label1" --add-label "label2"` **If EVENT is "issue_comment" (comment on existing issue):** 4. Evaluate lifecycle labels based on the full conversation: - If the issue has `stale` or `autoclose`, remove the label — a new human comment means the issue is still active: - `./scripts/edit-issue-labels.sh --issue ISSUE_NUMBER --remove-label "stale" --remove-label "autoclose"` + `./scripts/edit-issue-labels.sh --remove-label "stale" --remove-label "autoclose"` - If the issue has `needs-repro` or `needs-info` and the missing information has now been provided, remove the label: - `./scripts/edit-issue-labels.sh --issue ISSUE_NUMBER --remove-label "needs-repro"` + `./scripts/edit-issue-labels.sh --remove-label "needs-repro"` - If the issue doesn't have lifecycle labels but clearly needs them (e.g., a maintainer asked for repro steps or more details), add the appropriate label. - Comments like "+1", "me too", "same here", or emoji reactions are NOT the missing information. Only remove `needs-repro` or `needs-info` when substantive details are actually provided. - Do NOT add or remove category labels (bug, enhancement, etc.) on comment events. diff --git a/.github/workflows/claude-dedupe-issues.yml b/.github/workflows/claude-dedupe-issues.yml index a48bf31536..71de91d15d 100644 --- a/.github/workflows/claude-dedupe-issues.yml +++ b/.github/workflows/claude-dedupe-issues.yml @@ -26,6 +26,7 @@ jobs: uses: anthropics/claude-code-action@v1 env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CLAUDE_CODE_SCRIPT_CAPS: '{"comment-on-duplicates.sh":1}' with: github_token: ${{ secrets.GITHUB_TOKEN }} allowed_non_write_users: "*" diff --git a/.github/workflows/claude-issue-triage.yml b/.github/workflows/claude-issue-triage.yml index 227445da60..ea09aa194d 100644 --- a/.github/workflows/claude-issue-triage.yml +++ b/.github/workflows/claude-issue-triage.yml @@ -29,6 +29,7 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_REPO: ${{ github.repository }} + CLAUDE_CODE_SCRIPT_CAPS: '{"edit-issue-labels.sh":2}' with: github_token: ${{ secrets.GITHUB_TOKEN }} allowed_non_write_users: "*" diff --git a/scripts/comment-on-duplicates.sh b/scripts/comment-on-duplicates.sh index 59577af3c1..c59e1aa645 100755 --- a/scripts/comment-on-duplicates.sh +++ b/scripts/comment-on-duplicates.sh @@ -1,22 +1,28 @@ #!/usr/bin/env bash # # Comments on a GitHub issue with a list of potential duplicates. -# Usage: ./comment-on-duplicates.sh --base-issue 123 --potential-duplicates 456 789 101 +# Usage: ./comment-on-duplicates.sh --potential-duplicates 456 789 101 +# +# The base issue number is read from the workflow event payload. # set -euo pipefail REPO="anthropics/claude-code" -BASE_ISSUE="" + +# Read from event payload so the issue number is bound to the triggering event. +# Falls back to workflow_dispatch inputs for manual runs. +BASE_ISSUE=$(jq -r '.issue.number // .inputs.issue_number // empty' "${GITHUB_EVENT_PATH:?GITHUB_EVENT_PATH not set}") +if ! [[ "$BASE_ISSUE" =~ ^[0-9]+$ ]]; then + echo "Error: no issue number in event payload" >&2 + exit 1 +fi + DUPLICATES=() # Parse arguments while [[ $# -gt 0 ]]; do case $1 in - --base-issue) - BASE_ISSUE="$2" - shift 2 - ;; --potential-duplicates) shift while [[ $# -gt 0 && ! "$1" =~ ^-- ]]; do @@ -25,23 +31,12 @@ while [[ $# -gt 0 ]]; do done ;; *) - echo "Unknown option: $1" >&2 + echo "Error: unknown argument (only --potential-duplicates is accepted)" >&2 exit 1 ;; esac done -# Validate base issue -if [[ -z "$BASE_ISSUE" ]]; then - echo "Error: --base-issue is required" >&2 - exit 1 -fi - -if ! [[ "$BASE_ISSUE" =~ ^[0-9]+$ ]]; then - echo "Error: --base-issue must be a number, got: $BASE_ISSUE" >&2 - exit 1 -fi - # Validate duplicates if [[ ${#DUPLICATES[@]} -eq 0 ]]; then echo "Error: --potential-duplicates requires at least one issue number" >&2 diff --git a/scripts/edit-issue-labels.sh b/scripts/edit-issue-labels.sh index 25a924b371..8a95a87a49 100755 --- a/scripts/edit-issue-labels.sh +++ b/scripts/edit-issue-labels.sh @@ -1,22 +1,27 @@ #!/usr/bin/env bash # # Edits labels on a GitHub issue. -# Usage: ./edit-issue-labels.sh --issue 123 --add-label bug --add-label needs-triage --remove-label untriaged +# Usage: ./edit-issue-labels.sh --add-label bug --add-label needs-triage --remove-label untriaged +# +# The issue number is read from the workflow event payload. # set -euo pipefail -ISSUE="" +# Read from event payload so the issue number is bound to the triggering event. +# Falls back to workflow_dispatch inputs for manual runs. +ISSUE=$(jq -r '.issue.number // .inputs.issue_number // empty' "${GITHUB_EVENT_PATH:?GITHUB_EVENT_PATH not set}") +if ! [[ "$ISSUE" =~ ^[0-9]+$ ]]; then + echo "Error: no issue number in event payload" >&2 + exit 1 +fi + ADD_LABELS=() REMOVE_LABELS=() # Parse arguments while [[ $# -gt 0 ]]; do case $1 in - --issue) - ISSUE="$2" - shift 2 - ;; --add-label) ADD_LABELS+=("$2") shift 2 @@ -26,20 +31,12 @@ while [[ $# -gt 0 ]]; do shift 2 ;; *) + echo "Error: unknown argument (only --add-label and --remove-label are accepted)" >&2 exit 1 ;; esac done -# Validate issue number -if [[ -z "$ISSUE" ]]; then - exit 1 -fi - -if ! [[ "$ISSUE" =~ ^[0-9]+$ ]]; then - exit 1 -fi - if [[ ${#ADD_LABELS[@]} -eq 0 && ${#REMOVE_LABELS[@]} -eq 0 ]]; then exit 1 fi From 66ab4ae6e022a5f0d6537a10771815052957c784 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 31 Mar 2026 14:35:56 +0000 Subject: [PATCH 086/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 44 -------------------------------------------- 1 file changed, 44 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 68dcaadfc7..700d711619 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,49 +1,5 @@ # Changelog -## 2.1.88 - -- Added `CLAUDE_CODE_NO_FLICKER=1` environment variable to opt into flicker-free alt-screen rendering with virtualized scrollback -- Added `PermissionDenied` hook that fires after auto mode classifier denials — return `{retry: true}` to tell the model it can retry -- Added named subagents to `@` mention typeahead suggestions -- Fixed prompt cache misses in long sessions caused by tool schema bytes changing mid-session -- Fixed nested CLAUDE.md files being re-injected dozens of times in long sessions that read many files -- Fixed Edit/Write tools doubling CRLF on Windows and stripping Markdown hard line breaks (two trailing spaces) -- Fixed `StructuredOutput` schema cache bug causing ~50% failure rate in workflows with multiple schemas -- Fixed memory leak where large JSON inputs were retained as LRU cache keys in long-running sessions -- Fixed a potential out-of-memory crash when the Edit tool was used on very large files (>1 GiB) -- Fixed a crash when removing a message from very large session files (over 50MB) -- Fixed `--resume` crash when transcript contains a tool result from an older CLI version or interrupted write -- Fixed misleading "Rate limit reached" message when the API returned an entitlement error — now shows the actual error with actionable hints -- Fixed LSP server zombie state after crash — server now restarts on next request instead of failing until session restart -- Fixed hooks `if` condition filtering not matching compound commands (`ls && git push`) or commands with env-var prefixes (`FOO=bar git push`) -- Fixed prompt history entries containing CJK or emoji being silently dropped when they fall on a 4KB boundary in `~/.claude/history.jsonl` -- Fixed `/stats` losing historical data beyond 30 days when the stats cache format changes -- Fixed `/stats` undercounting tokens by excluding subagent/fork usage -- Fixed scrollback disappearing when scrolling up in long sessions -- Fixed collapsed search/read group badges duplicating in terminal scrollback during heavy parallel tool use -- Fixed notification `invalidates` not clearing the currently-displayed notification immediately -- Fixed prompt briefly disappearing after submit when background messages arrived during processing -- Fixed long `/btw` responses being clipped with no way to scroll — responses now render in a scrollable viewport -- Fixed Devanagari and other combining-mark text being truncated in assistant output -- Fixed rendering artifacts on main-screen terminals after layout shifts -- Fixed voice mode failing to request microphone permission on macOS Apple Silicon -- Fixed voice push-to-talk not activating for some modifier-combo bindings -- Fixed voice mode on Windows failing with "WebSocket upgrade rejected with HTTP 101" -- Fixed Shift+Enter submitting instead of inserting a newline on Windows Terminal Preview 1.25 -- Fixed periodic UI jitter during streaming in iTerm2 when running inside tmux -- Fixed PowerShell tool incorrectly reporting failures when commands like `git push` wrote progress to stderr on Windows PowerShell 5.1 -- Fixed SDK error result messages (`error_during_execution`, `error_max_turns`) to correctly set `is_error: true` with descriptive messages -- Fixed task notifications being lost when backgrounding a session with Ctrl+B -- Fixed PreToolUse/PostToolUse hooks not providing `file_path` as an absolute path for Write/Edit/Read tools -- Improved PowerShell tool prompt with version-appropriate syntax guidance (5.1 vs 7+) -- Thinking summaries are no longer generated by default in interactive sessions — set `showThinkingSummaries: true` in settings to restore -- Auto mode denied commands now show a notification and appear in `/permissions` → Recent tab -- `/env` now applies to PowerShell tool commands (previously only affected Bash) -- `/usage` now hides redundant "Current week (Sonnet only)" bar for Pro and Enterprise plans -- Collapsed tool summary now shows "Listed N directories" for ls/tree/du instead of "Read N files" -- Image paste no longer inserts a trailing space -- Pasting `!command` into an empty prompt now enters bash mode, matching typed `!` behavior - ## 2.1.87 - Fixed messages in Cowork Dispatch not getting delivered From b4fa5f85f3d2e02b47f67ab2e348ce6101fb7b5a Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 1 Apr 2026 01:07:02 +0000 Subject: [PATCH 087/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 700d711619..954f9f78fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,60 @@ # Changelog +## 2.1.89 + +- Added `"defer"` permission decision to `PreToolUse` hooks — headless sessions can pause at a tool call and resume with `-p --resume` to have the hook re-evaluate +- Added `CLAUDE_CODE_NO_FLICKER=1` environment variable to opt into flicker-free alt-screen rendering with virtualized scrollback +- Added `PermissionDenied` hook that fires after auto mode classifier denials — return `{retry: true}` to tell the model it can retry +- Added named subagents to `@` mention typeahead suggestions +- Added `MCP_CONNECTION_NONBLOCKING=true` for `-p` mode to skip the MCP connection wait entirely, and bounded `--mcp-config` server connections at 5s instead of blocking on the slowest server +- Auto mode: denied commands now show a notification and appear in `/permissions` → Recent tab where you can retry with `r` +- Fixed `Edit(//path/**)` and `Read(//path/**)` allow rules to check the resolved symlink target, not just the requested path +- Fixed voice push-to-talk not activating for some modifier-combo bindings, and voice mode on Windows failing with "WebSocket upgrade rejected with HTTP 101" +- Fixed Edit/Write tools doubling CRLF on Windows and stripping Markdown hard line breaks (two trailing spaces) +- Fixed `StructuredOutput` schema cache bug causing ~50% failure rate when using multiple schemas +- Fixed memory leak where large JSON inputs were retained as LRU cache keys in long-running sessions +- Fixed a crash when removing a message from very large session files (over 50MB) +- Fixed LSP server zombie state after crash — server now restarts on next request instead of failing until session restart +- Fixed prompt history entries containing CJK or emoji being silently dropped when they fall on a 4KB boundary in `~/.claude/history.jsonl` +- Fixed `/stats` undercounting tokens by excluding subagent usage, and losing historical data beyond 30 days when the stats cache format changes +- Fixed `-p --resume` hangs when the deferred tool input exceeds 64KB or no deferred marker exists, and `-p --continue` not resuming deferred tools +- Fixed `claude-cli://` deep links not opening on macOS +- Fixed MCP tool errors truncating to only the first content block when the server returns multi-element error content +- Fixed skill reminders and other system context being dropped when sending messages with images via the SDK +- Fixed PreToolUse/PostToolUse hooks to receive `file_path` as an absolute path for Write/Edit/Read tools, matching the documented behavior +- Fixed autocompact thrash loop — now detects when context refills to the limit immediately after compacting three times in a row and stops with an actionable error instead of burning API calls +- Fixed prompt cache misses in long sessions caused by tool schema bytes changing mid-session +- Fixed nested CLAUDE.md files being re-injected dozens of times in long sessions that read many files +- Fixed `--resume` crash when transcript contains a tool result from an older CLI version or interrupted write +- Fixed misleading "Rate limit reached" message when the API returned an entitlement error — now shows the actual error with actionable hints +- Fixed hooks `if` condition filtering not matching compound commands (`ls && git push`) or commands with env-var prefixes (`FOO=bar git push`) +- Fixed collapsed search/read group badges duplicating in terminal scrollback during heavy parallel tool use +- Fixed notification `invalidates` not clearing the currently-displayed notification immediately +- Fixed prompt briefly disappearing after submit when background messages arrived during processing +- Fixed Devanagari and other combining-mark text being truncated in assistant output +- Fixed rendering artifacts on main-screen terminals after layout shifts +- Fixed voice mode failing to request microphone permission on macOS Apple Silicon +- Fixed Shift+Enter submitting instead of inserting a newline on Windows Terminal Preview 1.25 +- Fixed periodic UI jitter during streaming in iTerm2 when running inside tmux +- Fixed PowerShell tool incorrectly reporting failures when commands like `git push` wrote progress to stderr on Windows PowerShell 5.1 +- Fixed a potential out-of-memory crash when the Edit tool was used on very large files (>1 GiB) +- Improved collapsed tool summary to show "Listed N directories" for `ls`/`tree`/`du` instead of "Read N files" +- Improved Bash tool to warn when a formatter/linter command modifies files you have previously read, preventing stale-edit errors +- Improved `@`-mention typeahead to rank source files above MCP resources with similar names +- Improved PowerShell tool prompt with version-appropriate syntax guidance (5.1 vs 7+) +- Changed `Edit` to work on files viewed via `Bash` with `sed -n` or `cat`, without requiring a separate `Read` call first +- Changed hook output over 50K characters to be saved to disk with a file path + preview instead of being injected directly into context +- Changed `cleanupPeriodDays: 0` in settings.json to be rejected with a validation error — it previously silently disabled transcript persistence +- Changed thinking summaries to no longer be generated by default in interactive sessions — set `showThinkingSummaries: true` in settings.json to restore +- Documented `TaskCreated` hook event and its blocking behavior +- Preserved task notifications when backgrounding a running command with Ctrl+B +- PowerShell tool on Windows: external-command arguments containing both a double-quote and whitespace now prompt instead of auto-allowing (PS 5.1 argument-splitting hardening) +- `/env` now applies to PowerShell tool commands (previously only affected Bash) +- `/usage` now hides redundant "Current week (Sonnet only)" bar for Pro and Enterprise plans +- Image paste no longer inserts a trailing space +- Pasting `!command` into an empty prompt now enters bash mode, matching typed `!` behavior +- `/buddy` is here for April 1st — hatch a small creature that watches you code + ## 2.1.87 - Fixed messages in Cowork Dispatch not getting delivered From a50a91999b671e707cebad39542eade7154a00fa Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 1 Apr 2026 23:41:27 +0000 Subject: [PATCH 088/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 954f9f78fa..10da81556e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## 2.1.90 + +- Added `/powerup` — interactive lessons teaching Claude Code features with animated demos +- Added `CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE` env var to keep the existing marketplace cache when `git pull` fails, useful in offline environments +- Added `.husky` to protected directories (acceptEdits mode) +- Fixed an infinite loop where the rate-limit options dialog would repeatedly auto-open after hitting your usage limit, eventually crashing the session +- Fixed `--resume` causing a full prompt-cache miss on the first request for users with deferred tools, MCP servers, or custom agents (regression since v2.1.69) +- Fixed `Edit`/`Write` failing with "File content has changed" when a PostToolUse format-on-save hook rewrites the file between consecutive edits +- Fixed `PreToolUse` hooks that emit JSON to stdout and exit with code 2 not correctly blocking the tool call +- Fixed collapsed search/read summary badge appearing multiple times in fullscreen scrollback when a CLAUDE.md file auto-loads during a tool call +- Fixed auto mode not respecting explicit user boundaries ("don't push", "wait for X before Y") even when the action would otherwise be allowed +- Fixed click-to-expand hover text being nearly invisible on light terminal themes +- Fixed UI crash when malformed tool input reached the permission dialog +- Fixed headers disappearing when scrolling `/model`, `/config`, and other selection screens +- Hardened PowerShell tool permission checks: fixed trailing `&` background job bypass, `-ErrorAction Break` debugger hang, archive-extraction TOCTOU, and parse-fail fallback deny-rule degradation +- Improved performance: eliminated per-turn JSON.stringify of MCP tool schemas on cache-key lookup +- Improved performance: SSE transport now handles large streamed frames in linear time (was quadratic) +- Improved performance: SDK sessions with long conversations no longer slow down quadratically on transcript writes +- Improved `/resume` all-projects view to load project sessions in parallel, improving load times for users with many projects +- Changed `--resume` picker to no longer show sessions created by `claude -p` or SDK invocations +- Removed `Get-DnsClientCache` and `ipconfig /displaydns` from auto-allow (DNS cache privacy) + ## 2.1.89 - Added `"defer"` permission decision to `PreToolUse` hooks — headless sessions can pause at a tool call and resume with `-p --resume` to have the hook re-evaluate From 1e03cc7fc40d9bab33f24855a8b5d31ba66205cb Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 2 Apr 2026 23:45:29 +0000 Subject: [PATCH 089/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 10da81556e..2f6c9658e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## 2.1.91 + +- Added MCP tool result persistence override via `_meta["anthropic/maxResultSizeChars"]` annotation (up to 500K), allowing larger results like DB schemas to pass through without truncation +- Added `disableSkillShellExecution` setting to disable inline shell execution in skills, custom slash commands, and plugin commands +- Added support for multi-line prompts in `claude-cli://open?q=` deep links (encoded newlines `%0A` no longer rejected) +- Plugins can now ship executables under `bin/` and invoke them as bare commands from the Bash tool +- Fixed transcript chain breaks on `--resume` that could lose conversation history when async transcript writes fail silently +- Fixed `cmd+delete` not deleting to start of line on iTerm2, kitty, WezTerm, Ghostty, and Windows Terminal +- Fixed plan mode in remote sessions losing track of the plan file after a container restart, which caused permission prompts on plan edits and an empty plan-approval modal +- Fixed JSON schema validation for `permissions.defaultMode: "auto"` in settings.json +- Fixed Windows version cleanup not protecting the active version's rollback copy +- `/feedback` now explains why it's unavailable instead of disappearing from the slash menu +- Improved `/claude-api` skill guidance for agent design patterns including tool surface decisions, context management, and caching strategy +- Improved performance: faster `stripAnsi` on Bun by routing through `Bun.stripANSI` +- Edit tool now uses shorter `old_string` anchors, reducing output tokens + ## 2.1.90 - Added `/powerup` — interactive lessons teaching Claude Code features with animated demos From b543a256248ce5ff98804b8dfef4cd6247423d98 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sat, 4 Apr 2026 00:41:56 +0000 Subject: [PATCH 090/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f6c9658e7..81f60c1901 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,29 @@ # Changelog +## 2.1.92 + +- Added `forceRemoteSettingsRefresh` policy setting: when set, the CLI blocks startup until remote managed settings are freshly fetched, and exits if the fetch fails (fail-closed) +- Added interactive Bedrock setup wizard accessible from the login screen when selecting "3rd-party platform" — guides you through AWS authentication, region configuration, credential verification, and model pinning +- Added per-model and cache-hit breakdown to `/cost` for subscription users +- `/release-notes` is now an interactive version picker +- Remote Control session names now use your hostname as the default prefix (e.g. `myhost-graceful-unicorn`), overridable with `--remote-control-session-name-prefix` +- Pro users now see a footer hint when returning to a session after the prompt cache has expired, showing roughly how many tokens the next turn will send uncached +- Fixed subagent spawning permanently failing with "Could not determine pane count" after tmux windows are killed or renumbered during a long-running session +- Fixed prompt-type Stop hooks incorrectly failing when the small fast model returns `ok:false`, and restored `preventContinuation:true` semantics for non-Stop prompt-type hooks +- Fixed tool input validation failures when streaming emits array/object fields as JSON-encoded strings +- Fixed an API 400 error that could occur when extended thinking produced a whitespace-only text block alongside real content +- Fixed accidental feedback survey submissions from auto-pilot keypresses and consecutive-prompt digit collisions +- Fixed misleading "esc to interrupt" hint appearing alongside "esc to clear" when a text selection exists in fullscreen mode during processing +- Fixed Homebrew install update prompts to use the cask's release channel (`claude-code` → stable, `claude-code@latest` → latest) +- Fixed `ctrl+e` jumping to the end of the next line when already at end of line in multiline prompts +- Fixed an issue where the same message could appear at two positions when scrolling up in fullscreen mode (iTerm2, Ghostty, and other terminals with DEC 2026 support) +- Fixed idle-return "/clear to save X tokens" hint showing cumulative session tokens instead of current context size +- Fixed plugin MCP servers stuck "connecting" on session start when they duplicate a claude.ai connector that is unauthenticated +- Improved Write tool diff computation speed for large files (60% faster on files with tabs/`&`/`$`) +- Removed `/tag` command +- Removed `/vim` command (toggle vim mode via `/config` → Editor mode) +- Linux sandbox now ships the `apply-seccomp` helper in both npm and native builds, restoring unix-socket blocking for sandboxed commands + ## 2.1.91 - Added MCP tool result persistence override via `_meta["anthropic/maxResultSizeChars"]` annotation (up to 500K), allowing larger results like DB schemas to pass through without truncation From b9fbc7796b80659c570265deee97b0a8fc40bd89 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 7 Apr 2026 21:18:46 +0000 Subject: [PATCH 091/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 81f60c1901..e678c896b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,33 @@ # Changelog +## 2.1.94 + +- Added support for Amazon Bedrock powered by Mantle, set `CLAUDE_CODE_USE_MANTLE=1` +- Changed default effort level from medium to high for API-key, Bedrock/Vertex/Foundry, Team, and Enterprise users (control this with `/effort`) +- Added compact `Slacked #channel` header with a clickable channel link for Slack MCP send-message tool calls +- Added `keep-coding-instructions` frontmatter field support for plugin output styles +- Added `hookSpecificOutput.sessionTitle` to `UserPromptSubmit` hooks for setting the session title +- Plugin skills declared via `"skills": ["./"]` now use the skill's frontmatter `name` for the invocation name instead of the directory basename, giving a stable name across install methods +- Fixed agents appearing stuck after a 429 rate-limit response with a long Retry-After header — the error now surfaces immediately instead of silently waiting +- Fixed Console login on macOS silently failing with "Not logged in" when the login keychain is locked or its password is out of sync — the error is now surfaced and `claude doctor` diagnoses the fix +- Fixed plugin skill hooks defined in YAML frontmatter being silently ignored +- Fixed plugin hooks failing with "No such file or directory" when `CLAUDE_PLUGIN_ROOT` was not set +- Fixed `${CLAUDE_PLUGIN_ROOT}` resolving to the marketplace source directory instead of the installed cache for local-marketplace plugins on startup +- Fixed scrollback showing the same diff repeated and blank pages in long-running sessions +- Fixed multiline user prompts in the transcript indenting wrapped lines under the `❯` caret instead of under the text +- Fixed Shift+Space inserting the literal word "space" instead of a space character in search inputs +- Fixed hyperlinks opening two browser tabs when clicked inside tmux running in an xterm.js-based terminal (VS Code, Hyper, Tabby) +- Fixed an alt-screen rendering bug where content height changes mid-scroll could leave compounding ghost lines +- Fixed `FORCE_HYPERLINK` environment variable being ignored when set via `settings.json` `env` +- Fixed native terminal cursor not tracking the selected tab in dialogs, so screen readers and magnifiers can follow tab navigation +- Fixed Bedrock invocation of Sonnet 3.5 v2 by using the `us.` inference profile ID +- Fixed SDK/print mode not preserving the partial assistant response in conversation history when interrupted mid-stream +- Improved `--resume` to resume sessions from other worktrees of the same repo directly instead of printing a `cd` command +- Fixed CJK and other multibyte text being corrupted with U+FFFD in stream-json input/output when chunk boundaries split a UTF-8 sequence +- [VSCode] Reduced cold-open subprocess work on starting a session +- [VSCode] Fixed dropdown menus selecting the wrong item when the mouse was over the list while typing or using arrow keys +- [VSCode] Added a warning banner when `settings.json` files fail to parse, so users know their permission rules are not being applied + ## 2.1.92 - Added `forceRemoteSettingsRefresh` policy setting: when set, the CLI blocks startup until remote managed settings are freshly fetched, and exits if the fetch fails (fail-closed) From 227817d0f2cae5536273e78422c49bb89af859ca Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 8 Apr 2026 04:37:31 +0000 Subject: [PATCH 092/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e678c896b3..b60430972e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.1.96 + +- Fixed Bedrock requests failing with `403 "Authorization header is missing"` when using `AWS_BEARER_TOKEN_BEDROCK` or `CLAUDE_CODE_SKIP_BEDROCK_AUTH` (regression in 2.1.94) + ## 2.1.94 - Added support for Amazon Bedrock powered by Mantle, set `CLAUDE_CODE_USE_MANTLE=1` From 22fdf68049e8c24e5a36087bb742857d3d5e407d Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 8 Apr 2026 21:52:30 +0000 Subject: [PATCH 093/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b60430972e..32933facfa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,54 @@ # Changelog +## 2.1.97 + +- Added focus view toggle (`Ctrl+O`) in `NO_FLICKER` mode showing prompt, one-line tool summary with edit diffstats, and final response +- Added `refreshInterval` status line setting to re-run the status line command every N seconds +- Added `workspace.git_worktree` to the status line JSON input, set when the current directory is inside a linked git worktree +- Added `● N running` indicator in `/agents` next to agent types with live subagent instances +- Added syntax highlighting for Cedar policy files (`.cedar`, `.cedarpolicy`) +- Fixed `--dangerously-skip-permissions` being silently downgraded to accept-edits mode after approving a write to a protected path +- Fixed and hardened Bash tool permissions, tightening checks around env-var prefixes and network redirects, and reducing false prompts on common commands +- Fixed permission rules with names matching JavaScript prototype properties (e.g. `toString`) causing `settings.json` to be silently ignored +- Fixed managed-settings allow rules remaining active after an admin removed them until process restart +- Fixed `permissions.additionalDirectories` changes in settings not applying mid-session +- Fixed removing a directory from `settings.permissions.additionalDirectories` revoking access to the same directory passed via `--add-dir` +- Fixed MCP HTTP/SSE connections accumulating ~50 MB/hr of unreleased buffers when servers reconnect +- Fixed MCP OAuth `oauth.authServerMetadataUrl` not being honored on token refresh after restart, fixing ADFS and similar IdPs +- Fixed 429 retries burning all attempts in ~13 seconds when the server returns a small `Retry-After` — exponential backoff now applies as a minimum +- Fixed rate-limit upgrade options disappearing after context compaction +- Fixed several `/resume` picker issues: `--resume ` opening uneditable, Ctrl+A reload wiping search, empty list swallowing navigation, task-status text replacing conversation summary, and cross-project staleness +- Fixed file-edit diffs disappearing on `--resume` when the edited file was larger than 10KB +- Fixed `--resume` cache misses and lost mid-turn input from attachment messages not being saved to the transcript +- Fixed messages typed while Claude is working not being persisted to the transcript +- Fixed prompt-type `Stop`/`SubagentStop` hooks failing on long sessions, and hook evaluator API errors displaying "JSON validation failed" instead of the actual message +- Fixed subagents with worktree isolation or `cwd:` override leaking their working directory back to the parent session's Bash tool +- Fixed compaction writing duplicate multi-MB subagent transcript files on prompt-too-long retries +- Fixed `claude plugin update` reporting "already at the latest version" for git-based marketplace plugins when the remote had newer commits +- Fixed slash command picker breaking when a plugin's frontmatter `name` is a YAML boolean keyword +- Fixed copying wrapped URLs in `NO_FLICKER` mode inserting spaces at line breaks +- Fixed scroll rendering artifacts in `NO_FLICKER` mode when running inside zellij +- Fixed a crash in `NO_FLICKER` mode when hovering over MCP tool results +- Fixed a `NO_FLICKER` mode memory leak where API retries left stale streaming state +- Fixed slow mouse-wheel scrolling in `NO_FLICKER` mode on Windows Terminal +- Fixed custom status line not displaying in `NO_FLICKER` mode on terminals shorter than 24 rows +- Fixed Shift+Enter and Alt/Cmd+arrow shortcuts not working in Warp with `NO_FLICKER` mode +- Fixed Korean/Japanese/Unicode text becoming garbled when copied in no-flicker mode on Windows +- Fixed Bedrock SigV4 authentication failing when `AWS_BEARER_TOKEN_BEDROCK` or `ANTHROPIC_BEDROCK_BASE_URL` are set to empty strings (as GitHub Actions does for unset inputs) +- Improved Accept Edits mode to auto-approve filesystem commands prefixed with safe env vars or process wrappers (e.g. `LANG=C rm foo`, `timeout 5 mkdir out`) +- Improved auto mode and bypass-permissions mode to auto-approve sandbox network access prompts +- Improved sandbox: `sandbox.network.allowMachLookup` now takes effect on macOS +- Improved image handling: pasted and attached images are now compressed to the same token budget as images read via the Read tool +- Improved slash command and `@`-mention completion to trigger after CJK sentence punctuation, so Japanese/Chinese input no longer requires a space before `/` or `@` +- Improved Bridge sessions to show the local git repo, branch, and working directory on the claude.ai session card +- Improved footer layout: indicators (Focus, notifications) now stay on the mode-indicator row instead of wrapping below +- Improved context-low warning to show as a transient footer notification instead of a persistent row +- Improved markdown blockquotes to show a continuous left bar across wrapped lines +- Improved session transcript size by skipping empty hook entries and capping stored pre-edit file copies +- Improved transcript accuracy: per-block entries now carry the final token usage instead of the streaming placeholder +- Improved Bash tool OTEL tracing: subprocesses now inherit a W3C `TRACEPARENT` env var when tracing is enabled +- Updated `/claude-api` skill to cover Managed Agents alongside the Claude API + ## 2.1.96 - Fixed Bedrock requests failing with `403 "Authorization header is missing"` when using `AWS_BEARER_TOKEN_BEDROCK` or `CLAUDE_CODE_SKIP_BEDROCK_AUTH` (regression in 2.1.94) From 54c7be5b3f41f06b1382441fe142283d43b18bd9 Mon Sep 17 00:00:00 2001 From: inigo Date: Thu, 9 Apr 2026 08:29:23 -0700 Subject: [PATCH 094/152] Tighten invalid-label rule and require a category label on new issues --- .claude/commands/triage-issue.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.claude/commands/triage-issue.md b/.claude/commands/triage-issue.md index d1a196991c..4d63784bb2 100644 --- a/.claude/commands/triage-issue.md +++ b/.claude/commands/triage-issue.md @@ -30,7 +30,10 @@ TASK: **If EVENT is "issues" (new issue):** -4. First, check if this issue is actually about Claude Code (the CLI/IDE tool). Issues about the Claude API, claude.ai, the Claude app, Anthropic billing, or other Anthropic products should be labeled `invalid`. If invalid, apply only that label and stop. +4. First, check if this issue is actually about Claude Code. + - Look for Claude Code signals in the issue BODY: a `Claude Code Version` field or `claude --version` output, references to the `claude` CLI command, terminal sessions, the VS Code/JetBrains extensions, `CLAUDE.md` files, `.claude/` directories, MCP servers, Cowork, Remote Control, or the web UI at claude.ai/code. If ANY such signal is present, this IS a Claude Code issue — proceed to step 5. + - Only if NO Claude Code signals are present: check whether a different Anthropic product (claude.ai chat, Claude Desktop/Mobile apps, the raw Anthropic API/SDK, or account billing with no CLI involvement) is the *subject* of the complaint, not merely mentioned for context. If so, apply `invalid` and stop. If ambiguous, proceed to step 5 WITHOUT applying `invalid`. + - The body text is authoritative. If a form dropdown (e.g. Platform) contradicts evidence in the body, trust the body — dropdowns are often mis-selected. 5. Analyze and apply category labels: - Type (bug, enhancement, question, etc.) @@ -67,4 +70,5 @@ GUIDELINES: - Be conservative with lifecycle labels — only apply when clearly warranted - Only apply lifecycle labels (`needs-repro`, `needs-info`) to bugs — never to questions or enhancements - When in doubt, don't apply a lifecycle label — false positives are worse than missing labels -- It's okay to not add any labels if none are clearly applicable +- On new issues (EVENT "issues"), always apply exactly one of `bug`, `enhancement`, `question`, `invalid`, or `duplicate`. If unsure, pick the closest fit — an imperfect category label is better than none. +- On comment events, it's okay to make no changes if nothing applies. From d2b22528dbe02b1120153a1320174e4456919680 Mon Sep 17 00:00:00 2001 From: ant-kurt Date: Thu, 9 Apr 2026 11:41:10 -0700 Subject: [PATCH 095/152] Add MDM deployment example templates (#45866) --- examples/mdm/README.md | 28 ++++++++++ .../com.anthropic.claudecode.mobileconfig | 56 +++++++++++++++++++ .../mdm/macos/com.anthropic.claudecode.plist | 11 ++++ examples/mdm/managed-settings.json | 5 ++ examples/mdm/windows/ClaudeCode.admx | 28 ++++++++++ examples/mdm/windows/Set-ClaudeCodePolicy.ps1 | 28 ++++++++++ examples/mdm/windows/en-US/ClaudeCode.adml | 31 ++++++++++ examples/settings/README.md | 6 +- 8 files changed, 192 insertions(+), 1 deletion(-) create mode 100644 examples/mdm/README.md create mode 100644 examples/mdm/macos/com.anthropic.claudecode.mobileconfig create mode 100644 examples/mdm/macos/com.anthropic.claudecode.plist create mode 100644 examples/mdm/managed-settings.json create mode 100644 examples/mdm/windows/ClaudeCode.admx create mode 100644 examples/mdm/windows/Set-ClaudeCodePolicy.ps1 create mode 100644 examples/mdm/windows/en-US/ClaudeCode.adml diff --git a/examples/mdm/README.md b/examples/mdm/README.md new file mode 100644 index 0000000000..1d8e6dfc42 --- /dev/null +++ b/examples/mdm/README.md @@ -0,0 +1,28 @@ +# MDM Deployment Examples + +Example templates for deploying Claude Code [managed settings](https://code.claude.com/docs/en/settings#settings-files) through Jamf, Iru (Kandji), Intune, or Group Policy. Use these as starting points — adjust them to fit your needs. + +All templates encode the same minimal example (`permissions.disableBypassPermissionsMode`). See the [settings reference](https://code.claude.com/docs/en/settings#available-settings) for the full list of keys, and [`../settings`](../settings) for more complete example configurations. + + +## Templates + +> [!WARNING] +> These examples are community-maintained templates which may be unsupported or incorrect. You are responsible for the correctness of your own deployment configuration. + +| File | Use with | +| :--- | :--- | +| [`managed-settings.json`](./managed-settings.json) | Any platform. Deploy to the [system config directory](https://code.claude.com/docs/en/settings#settings-files). | +| [`macos/com.anthropic.claudecode.plist`](./macos/com.anthropic.claudecode.plist) | Jamf or Iru (Kandji) **Custom Settings** payload. Preference domain: `com.anthropic.claudecode`. | +| [`macos/com.anthropic.claudecode.mobileconfig`](./macos/com.anthropic.claudecode.mobileconfig) | Full configuration profile for local testing or MDMs that take a complete profile. | +| [`windows/Set-ClaudeCodePolicy.ps1`](./windows/Set-ClaudeCodePolicy.ps1) | Intune **Platform scripts**. Writes `managed-settings.json` to `C:\Program Files\ClaudeCode\`. | +| [`windows/ClaudeCode.admx`](./windows/ClaudeCode.admx) + [`en-US/ClaudeCode.adml`](./windows/en-US/ClaudeCode.adml) | Group Policy or Intune **Import ADMX**. Writes `HKLM\SOFTWARE\Policies\ClaudeCode\Settings` (REG_SZ, single-line JSON). | + +## Tips +- Replace the placeholder `PayloadUUID` and `PayloadOrganization` values in the `.mobileconfig` with your own (`uuidgen`) +- Before deploying to your fleet, test on a single machine and confirm `/status` lists the source under **Setting sources** — e.g. `Enterprise managed settings (plist)` on macOS or `Enterprise managed settings (HKLM)` on Windows +- Settings deployed this way sit at the top of the precedence order and cannot be overridden by users + +## Full Documentation + +See https://code.claude.com/docs/en/settings#settings-files for complete documentation on managed settings and settings precedence. diff --git a/examples/mdm/macos/com.anthropic.claudecode.mobileconfig b/examples/mdm/macos/com.anthropic.claudecode.mobileconfig new file mode 100644 index 0000000000..35aea62611 --- /dev/null +++ b/examples/mdm/macos/com.anthropic.claudecode.mobileconfig @@ -0,0 +1,56 @@ + + + + + PayloadDisplayName + Claude Code Managed Settings + PayloadDescription + Configures managed settings for Claude Code. + PayloadIdentifier + com.anthropic.claudecode.profile + PayloadOrganization + Example Organization + PayloadScope + System + PayloadType + Configuration + PayloadUUID + DC3CBC17-3330-4CDE-94AC-D2342E9C88A3 + PayloadVersion + 1 + PayloadContent + + + PayloadDisplayName + Claude Code + PayloadIdentifier + com.anthropic.claudecode.profile.BEFD5F54-71FC-4012-82B2-94399A1E220B + PayloadType + com.apple.ManagedClient.preferences + PayloadUUID + BEFD5F54-71FC-4012-82B2-94399A1E220B + PayloadVersion + 1 + PayloadContent + + com.anthropic.claudecode + + Forced + + + mcx_preference_settings + + permissions + + disableBypassPermissionsMode + disable + + + + + + + + + + diff --git a/examples/mdm/macos/com.anthropic.claudecode.plist b/examples/mdm/macos/com.anthropic.claudecode.plist new file mode 100644 index 0000000000..0a8f8432d7 --- /dev/null +++ b/examples/mdm/macos/com.anthropic.claudecode.plist @@ -0,0 +1,11 @@ + + + + + permissions + + disableBypassPermissionsMode + disable + + + diff --git a/examples/mdm/managed-settings.json b/examples/mdm/managed-settings.json new file mode 100644 index 0000000000..adf6ff2f0c --- /dev/null +++ b/examples/mdm/managed-settings.json @@ -0,0 +1,5 @@ +{ + "permissions": { + "disableBypassPermissionsMode": "disable" + } +} diff --git a/examples/mdm/windows/ClaudeCode.admx b/examples/mdm/windows/ClaudeCode.admx new file mode 100644 index 0000000000..703155fe4f --- /dev/null +++ b/examples/mdm/windows/ClaudeCode.admx @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/examples/mdm/windows/Set-ClaudeCodePolicy.ps1 b/examples/mdm/windows/Set-ClaudeCodePolicy.ps1 new file mode 100644 index 0000000000..84cb1cf681 --- /dev/null +++ b/examples/mdm/windows/Set-ClaudeCodePolicy.ps1 @@ -0,0 +1,28 @@ +<# +Deploys Claude Code managed settings as a JSON file. + +Intune: Devices > Scripts and remediations > Platform scripts > Add (Windows 10 and later). + Run this script using the logged on credentials: No + Run script in 64 bit PowerShell Host: Yes + +Claude Code reads C:\Program Files\ClaudeCode\managed-settings.json at startup +and treats it as a managed policy source. Edit the JSON below to change the +deployed settings; see https://code.claude.com/docs/en/settings for available keys. +#> + +$ErrorActionPreference = 'Stop' + +$dir = Join-Path $env:ProgramFiles 'ClaudeCode' +New-Item -ItemType Directory -Path $dir -Force | Out-Null + +$json = @' +{ + "permissions": { + "disableBypassPermissionsMode": "disable" + } +} +'@ + +$path = Join-Path $dir 'managed-settings.json' +[System.IO.File]::WriteAllText($path, $json, (New-Object System.Text.UTF8Encoding($false))) +Write-Output "Wrote $path" diff --git a/examples/mdm/windows/en-US/ClaudeCode.adml b/examples/mdm/windows/en-US/ClaudeCode.adml new file mode 100644 index 0000000000..0c3eef51fb --- /dev/null +++ b/examples/mdm/windows/en-US/ClaudeCode.adml @@ -0,0 +1,31 @@ + + + Claude Code + Claude Code policy settings + + + Claude Code + Managed settings (JSON) + Configures managed settings for Claude Code. + +Enter the full settings configuration as a single line of JSON. The value is stored as a REG_SZ string at HKLM\SOFTWARE\Policies\ClaudeCode\Settings and is applied at the highest precedence; users cannot override these settings. + +Example: +{"permissions":{"disableBypassPermissionsMode":"disable"}} + +For the list of available settings keys, see https://code.claude.com/docs/en/settings. + +If your configuration is large or you prefer to manage a JSON file directly, deploy C:\Program Files\ClaudeCode\managed-settings.json instead (see Set-ClaudeCodePolicy.ps1). + + + + + + + + + + diff --git a/examples/settings/README.md b/examples/settings/README.md index 9bc4f38128..34e60cae78 100644 --- a/examples/settings/README.md +++ b/examples/settings/README.md @@ -1,6 +1,6 @@ # Settings Examples -Example Claude Code settings files, primarily intended for organization-wide deployments. Use these are starting points — adjust them to fit your needs. +Example Claude Code settings files, primarily intended for organization-wide deployments. Use these as starting points — adjust them to fit your needs. These may be applied at any level of the [settings hierarchy](https://code.claude.com/docs/en/settings#settings-files), though certain properties only take effect if specified in enterprise settings (e.g. `strictKnownMarketplaces`, `allowManagedHooksOnly`, `allowManagedPermissionRulesOnly`). @@ -26,6 +26,10 @@ These may be applied at any level of the [settings hierarchy](https://code.claud - Before deploying configuration files to your organization, test them locally by applying to `managed-settings.json`, `settings.json` or `settings.local.json` - The `sandbox` property only applies to the `Bash` tool; it does not apply to other tools (like Read, Write, WebSearch, WebFetch, MCPs), hooks, or internal commands +## Deploying via MDM + +To distribute these settings as enterprise-managed policy through Jamf, Iru (Kandji), Intune, or Group Policy, see the deployment templates in [`../mdm`](../mdm). + ## Full Documentation See https://code.claude.com/docs/en/settings for complete documentation on all available managed settings. From c5600e0b1e9bb6ddf750cf7441c4d4fffbb7c917 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 9 Apr 2026 19:18:23 +0000 Subject: [PATCH 096/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32933facfa..289635eb48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,65 @@ # Changelog +## 2.1.98 + +- Added interactive Google Vertex AI setup wizard accessible from the login screen when selecting "3rd-party platform", guiding you through GCP authentication, project and region configuration, credential verification, and model pinning +- Added `CLAUDE_CODE_PERFORCE_MODE` env var: when set, Edit/Write/NotebookEdit fail on read-only files with a `p4 edit` hint instead of silently overwriting them +- Added Monitor tool for streaming events from background scripts +- Added subprocess sandboxing with PID namespace isolation on Linux when `CLAUDE_CODE_SUBPROCESS_ENV_SCRUB` is set, and `CLAUDE_CODE_SCRIPT_CAPS` env var to limit per-session script invocations +- Added `--exclude-dynamic-system-prompt-sections` flag to print mode for improved cross-user prompt caching +- Added `workspace.git_worktree` to the status line JSON input, set whenever the current directory is inside a linked git worktree +- Added W3C `TRACEPARENT` env var to Bash tool subprocesses when OTEL tracing is enabled, so child-process spans correctly parent to Claude Code's trace tree +- LSP: Claude Code now identifies itself to language servers via `clientInfo` in the initialize request +- Fixed a Bash tool permission bypass where a backslash-escaped flag could be auto-allowed as read-only and lead to arbitrary code execution +- Fixed compound Bash commands bypassing forced permission prompts for safety checks and explicit ask rules in auto and bypass-permissions modes +- Fixed read-only commands with env-var prefixes not prompting unless the var is known-safe (`LANG`, `TZ`, `NO_COLOR`, etc.) +- Fixed redirects to `/dev/tcp/...` or `/dev/udp/...` not prompting instead of auto-allowing +- Fixed stalled streaming responses timing out instead of falling back to non-streaming mode +- Fixed 429 retries burning all attempts in ~13s when the server returns a small `Retry-After` — exponential backoff now applies as a minimum +- Fixed MCP OAuth `oauth.authServerMetadataUrl` config override not being honored on token refresh after restart, affecting ADFS and similar IdPs +- Fixed capital letters being dropped to lowercase on xterm and VS Code integrated terminal when the kitty keyboard protocol is active +- Fixed macOS text replacements deleting the trigger word instead of inserting the substitution +- Fixed `--dangerously-skip-permissions` being silently downgraded to accept-edits mode after approving a write to a protected path via Bash +- Fixed managed-settings allow rules remaining active after an admin removed them, until process restart +- Fixed `permissions.additionalDirectories` changes not applying mid-session — removed directories lose access immediately and added ones work without restart +- Fixed removing a directory from `additionalDirectories` revoking access to the same directory passed via `--add-dir` +- Fixed `Bash(cmd:*)` and `Bash(git commit *)` wildcard permission rules failing to match commands with extra spaces or tabs +- Fixed `Bash(...)` deny rules being downgraded to a prompt for piped commands that mix `cd` with other segments +- Fixed false Bash permission prompts for `cut -d /`, `paste -d /`, `column -s /`, `awk '{print $1}' file`, and filenames containing `%` +- Fixed permission rules with names matching JavaScript prototype properties (e.g. `toString`) causing `settings.json` to be silently ignored +- Fixed agent team members not inheriting the leader's permission mode when using `--dangerously-skip-permissions` +- Fixed a crash in fullscreen mode when hovering over MCP tool results +- Fixed copying wrapped URLs in fullscreen mode inserting spaces at line breaks +- Fixed file-edit diffs disappearing from the UI on `--resume` when the edited file was larger than 10KB +- Fixed several `/resume` picker issues: `--resume ` opening uneditable, filter reload wiping search state, empty list swallowing arrow keys, cross-project staleness, and transient task-status text replacing conversation summaries +- Fixed `/export` not honoring absolute paths and `~`, and silently rewriting user-supplied extensions to `.txt` +- Fixed `/effort max` being denied for unknown or future model IDs +- Fixed slash command picker breaking when a plugin's frontmatter `name` is a YAML boolean keyword +- Fixed rate-limit upsell text being hidden after message remounts +- Fixed MCP tools with `_meta["anthropic/maxResultSizeChars"]` not bypassing the token-based persist layer +- Fixed voice mode leaking dozens of space characters into the input when re-holding the push-to-talk key while the previous transcript is still processing +- Fixed `DISABLE_AUTOUPDATER` not fully suppressing the npm registry version check and symlink modification on npm-based installs +- Fixed a memory leak where Remote Control permission handler entries were retained for the lifetime of the session +- Fixed background subagents that fail with an error not reporting partial progress to the parent agent +- Fixed prompt-type Stop/SubagentStop hooks failing on long sessions, and hook evaluator API errors showing "JSON validation failed" instead of the real message +- Fixed feedback survey rendering when dismissed +- Fixed Bash `grep -f FILE` / `rg -f FILE` not prompting when reading a pattern file outside the working directory +- Fixed stale subagent worktree cleanup removing worktrees that contain untracked files +- Fixed `sandbox.network.allowMachLookup` not taking effect on macOS +- Improved `/resume` filter hint labels and added project/worktree/branch names in the filter indicator +- Improved footer indicators (Focus, notifications) to stay on the mode-indicator row instead of wrapping at narrow terminal widths +- Improved `/agents` with a tabbed layout: a Running tab shows live subagents, and the Library tab adds Run agent and View running instance actions +- Improved `/reload-plugins` to pick up plugin-provided skills without requiring a restart +- Improved Accept Edits mode to auto-approve filesystem commands prefixed with safe env vars or process wrappers +- Improved Vim mode: `j`/`k` in NORMAL mode now navigate history and select the footer pill at the input boundary +- Improved hook errors in the transcript to include the first line of stderr for self-diagnosis without `--debug` +- Improved OTEL tracing: interaction spans now correctly wrap full turns under concurrent SDK calls, and headless turns end spans per-turn +- Improved transcript entries to carry final token usage instead of streaming placeholders +- Updated the `/claude-api` skill to cover Managed Agents alongside Claude API +- [VSCode] Fixed false-positive "requires git-bash" error on Windows when `CLAUDE_CODE_GIT_BASH_PATH` is set or Git is installed at a default location +- Fixed `CLAUDE_CODE_MAX_CONTEXT_TOKENS` to honor `DISABLE_COMPACT` when it is set. +- Dropped `/compact` hints when `DISABLE_COMPACT` is set. + ## 2.1.97 - Added focus view toggle (`Ctrl+O`) in `NO_FLICKER` mode showing prompt, one-line tool summary with edit diffstats, and final response From 9772e13f820002c9730af67a2409702799c7ddc6 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 10 Apr 2026 19:03:35 +0000 Subject: [PATCH 097/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 289635eb48..6677cdd13d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,54 @@ # Changelog +## 2.1.101 + +- Added `/team-onboarding` command to generate a teammate ramp-up guide from your local Claude Code usage +- Added OS CA certificate store trust by default, so enterprise TLS proxies work without extra setup (set `CLAUDE_CODE_CERT_STORE=bundled` to use only bundled CAs) +- `/ultraplan` and other remote-session features now auto-create a default cloud environment instead of requiring web setup first +- Improved brief mode to retry once when Claude responds with plain text instead of a structured message +- Improved focus mode: Claude now writes more self-contained summaries since it knows you only see its final message +- Improved tool-not-available errors to explain why and how to proceed when the model calls a tool that exists but isn't available in the current context +- Improved rate-limit retry messages to show which limit was hit and when it resets instead of an opaque seconds countdown +- Improved refusal error messages to include the API-provided explanation when available +- Improved `claude -p --resume ` to accept session titles set via `/rename` or `--name` +- Improved settings resilience: an unrecognized hook event name in `settings.json` no longer causes the entire file to be ignored +- Improved plugin hooks from plugins force-enabled by managed settings to run when `allowManagedHooksOnly` is set +- Improved `/plugin` and `claude plugin update` to show a warning when the marketplace could not be refreshed, instead of silently reporting a stale version +- Improved plan mode to hide the "Refine with Ultraplan" option when the user's org or auth setup can't reach Claude Code on the web +- Improved beta tracing to honor `OTEL_LOG_USER_PROMPTS`, `OTEL_LOG_TOOL_DETAILS`, and `OTEL_LOG_TOOL_CONTENT`; sensitive span attributes are no longer emitted unless opted in +- Improved SDK `query()` to clean up subprocess and temp files when consumers `break` from `for await` or use `await using` +- Fixed a command injection vulnerability in the POSIX `which` fallback used by LSP binary detection +- Fixed a memory leak where long sessions retained dozens of historical copies of the message list in the virtual scroller +- Fixed `--resume`/`--continue` losing conversation context on large sessions when the loader anchored on a dead-end branch instead of the live conversation +- Fixed `--resume` chain recovery bridging into an unrelated subagent conversation when a subagent message landed near a main-chain write gap +- Fixed a crash on `--resume` when a persisted Edit/Write tool result was missing its `file_path` +- Fixed a hardcoded 5-minute request timeout that aborted slow backends (local LLMs, extended thinking, slow gateways) regardless of `API_TIMEOUT_MS` +- Fixed `permissions.deny` rules not overriding a PreToolUse hook's `permissionDecision: "ask"` — previously the hook could downgrade a deny into a prompt +- Fixed `--setting-sources` without `user` causing background cleanup to ignore `cleanupPeriodDays` and delete conversation history older than 30 days +- Fixed Bedrock SigV4 authentication failing with 403 when `ANTHROPIC_AUTH_TOKEN`, `apiKeyHelper`, or `ANTHROPIC_CUSTOM_HEADERS` set an Authorization header +- Fixed `claude -w ` failing with "already exists" after a previous session's worktree cleanup left a stale directory +- Fixed subagents not inheriting MCP tools from dynamically-injected servers +- Fixed sub-agents running in isolated worktrees being denied Read/Edit access to files inside their own worktree +- Fixed sandboxed Bash commands failing with `mktemp: No such file or directory` after a fresh boot +- Fixed `claude mcp serve` tool calls failing with "Tool execution failed" in MCP clients that validate `outputSchema` +- Fixed `RemoteTrigger` tool's `run` action sending an empty body and being rejected by the server +- Fixed several `/resume` picker issues: narrow default view hiding sessions from other projects, unreachable preview on Windows Terminal, incorrect cwd in worktrees, session-not-found errors not surfacing in stderr, terminal title not being set, and resume hint overlapping the prompt input +- Fixed Grep tool ENOENT when the embedded ripgrep binary path becomes stale (VS Code extension auto-update, macOS App Translocation); now falls back to system `rg` and self-heals mid-session +- Fixed `/btw` writing a copy of the entire conversation to disk on every use +- Fixed `/context` Free space and Messages breakdown disagreeing with the header percentage +- Fixed several plugin issues: slash commands resolving to the wrong plugin with duplicate `name:` frontmatter, `/plugin update` failing with `ENAMETOOLONG`, Discover showing already-installed plugins, directory-source plugins loading from a stale version cache, and skills not honoring `context: fork` and `agent` frontmatter fields +- Fixed the `/mcp` menu offering OAuth-specific actions for MCP servers configured with `headersHelper`; Reconnect is now offered instead to re-invoke the helper script +- Fixed `ctrl+]`, `ctrl+\`, and `ctrl+^` keybindings not firing in terminals that send raw C0 control bytes (Terminal.app, default iTerm2, xterm) +- Fixed `/login` OAuth URL rendering with padding that prevented clean mouse selection +- Fixed rendering issues: flicker in non-fullscreen mode when content above the visible area changed, terminal scrollback being wiped during long sessions in non-fullscreen mode, and mouse-scroll escape sequences occasionally leaking into the prompt as text +- Fixed crash when `settings.json` env values are numbers instead of strings +- Fixed in-app settings writes (e.g. `/add-dir --remember`, `/config`) not refreshing the in-memory snapshot, preventing removed directories from being revoked mid-session +- Fixed custom keybindings (`~/.claude/keybindings.json`) not loading on Bedrock, Vertex, and other third-party providers +- Fixed `claude --continue -p` not correctly continuing sessions created by `-p` or the SDK +- Fixed several Remote Control issues: worktrees removed on session crash, connection failures not persisting in the transcript, spurious "Disconnected" indicator in brief mode for local sessions, and `/remote-control` failing over SSH when only `CLAUDE_CODE_ORGANIZATION_UUID` is set +- Fixed `/insights` sometimes omitting the report file link from its response +- [VSCode] Fixed the file attachment below the chat input not clearing when the last editor tab is closed + ## 2.1.98 - Added interactive Google Vertex AI setup wizard accessible from the login screen when selecting "3rd-party platform", guiding you through GCP authentication, project and region configuration, credential verification, and model pinning From 550aeecc9780f6334c25d5df7ce1a24830278843 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 13 Apr 2026 21:53:07 +0000 Subject: [PATCH 098/152] chore: Update CHANGELOG.md --- CHANGELOG.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6677cdd13d..5445cd57d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,45 @@ # Changelog +## 2.1.105 + +- Added `path` parameter to the `EnterWorktree` tool to switch into an existing worktree of the current repository +- Added PreCompact hook support: hooks can now block compaction by exiting with code 2 or returning `{"decision":"block"}` +- Added background monitor support for plugins via a top-level `monitors` manifest key that auto-arms at session start or on skill invoke +- `/proactive` is now an alias for `/loop` +- Improved stalled API stream handling: streams now abort after 5 minutes of no data and retry non-streaming instead of hanging indefinitely +- Improved network error messages: connection errors now show a retry message immediately instead of a silent spinner +- Improved file write display: long single-line writes (e.g. minified JSON) are now truncated in the UI instead of paginating across many screens +- Improved `/doctor` layout with status icons; press `f` to have Claude fix reported issues +- Improved `/config` labels and descriptions for clarity +- Improved skill description handling: raised the listing cap from 250 to 1,536 characters and added a startup warning when descriptions are truncated +- Improved `WebFetch` to strip `