Skip to content

Use tombstone for failure UX for cloud mode#10895

Merged
zachbai merged 6 commits into
masterfrom
lili/app-4459-revert-back-to-tombstone-style-failure-ux-for-terminal-task
May 14, 2026
Merged

Use tombstone for failure UX for cloud mode#10895
zachbai merged 6 commits into
masterfrom
lili/app-4459-revert-back-to-tombstone-style-failure-ux-for-terminal-task

Conversation

@liliwilson
Copy link
Copy Markdown
Contributor

Description

This PR reverts back to using the tombstone, rather than the message bar, to display setup failures in cloud mode.

In addition to showing the tombstone, we also:

  • Update conversation_output_status_from_conversation to return statuses even when the conversation doesn't have any tasks (e.g. failure before conversation running, third-party harness)
  • Deserialize an error_code from task status messages (already present in the GraphQL) so that for setup command failures we don't show the tombstone with Continue/Continue Locally actions (it doesn't make sense to continue for an environment that's borked).

Loom: https://www.loom.com/share/685d737b881f4d89a1be0ade033da5ab

Testing

Added unit tests and tested a variety of failure modes in the Loom above.

Screenshots / Videos

Not included in the Loom, but setup command failure:
image

I don't think it's perfect but it's better than what we had before:
image

Agent Mode

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

@cla-bot cla-bot Bot added the cla-signed label May 14, 2026
@liliwilson liliwilson force-pushed the lili/app-4459-revert-back-to-tombstone-style-failure-ux-for-terminal-task branch from de58218 to 2a334c2 Compare May 14, 2026 07:09
@liliwilson liliwilson marked this pull request as ready for review May 14, 2026 07:09
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 14, 2026

@liliwilson

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

@liliwilson liliwilson force-pushed the lili/app-4459-revert-back-to-tombstone-style-failure-ux-for-terminal-task branch from 66a4f44 to 2e7ed8d Compare May 14, 2026 07:11
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 moves Cloud Mode setup-v2 failures from the setup message bar into the conversation-ended tombstone, adds conversation-status fallback handling for pre-task failures, and deserializes task status error codes to hide invalid continue actions.

Concerns

  • The environment setup failure helper compares against the wrong casing for the platform error code, so real ENVIRONMENT_SETUP_FAILED task statuses will not hide continue actions and the added unit test should fail.

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

Comment thread app/src/ai/ambient_agents/task.rs Outdated
Comment on lines +529 to +532
pub enum TaskStatusErrorCode {
#[serde(alias = "ENVIRONMENT_SETUP_FAILED")]
EnvironmentSetupFailed,
#[serde(other)]
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.

This comes from the OpenAPI spec in warp-server, right now just defining this variant but we will likely want/need more in the future

@liliwilson liliwilson requested a review from zachbai May 14, 2026 07:48
@zachbai zachbai merged commit b9ec4f3 into master May 14, 2026
28 checks passed
@zachbai zachbai deleted the lili/app-4459-revert-back-to-tombstone-style-failure-ux-for-terminal-task branch May 14, 2026 08:15
lawsmd pushed a commit to lawsmd/cortex that referenced this pull request May 22, 2026
## Description
<!-- Please remember to add your design buddy onto the PR for review, if
it contains any UI changes! -->
This PR reverts back to using the tombstone, rather than the message
bar, to display setup failures in cloud mode.

In addition to showing the tombstone, we also:
- Update `conversation_output_status_from_conversation` to return
statuses even when the conversation doesn't have any tasks (e.g. failure
before conversation running, third-party harness)
- Deserialize an `error_code` from task status messages (already present
in the GraphQL) so that for setup command failures we don't show the
tombstone with Continue/Continue Locally actions (it doesn't make sense
to continue for an environment that's borked).

Loom: https://www.loom.com/share/685d737b881f4d89a1be0ade033da5ab


## Testing
<!--
How did you test this change? What automated tests did you add? If you
didn't add any new tests, what's your justification for not adding any?

Manual testing is required for changes that can be manually tested, and
almost all changes can be manually tested. If your change can be
manually tested, please include screenshots or a screen recording that
show it working end to end.

You can run the app locally using `./script/run` - see WARP.md for more
details on how to get set up.
-->

Added unit tests and tested a variety of failure modes in the Loom
above.

### Screenshots / Videos
<!-- Attach screenshots or a short video demonstrating the change, where
appropriate. Remove this section if it is not relevant to your PR. -->

Not included in the Loom, but setup command failure:
<img width="1392" height="912" alt="image"
src="https://github.com/user-attachments/assets/eefbb82c-1c0a-4ede-b92d-79d93a9faa8c"
/>

I don't think it's perfect but it's better than what we had before:
<img width="602" height="126" alt="image"
src="https://github.com/user-attachments/assets/7a2367b7-75c9-498d-a5e8-dbb5044e73bc"
/>


## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode
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