Repository navigation
fix(automations): store the approved setup hash and skip setup when a run's branch differs - #37979
Merged
Merged
Conversation
3 tasks done
nwparker
force-pushed
the
nwparker/setup-trust-run-created-setup
branch
from
November 6, 2026 09:16
c0e1382 to
f1b9f4e
Compare
nwparker
force-pushed
the
nwparker/setup-trust-automations
branch
from
November 6, 2026 09:16
23aa08c to
e9d014c
Compare
nwparker
force-pushed
the
nwparker/setup-trust-run-created-setup
branch
from
November 6, 2026 09:34
f1b9f4e to
edbb3bb
Compare
nwparker
force-pushed
the
nwparker/setup-trust-automations
branch
from
November 6, 2026 09:34
e9d014c to
d3ee33f
Compare
nwparker
force-pushed
the
nwparker/setup-trust-run-created-setup
branch
from
November 6, 2026 09:48
edbb3bb to
618041b
Compare
nwparker
force-pushed
the
nwparker/setup-trust-automations
branch
from
November 6, 2026 09:48
d3ee33f to
3f4591e
Compare
nwparker
force-pushed
the
nwparker/setup-trust-run-created-setup
branch
from
November 6, 2026 10:09
618041b to
b23fdb7
Compare
nwparker
force-pushed
the
nwparker/setup-trust-automations
branch
from
November 6, 2026 10:09
3f4591e to
abc2161
Compare
nwparker
force-pushed
the
nwparker/setup-trust-run-created-setup
branch
2 times, most recently
from
November 6, 2026 23:21
0d56136 to
87e0e91
Compare
nwparker
changed the base branch from
nwparker/setup-trust-run-created-setup
to
main
November 6, 2026 23:37
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 11 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
… run's branch differs Saving an automation with setup run records the hash of the content the user approved; headless, chat and desktop-dispatched runs send it with the create, so a branch whose setup differs skips setup (logged on the host). Writes that set the decision without a hash (CLI --setup run) and older automations keep today's behaviour.
…branch differs Runs record setupSkippedReason 'setup-changed' when the new workspace's orca.yaml setup differs from the hash saved with the automation (headless, chat and desktop-dispatched runs), and the run page says so with what to do. The note survives the run's completion update.
nwparker
force-pushed
the
nwparker/setup-trust-automations
branch
from
November 6, 2026 23:39
abc2161 to
161fa64
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.
ELI5
Automations that create workspaces with "run setup" now remember which setup commands were approved when the automation was saved. If a run's branch has different commands, setup is skipped for that run (and logged) instead of running something that wasn't approved.
What Changed
setupDecision(type, persistence normalisation, RPC params, editor save).--setup run) clears the stored hash.setupSkippedReason: 'setup-changed'for headless, chat and desktop-dispatched runs, the note survives the completion update, and the run page shows "Setup didn't run…" with what to do. Desktop-dispatched runs also get the created-workspace review prompt from fix(hooks): run a created worktree's setup once its own content is approved #37978.Stacked on #37978.
Why
Automations replayed a stored "run" decision with no record of what was approved.
Linked Issue
N/A (maintainer).
Visual Proof
Adds a one-line notice on the run details page, using the existing status-warning tokens; a render test covers it. There's no other UI change.
Testing
pnpm tc, oxlint, quality gate; 6,700 related tests pass.Risk
Level: Low. Automations saved before this change have no hash and behave as before, as does any write without a hash (CLI, mobile). A run only skips setup when the branch's
orca.yamlsetup or default-tab commands really differ from what was approved at save time. Hashing is the same as in #37977 (parity and pinned-digest tests), and the run page now shows the skip instead of only logging it. What users may notice: an automation keeps skipping setup after the repo'sorca.yamlsetup changes until it's saved again. The run page tells them this.setupSkippedReasonis an optional field on run records, so older readers ignore it. Plain revert.AI Disclosure
Written with Claude Code.