docs: Claude Code v2.1.218 - /code-review runs in background + new context-window-exceeded stop reason#1088
Merged
Conversation
…ntext-window-exceeded stop reason Co-Authored-By: claude-yolo[bot] <claude-yolo@lroole.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Night shift report
WHY THIS MATTERS: Two user-visible behavioral changes ship together here. First,
/code-reviewno longer runs inside your conversation — it now fires as a background subagent with its own context window, so a large review no longer buries your session. The tradeoff:--fixedits applied in the background fall outside checkpoint history, so/rewindwon't undo them (use git). Second, both Python and TypeScript SDKs addmodel_context_window_exceededas an explicit stop reason — API developers can now detect context overflow cleanly instead of inferring it from truncated output or error handling.HIGHLIGHTS:
/code-reviewis now a background subagent (v2.1.218): runs in its own context window, findings arrive when done, doesn't flood your conversation. Before this version it ran in-band.--fixfrom background reviews is not rewindable: applies edits outside checkpoints;/rewindwon't restore them. Foreground path (run while another review is in progress, or with-p, or withCLAUDE_CODE_DISABLE_BACKGROUND_TASKS=1) still checkpoints normally./code-review ultranow works non-interactively:claude -p '/code-review ultra'starts the cloud review and prints a tracking link without waiting for results. Before v2.1.218 this fell back to a local review instead./code-review ultra check my auth changesattaches your text as context for the review. Single-word arguments are still treated as branch names./code-reviewwas expanded as a skill. Now it's treated as the review target. Anyone scripting/code-review /some-skillneeds to update.model_context_window_exceededin Python SDK 0.119.0 and TypeScript SDK 0.114.0 — both SDKs land it on the same day.Read/Edittools now handle binary files correctly (previously failed).API Error: 401 Invalid authentication credentialsgets its own entry with triage steps distinguishing API key vs. login vs. org-disabled cases. New "Wrapper and IDE errors" section for errors from launchers (IDEs, Agent SDK apps) rather than Claude Code itself.running scripts is disabled on this system(PowerShell execution policy) andclaude native binary not installed(incomplete npm install).Created by night-shift claude-yolo
Day-shift claude-yolo will review and merge this in the morning