Skip to content

warpui_core: fix wasm compilation by adding StoredView::child_view_ids#12848

Draft
warp-dev-github-integration[bot] wants to merge 1 commit into
zb/tui-backend/03b-tui-elementsfrom
oz/fix-wasm-child-view-ids
Draft

warpui_core: fix wasm compilation by adding StoredView::child_view_ids#12848
warp-dev-github-integration[bot] wants to merge 1 commit into
zb/tui-backend/03b-tui-elementsfrom
oz/fix-wasm-child-view-ids

Conversation

@warp-dev-github-integration

Copy link
Copy Markdown
Contributor

Description

Fixes the Verify compilation with release flags (wasm) CI failure on PR #12634 (branch zb/tui-backend/03b-tui-elements).

The wasm release build failed with:

error[E0599]: no method named `child_view_ids` found for reference `&window::StoredView` in the current scope
  --> crates/warpui_core/src/core/app.rs:3306:39

StoredView is the type-erased view enum (Gui + cfg-gated Tui) stored in each window's registry. Its inherent impl delegates the "neutral hook" subset of View/AnyView methods (ui_name, on_focus, on_blur, keymap_context, etc.), but child_view_ids was never added. collect_transferable_subtree calls view.child_view_ids(self) on a &StoredView, which could not resolve because the method is only available on the AnyView/View traits, which StoredView does not implement.

This adds an inherent child_view_ids method to StoredView that delegates to the GUI view and returns an empty set for TUI views, matching the existing delegation pattern used for the other neutral hooks (and consistent with how TUI views are treated as non-participants in the other GUI-centric flows).

Testing

  • Reproduced and verified the fix with the exact CI command: ./script/wasm/bundle --channel oss --nouniversal --check-only — now finishes successfully (previously failed with E0599).
  • cargo fmt --check -p warpui_core passes.
  • cargo clippy -p warpui_core and cargo clippy -p warpui_core --features tui both pass with no warnings (verifying both match arms).

Agent Mode

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

Conversation: https://staging.warp.dev/conversation/0b76d629-ff67-4bd0-b063-765da26bae60
Run: https://oz.staging.warp.dev/runs/019ee255-1b18-7e40-8891-66da978aa9a8

This PR was generated with Oz.

Fixes the wasm release-flags compilation failure where
`collect_transferable_subtree` called `view.child_view_ids(self)` on a
`&StoredView`. The neutral-hook subset on `StoredView` delegates most
`View`/`AnyView` hooks, but `child_view_ids` was missing, so the method
could not resolve (E0599). Add an inherent `child_view_ids` that delegates
to the GUI view and returns an empty set for TUI views, matching the
existing delegation pattern for the other neutral hooks.

Co-Authored-By: Oz <oz-agent@warp.dev>
@cla-bot cla-bot Bot added the cla-signed label Jun 20, 2026
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.

1 participant