Skip to content

id-worlds: cover ClientFrame Pointer/Hover in the session matches (#11250) - #11298

Closed
dezren39 wants to merge 1 commit into
mainfrom
queue/20758-11250-id-worlds-compile
Closed

dezren39 wants to merge 1 commit into
mainfrom
queue/20758-11250-id-worlds-compile

Conversation

@dezren39

@dezren39 dezren39 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Fixes #11250

What was wrong

origin/main did not compile: the #1831 S2 input variants ClientFrame::Pointer and ClientFrame::Hover were added to the wire enum (with parsing and shell-contract coverage) before the session dispatch learned them, leaving two matches non-exhaustive (E0004):

  • world_session/session_core.rs:18 — the first-frame match in run_world_session
  • world_session/mod.rs:1449 — the joined-session dispatch in handle_client_frame

This also blocked PR #11259.

The fix

  • First frame: Pointer and Hover join the existing joined-session-only group (with Input, Resize, Paste, …) and are refused as first frames exactly like that group.
  • Joined session: both frames are answered with the design's explicit refusal frame — ServerFrame::InputRefused, "never silently dropped" (Proof-of-concept Android app + input interface extension (touch, mouse, hover) for relaying into live apps #1831 S2 refusal table):
    • Pointer → NotDeclaredByApp: the world advertises pointer: false in its input declaration, so no app can declare pointer input yet; journaling like Input starts when the world consumes pointer events.
    • Hover → HoverUnsupported: hover is connection-local presentation context this host does not support yet.
    • The event names ride two small helpers (pointer_event_wire, hover_event_wire) returning the serde snake_case forms.

No behavior change for any previously covered frame.

Verification

  • cargo check -p id-worlds passes (the one warning touching these files — FormResult unreachable in the group — is pre-existing). This is the issue's stated acceptance.
  • cargo test -p id-worlds cannot build its test target on current main for a pre-existing, unrelated reason: world/actor.rs's #[cfg(test)] module references Request/CapError that are not in scope (E0425, lines 3270+). That breakage is independent of this change (this diff touches only world_session/{mod,session_core}.rs) and was found independently by lane code-c's re-verify under task 20651; it is not fixed here.

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…1250)

The #1831 S2 input variants reached the wire (parsing, shell contract)
before the session dispatch, leaving two matches non-exhaustive and
main uncompilable:

- session_core's first-frame match: Pointer and Hover join the
  joined-session-only group next to Input/Resize/Paste, refused as
  first frames like the rest of that group.
- handle_client_frame's joined dispatch: both frames are answered
  with the design's explicit refusal frame, never silently dropped.
  Pointer takes NotDeclaredByApp (the world advertises pointer:false;
  no app can declare pointer input yet, and journaling starts when
  the world consumes pointer events); Hover takes HoverUnsupported.
  The InputRefused event names ride two small wire-name helpers.

No behavior change for any previously covered frame.
@dezren39
dezren39 requested a review from a team as a code owner November 17, 2026 12:56
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-17T12:56:21.439806Z
We couldn’t complete this review. Comment @codex review to try again.
9c9506b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 49 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ae45afbd-3ef6-42f1-b1c1-cdf5788782a7
Commits

Reviewing files that changed from the base of the PR and between 8aa55fa and 9c9506b.

Files selected for processing: 2

  • pkgs/id/crates/id-worlds/src/world_session/mod.rs
  • pkgs/id/crates/id-worlds/src/world_session/session_core.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39

Copy link
Copy Markdown
Member Author

Closing as superseded: while this PR was in flight, the fuller #1831 S2 dispatch landed on main in commit 02297ef ("fix(id-worlds): cover ClientFrame::Pointer/Hover in session dispatch (#11208, #1831 S2)") — Pointer journaled through the input path with the Android secondary-press refusal, Hover accepted except Android (HoverUnsupported), plus the same first-frame group coverage. Verified independently: cargo check -p id-worlds passes on origin/main 8aa55fa. This PR's blanket-refusal arms would now conflict with and regress that behavior, so it is closed without merging. Task 20758 completes as already_done.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

main-broken: developing-today/code id-worlds fails to compile — ClientFrame Pointer/Hover not covered in world_session matches (#1831 S2 fallout)

1 participant