Repository navigation
feat(cli): let the agent finish an upgrade the user started - #609
Merged
theCodeDrift merged 3 commits intoNov 4, 2026
Merged
theCodeDrift merged 3 commits into
theCodeDrift merged 3 commits into
Conversation
Member
Author
|
@claude /review |
Contributor
|
Claude finished @theCodeDrift's task in 4m 36s —— View job Review completeReview mode: incremental — read 0 prior review thread(s) before reviewing. The
FindingsOne inline comment posted:
Everything else
|
Member
Author
The one finding is fixed in 314af3b and its thread is resolved. The typecheck failure was that same line; nothing else in the summary needs a change. — AI Coding Agent |
agent ok told the agent to hand every step to the user. Moving the CLI stays the user's decision, but the rules step runs the recorded version, so the agent now applies it once no upgrade is pending, and explains what declining means.
agent ok named Claude Code's ! prefix to every agent. It now recognizes the harness from a fixed table of environment variables, for wording only, and shows the command with the prefix that harness documents. Another terminal is always offered.
The call took one argument, which failed typecheck. Passing undefined keeps what it meant: vitest deletes the variable, so the Cursor branch runs even when the suite is itself inside Claude Code, where CLAUDECODE is set.
theCodeDrift
force-pushed
the
fix/agent-applies-rules-after-upgrade
branch
from
November 4, 2026 20:23
314af3b to
e8ee2ee
Compare
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.
Stack (root → tip):
Stacked on #608. Moving the CLI stays the user's decision. This makes the rest of the flow work around that decision.
The user upgrades, then the agent applies the rules
init, and say that in a terminal the same command withoutinitopens the installer.agent ok, because a newer CLI can owe a different reconcile.npxfor the upgrade rather than the agent-fill marker.The instruction fits the harness
agent okrecognizes the harness from a fixed table of environment variables and shows the command with the prefix that harness documents. Detection shapes wording only, and no environment value reaches the output. Another terminal is always offered.!CLAUDECODE, withCLAUDE_CODE_ENTRYPOINTbeingclior unset/shell, stating its 30-second limitCURSOR_AGENT!OPENCODE!CODEX_THREAD_ID, which is undocumented!GEMINI_CLI!AI_AGENTstartingdevin_Crush, the Claude Code VS Code extension, and anything unrecognized get another terminal only. Only the Claude Code variables were observed live. The rest come from each product's docs or source, and a miss falls back to the terminal.
check's notice keeps its plain commands.