Skip to content

main-broken: id-0.1.0 fails to compile — ClientFrame::Pointer/Hover not covered in id-worlds session matches (blocks amd toplevel) #11208

Closed

Description

@dezren39

Found 2026-11-17 building the amd toplevel from main 57ad2db (after #11016 was fixed): id-0.1.0's build fails in id-worlds (lib) with two E0004 non-exhaustive pattern errors:

  • crates/id-worlds/src/world_session/session_core.rs:18 — the pre-join first-frame match does not cover ClientFrame::Pointer / ClientFrame::Hover.
  • crates/id-worlds/src/world_session/mod.rs:1449 — the joined-session dispatch does not cover them either.

The variants arrived with the #1831 input-interface work (slice S2 types: Pointer is journaled input like Input; Hover is ephemeral like Resize) but no world-side consumer was wired, and the two exhaustive matches were not updated. Nothing else in the tree matches on the new variants yet.

Fix (fail-closed, following the existing shapes): Pointer/Hover join the pre-join refusal group in session_core (same as Input/Resize/Paste: "first frame must be join, invite or install_begin"), and the joined dispatch refuses them explicitly as not yet enabled on this server (same convention as compilation) until the S2 consumers land — never silently dropped. The real S2 handling (journaling Pointer, ephemeral Hover) stays with #1831.

Blocks nixos-rebuild switch from current main (currently holding up dot-ssh user activation, PR #10990). Being fixed now by the #11016 coordinator thread.

Activity

  1. developing-today commented on Nov 17, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Fixed by PR #11231 (merged, merge commit 8fef1ad).

    Root cause: the #1831 slice S2 commit added ClientFrame::Pointer/Hover to the frame enum but no session dispatch, so two match sites in id-worlds failed E0004. Two further stacked breaks from the same refactor churn were folded into the same PR because they blocked the same gate: a use super::* trim breaking two actor.rs test modules, a contract() helper shadowed in the shell-contract tests, a missing server_config_directory_path import in id-cli's serve.rs, and a stale v1.9 contract-version expectation in id-cli's contract-check test.

    Fix shape: pre-join, Pointer/Hover join the joined-only refusal group. Post-join, per the 2026-11-08 input-event-model design (decision 3): Pointer is an activation event — journaled through world.input_from_session with its canonical frame encoding and replayed like keyboard Input; Android secondary-press is refused with the design's NoSecondaryButton reason. Hover is ephemeral — accepted with no journal entry and no replay; on Android it is refused with HoverUnsupported. The contract's executable oracle (the_journaled_vs_ephemeral_boundary_is_what_the_contract_says) passes.

    Verification: cargo test -p id-worlds --lib --features sandbox,ssh 943 passed / 0 failed; nix build .#id-web EXIT=0 (117 test suites ok) on the laptop — pkgs/id compiles and tests green on main again, unblocking the amd switch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions