Skip to content

Fix wasm crashes when viewing conversation search tool calls.#13108

Merged
vorporeal merged 1 commit into
masterfrom
david/fix-wasm-crashes-for-conversation-search
Jun 29, 2026
Merged

Fix wasm crashes when viewing conversation search tool calls.#13108
vorporeal merged 1 commit into
masterfrom
david/fix-wasm-crashes-for-conversation-search

Conversation

@vorporeal

@vorporeal vorporeal commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Description

Session-sharing viewers receive the sharing session's conversation-search subagent results, including paths to temporary directories created by the sharing session. Viewers were treating those replicated results as locally owned cleanup state and calling cleanup_conversation_search_temp_dir. On WASM, deriving the local cleanup base directory calls std::env::temp_dir(), which panics because the platform has no filesystem.

Skip conversation-search temp-directory cleanup when applying client actions in a shared-session viewer. The sharing session still owns and cleans up its temporary directories normally. This also prevents native viewers from attempting to delete filesystem paths owned by another Warp instance.

Linked Issue

Testing

  • cargo fmt --package warp -- --check
  • cargo check -p warp --lib
  • Symbolicated the exact staged WASM crash and confirmed the failing path is shared-session client-action processing → conversation-search cleanup → std::env::temp_dir().
  • Manually tested the shared-session conversation-search flow. Not performed; the change was validated from the exact-release stack trace and compile checks.

No automated test was added because this is a simple ownership guard and reproducing the regression requires a WASM shared-session viewer receiving a completed conversation-search subagent result.

Screenshots / Videos

N/A — no visual changes.

Agent Mode

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

CHANGELOG-BUG-FIX: Fixed a crash when viewing shared sessions that used conversation search.

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

@cla-bot cla-bot Bot added the cla-signed label Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

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

@vorporeal vorporeal requested a review from cephalonaut June 26, 2026 22:00
@vorporeal vorporeal marked this pull request as ready for review June 26, 2026 22:02
@oz-for-oss

oz-for-oss Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

@vorporeal

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

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

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.

Overview

This PR prevents shared-session viewers from running conversation-search temp-directory cleanup when replicated subagent results are applied, avoiding the WASM std::env::temp_dir() crash while leaving cleanup ownership with the sharing session.

Concerns

  • The PR changes user-facing shared-session behavior by fixing a viewer crash, but the description says the shared-session conversation-search flow was not manually tested and has no screenshot or recording evidence. For this user-facing change, please include screenshots or a screen recording demonstrating it working end to end.

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

@cephalonaut cephalonaut left a comment

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.

Thanks!

@vorporeal vorporeal merged commit ec77c9a into master Jun 29, 2026
77 of 81 checks passed
@vorporeal vorporeal deleted the david/fix-wasm-crashes-for-conversation-search branch June 29, 2026 18:04
dagmfactory pushed a commit that referenced this pull request Jun 30, 2026
## Description

Session-sharing viewers receive the sharing session's
conversation-search subagent results, including paths to temporary
directories created by the sharing session. Viewers were treating those
replicated results as locally owned cleanup state and calling
`cleanup_conversation_search_temp_dir`. On WASM, deriving the local
cleanup base directory calls `std::env::temp_dir()`, which panics
because the platform has no filesystem.

Skip conversation-search temp-directory cleanup when applying client
actions in a shared-session viewer. The sharing session still owns and
cleans up its temporary directories normally. This also prevents native
viewers from attempting to delete filesystem paths owned by another Warp
instance.

## Linked Issue

- [Sentry:
WARP-CLIENT-DEV-RDJ](https://warpdotdev.sentry.io/issues/WARP-CLIENT-DEV-RDJ/)

## Testing

- [x] `cargo fmt --package warp -- --check`
- [x] `cargo check -p warp --lib`
- [x] Symbolicated the exact staged WASM crash and confirmed the failing
path is shared-session client-action processing → conversation-search
cleanup → `std::env::temp_dir()`.
- [ ] Manually tested the shared-session conversation-search flow. Not
performed; the change was validated from the exact-release stack trace
and compile checks.

No automated test was added because this is a simple ownership guard and
reproducing the regression requires a WASM shared-session viewer
receiving a completed conversation-search subagent result.

### Screenshots / Videos

N/A — no visual changes.

## Agent Mode

- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode

CHANGELOG-BUG-FIX: Fixed a crash when viewing shared sessions that used
conversation search.

Co-Authored-By: Oz <oz-agent@warp.dev>
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