Skip to content

fix: mute inaccessible run metadata notice#11686

Merged
captainsafia merged 3 commits into
masterfrom
oz-agent/muted-run-metadata-access-notice
May 29, 2026
Merged

fix: mute inaccessible run metadata notice#11686
captainsafia merged 3 commits into
masterfrom
oz-agent/muted-run-metadata-access-notice

Conversation

@captainsafia
Copy link
Copy Markdown
Contributor

@captainsafia captainsafia commented May 26, 2026

Description

Fixes the shared-session details panel state for cloud runs whose metadata fetch returns a forbidden response. Instead of showing the raw API error in a red alert, the panel now renders a muted info notice explaining that the shared session can be viewed, but run metadata is only visible to users with access to that specific run.

Linked Issue

REMOTE-1771

  • The linked issue is labeled ready-to-spec or ready-to-implement.
  • Where appropriate, screenshots or a short video of the implementation are included below (especially for user-visible or UI changes).

Testing

  • rustfmt --check /workspace/warp/app/src/ai/conversation_details_panel.rs /workspace/warp/app/src/ai/conversation_details_panel_tests.rs

  • cargo test --manifest-path /workspace/warp/Cargo.toml -p warp test_metadata_access_denied_fetch_error_detection --lib

  • I have manually tested my changes locally with ./script/run

Screenshots / Videos

Agent Mode

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

CHANGELOG-BUG-FIX: Shared cloud-agent session details now show a muted no-access notice when run metadata is restricted instead of displaying a raw permission error.

Co-Authored-By: Oz oz-agent@warp.dev

Conversation: https://staging.warp.dev/conversation/371d26d9-57fb-4b92-855e-bdef55efeebe
Run: https://oz.staging.warp.dev/runs/019e64cc-9d78-7c77-a53e-af0f869b53fe
This PR was generated with Oz.

Co-Authored-By: Oz <oz-agent@warp.dev>
@cla-bot cla-bot Bot added the cla-signed label May 26, 2026
captainsafia and others added 2 commits May 26, 2026 22:34
Co-Authored-By: Oz <oz-agent@warp.dev>
Co-Authored-By: Oz <oz-agent@warp.dev>
@captainsafia captainsafia marked this pull request as ready for review May 27, 2026 04:12
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 27, 2026

@captainsafia

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 preserves the existing fetch-error banner for ordinary run metadata failures while adding structured HTTP-status detection so 401/403 metadata fetch failures render as a muted access notice for shared sessions. The model, details panel, native view, WASM view, and targeted tests were updated consistently.

Concerns

No blocking correctness, security, or spec-alignment concerns found. The PR description includes visual validation for the user-facing notice.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@captainsafia captainsafia requested a review from a team May 28, 2026 23:05
.finish();
content.add_child(
Container::new(error_banner)
Container::new(self.render_fetch_error_notice(fetch_error, appearance, app))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i could be completely wrong here but could this affect the spacing for errors that are not the access denied one? by adding extra spacing around empty content

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't think so? The content that's rendered outside the if-statement in render_fetch_error_notice matches what we are doing in the removed block above unless I am missing something.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah it looks the same to me! As long as fetch_error is Some, the content should be non-empty

.finish();
content.add_child(
Container::new(error_banner)
Container::new(self.render_fetch_error_notice(fetch_error, appearance, app))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah it looks the same to me! As long as fetch_error is Some, the content should be non-empty

@captainsafia captainsafia merged commit 62b40f4 into master May 29, 2026
54 of 56 checks passed
@captainsafia captainsafia deleted the oz-agent/muted-run-metadata-access-notice branch May 29, 2026 14:10
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.

3 participants