Skip to content

Do not include cloud agent metadata on passive suggestions requests#11400

Open
bnavetta wants to merge 1 commit into
masterfrom
ben/remote-1728-cloud-agent-viewer-can-hit-403-not-allowed-to-use-the
Open

Do not include cloud agent metadata on passive suggestions requests#11400
bnavetta wants to merge 1 commit into
masterfrom
ben/remote-1728-cloud-agent-viewer-can-hit-403-not-allowed-to-use-the

Conversation

@bnavetta
Copy link
Copy Markdown
Contributor

Description

We got a few reports of not allowed to use the provided cloud agent 403 errors while viewing cloud agents. Based on some agent investigation, this is most likely due to MAA passive suggestion requests.
Those requests included cloud agent metadata, but they're issued as the user viewing the session, not the user or agent executing the conversation. With warpdotdev/warp-server#11192, this is an error, since we want to ensure that clients viewing a cloud agent session can't accidentally modify its conversation state.

Issuing passive MAA suggestion requests while viewing a shared session is fine, and generally seems useful, but we don't need to falsely mark these as cloud agent requests.

I also considered:

  • Disabling passive suggestions while viewing a shared session
  • Not including prior conversation state at all when requesting passive suggestions in a shared session

Both seem like a strictly worse user experience.

Testing

  • Added a regression unit test
  • I have manually tested my changes locally with ./script/run

This is nontrivial to reproduce, since it requires triggering a passive suggestion while viewing someone else's cloud agent session.

Agent Mode

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

@bnavetta bnavetta requested a review from szgupta May 20, 2026 10:00
@cla-bot cla-bot Bot added the cla-signed label May 20, 2026
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 20, 2026

@bnavetta

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 /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR omits cloud-agent metadata from passive suggestion request params and skips sending the ambient workload token for passive suggestion HTTP requests, with a regression test covering the controller-level request params.

Concerns

  • This is a user-facing behavioral change intended to prevent 403s while viewing shared cloud agent sessions, but the PR description does not include screenshots or a short recording demonstrating the scenario working end to end. Please attach visual evidence from a local desktop run or an environment with computer-use support.

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

@bnavetta bnavetta force-pushed the ben/remote-1728-cloud-agent-viewer-can-hit-403-not-allowed-to-use-the branch from 1080b5f to 42d387a Compare May 20, 2026 11:43
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.

2 participants