Skip to content

Fix wasm/master build: add child_view_ids to StoredView#12844

Draft
warp-dev-github-integration[bot] wants to merge 1 commit into
masterfrom
fix/stored-view-child-view-ids-wasm-build
Draft

Fix wasm/master build: add child_view_ids to StoredView#12844
warp-dev-github-integration[bot] wants to merge 1 commit into
masterfrom
fix/stored-view-child-view-ids-wasm-build

Conversation

@warp-dev-github-integration

Copy link
Copy Markdown
Contributor

Description

Fixes a compile break on master that is failing the CI / Formatting + Clippy (wasm) job (and all other targets) at commit 1ef980b.

PR #12633 ("Add TUI API surface to AppContext under tui") converted Window::views from HashMap<EntityId, Box<dyn AnyView>> to the new StoredView enum and added inherent delegating methods for the neutral view hooks (as_any, ui_name, on_focus, on_blur, keymap_context, active_cursor_position, on_window_closed, on_window_transferred, self_or_child_interacted_with, accessibility_data) — but missed child_view_ids.

The view-subtree transfer logic in AppContext::collect_transferable_subtree (crates/warpui_core/src/core/app.rs:3306) still calls view.child_view_ids(self) on a &StoredView, so the build fails with:

error[E0599]: no method named `child_view_ids` found for reference `&core::window::StoredView` in the current scope

This is a merge-skew regression: the child_view_ids-based transfer walk and the StoredView refactor landed in separate PRs that each passed CI against the old master, but break when combined.

Fix

Add a child_view_ids delegating method to StoredView following the established pattern of the other neutral hooks: forward to the inner AnyView for the Gui variant, and return an empty vec for the Tui variant (consistent with how the other read-only ownership hooks treat TUI views).

Testing

  • cargo check --locked -p warpui_core — compiles cleanly (previously failed with E0599).
  • cargo clippy --locked -p warpui_core --all-targets --tests -- -D warnings — passes.
  • cargo fmt -p warpui_core -- --check — passes.

Agent Mode

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

CHANGELOG-NONE

Conversation: https://staging.warp.dev/conversation/2e780cd2-38f5-436f-9ee9-57d959968777
Run: https://oz.staging.warp.dev/runs/019ee252-a720-7c96-bc86-446bc56a7a34

This PR was generated with Oz.

PR #12633 converted `Window::views` from `Box<dyn AnyView>` to the new
`StoredView` enum and added inherent delegating methods for the neutral
view hooks, but missed `child_view_ids`. The view-subtree transfer logic
in `AppContext::collect_transferable_subtree` still calls
`view.child_view_ids(self)` on a `&StoredView`, so master fails to
compile with E0599 (no method named `child_view_ids`), breaking the
"Formatting + Clippy (wasm)" CI job (and all other targets).

Add a `child_view_ids` delegating method to `StoredView` following the
same pattern as the other neutral hooks: forward to the inner `AnyView`
for the `Gui` variant and return an empty vec for the `Tui` variant
(which has no child-ownership graph), matching how the other read-only
ownership hooks treat TUI views.

CHANGELOG-NONE

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