Fix misleading 'orchestration disabled' copy on denied run_agents card#13249
Fix misleading 'orchestration disabled' copy on denied run_agents card#13249warp-dev-github-integration[bot] wants to merge 1 commit into
Conversation
The run_agents confirmation card rendered every RunAgentsResult::Denied outcome as "Orchestration is currently disabled. Re-enable on the plan card to launch." — regardless of the actual denial reason. The most common denial is the duplicate-launch guard (the agent re-ran run_agents for child agents that were already spawned), which leaves orchestration fully enabled. That false banner led users to believe orchestration had been turned off per-conversation and that their already-launched subagents had been cancelled, and pointed them at a re-enable affordance the terminal card does not have. format_terminal_state now surfaces the actual denial reason, and renders the empty-reason 'Accept w/o orchestration' choice as a deliberate skip. Co-Authored-By: Warp <agent@warp.dev>
|
@warp-dev-github-integration[bot] I'm starting a first review of this pull request. You can view the conversation on Warp. I completed the review and no human review was requested for this pull request. Comment Powered by Oz |
There was a problem hiding this comment.
Overview
This PR updates the terminal status copy for RunAgentsResult::Denied so denial reasons are shown directly, and adds focused unit coverage for the changed label behavior.
Concerns
⚠️ [IMPORTANT] This is a user-facing terminal card copy change, but the PR description does not include screenshots or a screen recording demonstrating the updated denied-state card end to end. Repo guidance requires visual evidence for user-visible changes; the stated runner limitation does not exempt the PR. Please attach a screenshot or short recording from a local desktop run or a coding agent with computer use enabled.
Verdict
Found: 0 critical, 1 important, 0 suggestions
Request changes
Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).
Powered by Oz
|
Thanks for the review. I tried to capture a screenshot/recording of the updated denied-state card, but I genuinely cannot build or run the Warp GUI in this cloud runner — it's a hard disk-space ceiling, not a tunable resource limit:
So a What I can stand behind deterministically: this is a copy-only change to Could a maintainer either (a) capture the screenshot from a local desktop run, or (b) accept the deterministic unit coverage given the runner can't build the GUI? Happy to incorporate a screenshot if someone can grab one. (Re-running |
Description
The
run_agentsconfirmation card rendered everyRunAgentsResult::Deniedoutcome as "Orchestration is currently disabled. Re-enable on the plan card to launch.", regardless of the real reason for the denial (app/src/ai/blocklist/inline_action/run_agents_card_view.rs,format_terminal_state).The most common denial is the duplicate-launch guard in
prepare_request_for_execution(app/src/ai/blocklist/action_model/execute/run_agents.rs): when the agent re-runsrun_agentsfor child agents that were already spawned, the call is denied with "Requested agent(s) have already been launched…". Orchestration is fully enabled in that case — nothing was disabled and the already-launched children are not cancelled. The blanket banner made it look like orchestration had been turned off per-conversation and the subagents killed, and it pointed users at a "plan card" re-enable affordance that the terminal (status-only) card does not have.This came from a triaged report where a subagent narrated "orchestration was disabled, which cancelled both subagents" purely off the back of this misleading copy.
Fix
format_terminal_statenow:Denied { reason }result (the reason strings are already accurate and specific — duplicate-launch, disapproved config, profileNeverAllow, missing auth), instead of always claiming orchestration is disabled; andNo behavior change beyond card copy.
Testing
./script/runformat_terminal_state(the pure function that produces the card label), incl. a regression testdenied_with_duplicate_launch_reason_does_not_claim_disabledasserting the duplicate-launch denial surfaces its reason and never claims orchestration is disabled.cargo nextest run -p warp format_terminal_state→ 11 passed../script/formatclean.cargo clippyand a build-and-runcomputer_usepass on the live denial card were not feasible here. The denial card is also only reachable via a non-deterministic duplicate-launch agent flow. The change is a pure label mapping fully covered by the deterministic unit tests above; flagging that the live-surface UI check is pending a human/CI run.Screenshots / Videos
N/A — copy-only change to an inline status card; live-surface capture not feasible in this runner (see note above).
Agent Mode
CHANGELOG-BUG-FIX: Fixed the run_agents card showing "Orchestration is currently disabled" for denials (e.g. duplicate child agents) where orchestration was still enabled.