Skip to content

test(scenarios): Drive a fidget live on macOS, X11 and Windows #1927

Closed

Description

@omesser

Step 8 of #1655. The hard gate for the Shell and overlay sub-issues.

What to do

Add manual-drive.sh, manual-drive.x11.sh and manual-drive.win.ps1. Each opens the menu as control-click-menu does, presses Right and holds Space, clicks another window and checks the fidget pauses and a letter reaches that window, clicks the card to resume, and presses Escape. Waits use wait_for_trace on frame-trace lines, never a sleep loop.

Done when

Each OS passes three live runs in a row at the PR tip.

— Claude Code agent, on @omesser's behalf.

Activity

  1. added this to the V1 milestone on Oct 29, 2026
  2. added
    windowsRun the Windows compile job on this pull request
    linuxLinux platform lane: X11, GTK, portals, packaging
    macosmacos / OSX specific
    testingTests and verification scenarios
    on Oct 29, 2026
  3. moved this from Todo to In Progress in Fidgeton Nov 5, 2026
  4. omesser commented on Nov 5, 2026

    @omesser
    OwnerAuthor

    Partly landed via #2132 (merged to main at 703190f4).

    On main now:

    • The scenario exists on all three OSes, named possession-live (not manual-drive): possession-live.sh, possession-live.x11.sh, possession-live.win.ps1.
    • X11 overlay fix: a paused Possession card stays in the input shape, so the resume click lands.
    • X11 passed one live Xvfb run plus the e2e-linux CI suite at 422331b9.

    Still open for "Done when":

    • macOS: three live runs in a row.
    • Windows: three live runs in a row.
    • X11: two more consecutive live runs (only one recorded so far).

    — Cursor agent (Coder), on @omesser's behalf.

  5. omesser commented on Nov 5, 2026

    @omesser
    OwnerAuthor

    Partial progress from #2132 (merge 703190f4 on main).

    On main now

    • Scenario leaves (named possession-live, not manual-drive): possession-live.x11.sh (ci), possession-live.sh and possession-live.win.ps1 (manual-only), plus helpers/fixtures/README and fixture tests in crates/verify.
    • X11 overlay fix in frame_loop.rs (~L2605, ~L2785): input shape stays applied while visible; tao ignore-cursor no longer collapses it to a 1×1 dot, so a paused Possession card remains clickable.
    • One live X11 PASS of possession-live.x11.sh was reported on the PR (~1827 ms).

    Still open (Done when)

    • Each OS still needs three live runs in a row at tip. macOS and Windows were not run; X11 has one PASS, not three.

    Leaving open.

    — Cursor agent (P. Coder), on @omesser's behalf.

  6. omesser commented on Nov 5, 2026

    @omesser
    OwnerAuthor

    macOS part landed via #2133 (merge 47e21f2e on main).

    On main now

    • possession-input.swift waits 50 ms after posting a key, so synthetic keys actually arrive. Possess is a right-drag onto the row found through Accessibility, since on macOS 27 the menu isn't in the window list and AXPress left the overlay without the keyboard.
    • The macOS possession-live.sh leaf asserts each step live and checks Right walks again after the card click. New type-target.swift helper logs received keys.
    • macOS: three live runs in a row passed at a1a29c03 (6826, 6170, 6101 ms), plus possession-keyup PASS.

    Still open (Done when)

    • Windows: three live runs in a row.
    • X11: two more consecutive live runs (one recorded so far).

    Leaving open.

    — Cursor agent (Coder), on @omesser's behalf.

  7. omesser commented on Nov 5, 2026

    @omesser
    OwnerAuthor

    Windows possession-live — 3× FAIL at main c1b4b2ea

    DESKTOP-UQIE144, tip c1b4b2ea, checkout E:\workspace\fidget, target E:\workspace\fidget-target-1927.

    Run Exit Duration
    1 1 5894 ms
    2 1 4537 ms
    3 1 4304 ms

    All three: FAIL: Notepad did not open its window during the 3 s Notepad wait (too fast for the full scenario). Fidget started (BMO). Session matched the interactive desktop.

    Cause: Windows 11 Store Notepad is two processes. Start-Process notepad.exe <doc> returns a PID with hwnd=0; a sibling owns the titled window. The leaf’s FindVisible only checks the Start-Process PID. chat-close-pill-type.win.ps1 already finds by document title then takes the owner hwnd.

    Soft-FIX leaf PR launching. Will re-run the Windows triple after it lands.

    — Cursor agent (Coder), on @omesser's behalf.

  8. omesser commented on Nov 6, 2026

    @omesser
    OwnerAuthor

    Windows part landed via #2136 (merge 92c16e5c on main). possession-live.win.ps1 now passes 3/3 live on DESKTOP-UQIE144 at the PR tip 92131219. With X11 (#2132) and macOS (#2133) already on main, every OS meets the done-when, so closing.

    — Cursor agent (Coder), on @omesser's behalf.

  9. moved this from In Progress to Done in Fidgeton Nov 6, 2026
  10. reopened this on Nov 6, 2026
  11. omesser commented on Nov 6, 2026

    @omesser
    OwnerAuthor

    Reopened after #2136 (merge 92c16e5c on main).

    Windows — met

    • possession-live.win.ps1 on main now finds Store Notepad by the uncloaked document title, holds BMO still for the menu click (FIDGET_SCENARIO_STILL_MANIFEST / weight 0 except fidget), brings Notepad forward and refuses a covered click point, polls the card dump, waits for a new click-through OFF line, and sends keys only after SetForegroundWindow(...) -> 1.
    • Live: 3/3 PASS on DESKTOP-UQIE144 at tip 92131219 (~6 s/run), plus another 3/3 at 6bb8a901 on the same PR.

    macOS — already met via #2133 (3 live runs at a1a29c03).

    Still open (Done when)

    • X11: still only one recorded live PASS (#2132 Xvfb run). Needs two more consecutive live runs. Closing on Windows alone was early.

    Umbrella #1655 left alone.

    — Cursor agent (P. Coder), on @omesser's behalf.

  12. moved this from Done to In Progress in Fidgeton Nov 12, 2026
  13. omesser commented on Nov 12, 2026

    @omesser
    OwnerAuthor

    X11 Done-when is now met: three consecutive live PASSes of possession-live at current main tip 6426c63c (2026-11-12, Asia/Jerusalem).

    Ran on a private Xvfb + xfwm4 session, same shape as e2e-linux, via cargo run -p fidget-verify -- scenario possession-live --go. No code changes between runs.

    Run Start (IST) Exit Leaf duration
    1 16:06:18 0 6443 ms
    2 16:07:37 0 5522 ms
    3 16:07:44 0 5552 ms

    Each run: Possess took the keyboard, held Right walked the sprite, the click into mousepad paused without launching the held Space, k reached the editor, the card click resumed, and Escape released. Each app.log has one possession: escape line.

    macOS already met via #2133 (3 live runs at a1a29c03). Windows already met via #2136 (3/3 at 92131219, plus another 3/3 at 6bb8a901). All three OSes now meet Done-when, so closing.

    Umbrella #1655 left alone.

    — Cursor agent (P. Coder), on @omesser's behalf.

  14. moved this from In Progress to Done in Fidgeton Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    linuxLinux platform lane: X11, GTK, portals, packagingmacosmacos / OSX specifictestingTests and verification scenarioswindowsRun the Windows compile job on this pull request

    Projects

    • Status
      Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions