Skip to content

[REV-2383] Scope cloud agent launches to selected team - #15815

Open
warp-agent-staging[bot] wants to merge 2 commits into
factory/rev-2383-environmentsfrom
factory/rev-2383-cloud-agent-run
Open

[REV-2383] Scope cloud agent launches to selected team#15815
warp-agent-staging[bot] wants to merge 2 commits into
factory/rev-2383-environmentsfrom
factory/rev-2383-cloud-agent-run

Conversation

@warp-agent-staging

Copy link
Copy Markdown
Contributor

Description

Scope cloud agent launches to the selected team by threading RequestTeamScope through AIClient::spawn_agent, spawn_task, local-to-cloud handoff, and the CLI, GUI, and TUI callers. The HTTP transport applies X-Warp-Team-Uid only for selected-team scope, while retry and deferred launch paths retain the initiating scope.

This PR is stacked on #15805 and includes its corrected --personal environment handling.

Linked Issue

Testing

  • /workspace/warp/script/format --check
  • /workspace/warp/script/check_no_inline_test_modules
  • cargo check -p warp_tui
  • Focused transport-header and GitHub-auth retry regression tests
  • All 20 ai::ambient_agents::spawn::tests
  • All 19 ai::blocklist::handoff::pipeline::tests
  • ai::agent_sdk::common::tests for the corrected parent scope behavior
  • cargo clippy -p warp_tui -- -D warnings
  • cargo clippy -p warp --lib --tests -- -D warnings

The full presubmit passed formatting, inline-test checks, Clippy, clang-format, factory-file validation, and WGSL formatting before full workspace test compilation exhausted the sandbox target volume (No space left on device). Post-parent-refresh focused checks and Clippy passed using an alternate Cargo target directory.

  • I have manually tested my changes locally with ./script/run (automated verification only, per request).

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

CHANGELOG-NONE

@warp-agent-staging

Copy link
Copy Markdown
Contributor Author

This PR was generated with Warp.

Comment @warp-factory on this PR to send it follow-up work.

View run View conversation View on Slack

@warp-agent-staging
warp-agent-staging Bot marked this pull request as ready for review September 4, 2026 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants