Repository navigation
diff: a shell command the tool held read-only fetches nothing - #95423
Conversation
… built-in panel's touch is gated
|
Retested on Claude Code 2.1.278 against main |
|
Thanks for watching out! Indeed, there's a bit of ceremony involved re the timing of landing this due to those changes. I'd love feedback as well on the test kit on the thread if you've gotten a chance to play around with it. |
|
One data point on the producer side. On 2.1.278 ( That also corrects my carry comment above: the skip is in both places in the code and fires on no current build. Harmless to land. Worth pairing with whichever engine change sets the field, since if it lands on the descriptor or under another name, nothing here notices. The probe (three files, validates, about five seconds a run) is in #91870. |
With its pane open, the
diffmod refetched the diff after every Bash or PowerShell tool call. The built-in panel refetches only after a shell command that may have written: one the tool holds read-only (ls,git status,cat, a grep) is skipped. The mod now readsisReadOnlyoff the shell tool'stool.callresult and skips the refetch when it is set; where the engine does not set it, behaviour is unchanged. Adds aregistertest that fails before the change. Checked:tsc -p mods/tsconfig.json,claude plugin validate mods/diff,claude plugin test mods/diff(143 pass).