Skip to content

Show cloud agent env name and setup status for vertical tabs pwd#11006

Merged
harryalbert merged 2 commits into
masterfrom
harry/app-4367-show-reasonable-subtitle-metadata-for-newnot-yet-started
May 16, 2026
Merged

Show cloud agent env name and setup status for vertical tabs pwd#11006
harryalbert merged 2 commits into
masterfrom
harry/app-4367-show-reasonable-subtitle-metadata-for-newnot-yet-started

Conversation

@harryalbert
Copy link
Copy Markdown
Contributor

@harryalbert harryalbert commented May 15, 2026

Summary

There was a weird UI pattern where, after kicking off a cloud run, the directory and branch (which falls back to the directory when there's no branch info) in the vertical tabs would be empty. This looked especially bad if the directory was your vertical tabs title, as then the title would just be empty.

The fix is to show:

  • "Environment setup status text" while the environment is starting up and
  • "Environment pwd" when the environment is set up (this isn't solving the first problem, but it's nice to know what env you're in from vertical tabs so @zachbai and I figured it made sense to add)

Demo

https://www.loom.com/share/1104c17370df4e0f9e1f8e7adfe20b93


Conversation: https://staging.warp.dev/conversation/f142b97d-c442-4ec1-ac77-653ace48f2e2
This PR was generated with Oz.

@cla-bot cla-bot Bot added the cla-signed label May 15, 2026
Add setup_status_text() to AgentProgress to deduplicate status text logic.
Add cloud_agent_working_directory() helper in vertical_tabs.rs that
resolves environment name and setup progress for the working directory
subtitle. Wire it into render_terminal_row_content, render_compact_pane_row,
and build_vertical_tabs_summary_data so cloud agent tabs show meaningful
metadata during startup instead of going blank.

Co-Authored-By: Oz <oz-agent@warp.dev>
@harryalbert harryalbert marked this pull request as ready for review May 15, 2026 15:57
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 15, 2026

@harryalbert

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

@harryalbert harryalbert force-pushed the harry/app-4367-show-reasonable-subtitle-metadata-for-newnot-yet-started branch from c38b7a5 to e01ab50 Compare May 15, 2026 15:57
@harryalbert harryalbert requested review from alokedesai and zachbai May 15, 2026 15:57
@harryalbert harryalbert changed the title Show cloud agent env name and setup status in vertical tabs subtitle Show cloud agent env name and setup status for vertical tabs pwd May 15, 2026
Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

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 deduplicates cloud agent setup status copy and uses cloud environment metadata to populate vertical tab subtitles for ambient agent sessions. The PR includes Loom visual evidence for the user-facing change.

Concerns

  • The new vertical tab subtitle helper treats any saved AgentProgress as an active setup state, but agent_progress() is also present after failed, GitHub-auth-required, and cancelled states. That can leave tabs showing setup progress instead of the terminal's current directory or failure/cancel context after setup has stopped.
  • Security pass: no security findings.

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

app: &AppContext,
) -> Option<String> {
if !terminal_view.is_ambient_agent_session(app) {
return None;
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.

⚠️ [IMPORTANT] agent_progress() also returns progress for failed, auth-required, and cancelled states, so those tabs will keep showing setup text; only derive setup text while the model is actually waiting for the session.

@harryalbert harryalbert requested review from advait-m and liliwilson and removed request for liliwilson May 16, 2026 02:23
@harryalbert harryalbert merged commit 1259cbf into master May 16, 2026
33 checks passed
@harryalbert harryalbert deleted the harry/app-4367-show-reasonable-subtitle-metadata-for-newnot-yet-started branch May 16, 2026 02:27
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