feat: default environment/host selection and deferred auto-launch for orchestration config UI#10774
feat: default environment/host selection and deferred auto-launch for orchestration config UI#10774cephalonaut wants to merge 2 commits into
Conversation
5555a6a to
7b572e6
Compare
c53405a to
793173a
Compare
|
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 orchestration config defaults and changes run_agents auto-launch to defer until stream completion while honoring approved plan config overrides.
Concerns
- The plan-card default environment/host fill mutates only the view state; if the user does not make another edit, the approved config stored in history remains empty and the auto-launch/executor override can still launch with an empty Remote config.
- This is a user-visible UI/behavior change, but the PR description includes no screenshot or screen recording showing the default environment/host selection and deferred launch behavior end to end. Manual testing is required for changes that can be manually tested; please include screenshots or a screen recording, or justify why visual evidence is not possible.
Verdict
Found: 0 critical, 2 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
| } | ||
| if needs_env { | ||
| if let Some(default_env) = oc::resolve_default_environment_id(ctx) { | ||
| self.edit_state.set_environment_id(default_env); |
There was a problem hiding this comment.
apply_field_change, the approved config in history stays empty, so deferred auto-launch still overrides the request with an empty Remote environment/host. Persist the resolved default when filling an approved config.
| if needs_env { | ||
| if let Some(default_env) = oc::resolve_default_environment_id(ctx) { | ||
| self.edit_state.set_environment_id(default_env); | ||
| } |
There was a problem hiding this comment.
^ following Oz comment, I think adding something like this should address it
if filled_defaults && self.is_approved {
self.apply_field_change(ctx);
}
793173a to
add018e
Compare
Non-interactive agents running via the CLI driver (SDK mode) cannot present or interact with the orchestration confirmation card. Previously RunAgentsExecutor::should_autoexecute always returned false, causing these agents to get stuck waiting indefinitely for user confirmation that can never come. Now should_autoexecute checks AppExecutionMode::is_autonomous() and returns true for SDK/driver mode, allowing RunAgents to proceed directly through the standard executor path without the confirmation card. Fixes QUALITY-667 Co-Authored-By: Oz <oz-agent@warp.dev>
8e70ad4 to
c4e9131
Compare
When the orchestration config UI initializes with Remote mode and no environment selected, auto-fill the user's last-selected or most recently used environment — matching the /cloud-agent behavior. - Add resolve_default_environment_id and persist_environment_selection helpers in orchestration_controls.rs - Wire into apply_execution_mode_change (handles both plan card and confirmation card toggle) - Wire into plan card ensure_pickers and confirmation card new/update_request - Persist environment selections to CloudAgentSettings for cross-flow consistency - Fix rebase artifact: set_orchestration_config → set_orchestration_config_for_plan Co-Authored-By: Oz <oz-agent@warp.dev>
c4e9131 to
8da9930
Compare
Description
Two changes to orchestration config handling:
1. Default environment and host selection — When the orchestration config UI opens in Remote mode with no environment selected, auto-fill from the user's last-selected or most recently used environment (matching
/cloud-agentbehavior). Worker host defaults to "warp". Selections are persisted to settings for cross-flow consistency.2. Deferred auto-launch with unconditional config override — Auto-launch evaluation is deferred to stream completion so the full request (including plan_id and agent_run_configs) is available. When an approved plan config exists, its model/harness/execution_mode unconditionally override the LLM's run_agents call (preserving only computer_use_enabled). This also applies to the autonomous executor path for CLI-driver agents.
Agent conversation | Plan
Testing
./script/runoverride_from_approved_config(6 tests covering all override/preserve scenarios)Agent Mode
Co-Authored-By: Oz oz-agent@warp.dev