Skip to content

test: verify panel fade reopen keyboard lifecycle - #16182

Draft
Gberfield wants to merge 4 commits into
omacom:quattrofrom
Gberfield:test/panel-reopen-keyboard-acceptance
Draft

Gberfield wants to merge 4 commits into
omacom:quattrofrom
Gberfield:test/panel-reopen-keyboard-acceptance

Conversation

@Gberfield

@Gberfield Gberfield commented Oct 21, 2026 •

Copy link
Copy Markdown

Current validated test-only revision

Head 2ca10f3 changes only the fade fixture and its acceptance guide. Production shell, commands, shared helpers, the original panels assertion, timeouts and the single-Escape requirement are unchanged. Keep draft: this corrects one demonstrated fixture-ordering problem, not every historical timing/input failure.

The previous 25 ms reopen timer could request focus again before Qt reported release. Qt defers its activation notification until a Wayland sync and can combine leave/enter for the same window into unchanged Window.active; the fixture then withholds its only Escape while waiting for a transition it prevented itself from observing. A retained candidate failure has leave/enter only 63 microseconds apart and no native Qt activation transition; a separate retained baseline failure has no transmitted None request before reopening. The installed Qt 6.12.0-3 library's actual handleWaylandSync and requestWaylandSync instructions confirm the focus-window equality check and pending-sync reuse. This supports the ordering mechanism; it is not a complete distro-source equivalence or exact server-processing proof.

The fixture now observes release before requesting reopen, using a queued callback instead of the fixed 25 ms timer. It must still be within the real mapped fade. Fresh reactivation gates the one Escape, and every existing actual-delivery, focused-catcher, prime-state, retained-mapping, close and final-unmap assertion remains intact. No additional sleep, repeated key or longer timeout is added.

Bounded validation, October 23

Approved fresh disposable guest, x86_64, Quickshell 2b4501a / Qt 6.12 / Hyprland 0.56.2. All 5,197 committed entries, executable modes and symlink targets match the tested standalone source. The commit was created from those bytes afterward; the pre-commit marker is not claimed to have executed a later-created commit.

Whole-shell case Actual early / late Escape Result
Candidate ordinary, no added trace/observer 50 / 141 ms Both pass
Same candidate with separately labeled sampled capture 30 / 155 ms Both pass
Candidate fixture on the 5,233-entry combined related-PR runtime 39 / 144 ms Both pass

Each passing case has positive 140 ms fade, retained mapping, observed release/reacquisition, one Escape, correct actual prime state, active/focused catcher, logical close and final unmap. A separate negative control delays reopen beyond the fade: it fails with panel unmapped before fade reopen, retainedMapping=false and zero Escape. This rejects a full unmap/remap as a passing fade case. The unchanged strict head 93cb7b7 also passes both cases in this fresh guest; no new ordinary-baseline failure reproduction is claimed.

The combined runtime additionally passes the unchanged ordinary panels file with its separate OCR dependency and session health. The Tab smoke assertion only establishes that a panel stays open; before/after captures remain Bluetooth, not proof of cross-panel switching. Four existing focused readiness checks pass. The unchanged context/harness checks and earlier aggregate controls are reused; no full aggregate was rerun for this fixture-only change. The prior combined aggregate remains red on Hermes live-lock-cwd, also reproduced on pristine upstream, with 47 files containing skips.

The 24-frame sampled capture has 448 ms median / 552 ms maximum intervals; all frames were inspected and a variable-timestamp video retained. Black frames during configuration reload are retained. This does not establish smoothness of a 140 ms animation. wf-recorder is absent; no recorder was installed or unsupported high-frame-rate claim substituted. Native tracing and earlier custom-binary results below remain separate. Full graphical-suite, fresh-ISO, physical-display, mixed-DPI, hardware and all historical capture-failure explanations remain unfulfilled.

Final task export: 36,796 entries / 2,411,832,482 uncompressed bytes, independently verified with zero missing entries or mismatches. Archive SHA-256 1cf0c20737a46eadf7b2e35793b9fccd2fb0bad7df7e077d5edbd73d119d0810. Task-only sources, recipes, failures, diagnostics, captures and restoration receipts are retained locally; no whole-VM snapshot or external authentication directories are included. Active logs are a pre-shutdown snapshot. The approved guest and exact viewer are stopped, its overlay is removed and all four owned ports are closed; retained base and firmware hashes are unchanged.

The first export used incorrect tar option ordering and produced an invalid 80-byte archive; it is retained. Original per-member stderr was tool-truncated and is not claimed intact; expected names and the failure summary are retained. Corrected transfer stderr is empty and every corrected member verifies. Two initial symbol-name disassembly lookups yielded no instructions and are retained; the accepted inspection uses exact symbol address/size ranges. No such tooling failure counts as acceptance.

Current translation run 39971368803 is action_required with zero jobs, awaiting upstream approval. No workflow approval/rerun, merge or ready transition was attempted. The separate monitor cleanup failure remains unexplained in draft #16362.

Historical investigations at 93cb7b7 and preceding revisions — retained failures and limits

The following records describe their named historical revisions. Earlier statements that no correction was justified are superseded only for the narrow fixture-ordering correction above. Historical failure observations remain valid; later passes do not erase them.

Final combined validation, October 22

The combined current-upstream runtime 5fe4f958 passes both original real-fade cases with positive 140 ms fades, retained mapping, one Escape, correct before/after-prime coverage and final unmap. It also passes the unchanged strict panels file with the separate OCR dependency. These are combined-source results, not a standalone unchanged-head full-suite pass. The Tab assertion only checks that a panel remains open; retained before/after images both show Bluetooth. It does not prove cross-panel Tab switching, and no production navigation defect is established from it.

The final shared-helper offscreen aggregate, before later test-only consolidation, passes CLI but fails one of 484 shell files: Hermes live-lock-cwd. That failure also occurs once on fully verified pristine 967bbdd7 using the same actual /tmp setup. Forty-seven files contain skips (48 skipped checks). A collector error rejected .code status files after execution; complete outputs/statuses were recovered without rerunning tests, but original elapsed time is unknown. A separate combined monitor cleanup failure remains unexplained in draft #16362 despite later diagnostic passes. These results neither erase the historical readiness/capture failures below nor justify a production focus correction. Keep draft.

October 22 follow-up on unchanged head 93cb7b7

Keep draft. No production correction is justified by the following bounded comparisons, and the failed test-only proposal was not pushed.

  • Fresh installed, matched custom-control and custom-candidate Quickshell arms each pass both original positive-fade cases (six cases total). The normal panels file fails earlier at visible Weather WIND OCR in all three arms; those runs do not reach its original Escape assertion.
  • A separately labeled native observer records Qt window, focused-item and QML-handler boundaries. Six of eight cases pass: both activation-gated early cases fail without sending Escape; both gated late and both scheduled early/late cases pass. The observer and sender change timing. The custom binaries were built with the guest toolchain, not as native distribution packages; upstream CTest has the same popupwindow failure in both builds (8/9 pass).
  • A fixture-only proposal schedules one Escape without waiting for activation. Its unit checks pass, but its uninstrumented graphical early case fails the existing window-active/reactivation assertions despite closing at 27 ms. An instrumented diagnostic passes. That proposal remains unpublished; assertions and timeouts were not weakened.
  • An uninstrumented matrix passes 18/18 on installed, control and candidate binaries: animations off/on, first open, immediate reopen and fully unmapped reopen. Each arm binds exact executable, mapped-library admission, PID/start ticks and whole source; animation settings are restored.
  • With only the proposed OCR segmentation fallback applied to the exact 5,197-file head, the unchanged strict panels file passes, including WIND, its existing Tab smoke assertion and its original Escape assertion. This is a dependency-overlay result, not a standalone unchanged-head suite pass. The OCR helper follow-up is separate from any production focus change.

Mapped-library admission initially rejected a cache data file and then 11 unknown modules before input. The cache classifier was corrected with negative controls; all 11 public module files were independently matched against the retained base before admission. Unknown, changed and deleted modules remain refused. Initial temporary-storage staging failures and all failed cases are preserved. Native/control evidence through run 32 has an independently verified 483-file archive; later matrix, dependency-overlay and combined evidence is now included in the independently verified final task export (140,240 entries; zero missing files or mismatches; archive SHA-256 5d194711fb694630a3e87293175c25c8c01ba13e31c74da5136842e8a8a282f2). The approved follow-up guest and viewer are stopped, overlay removed, owned ports closed, and retained base/firmware fingerprints unchanged. No full graphical-suite, fresh-ISO, physical-display or high-frame-rate animation acceptance is claimed.

The current-head translation workflow 39651221186 is completed with conclusion action_required and zero jobs. It needs upstream contribution approval; this is not a test execution failure or a passing CI run.


The immediate hide/re-summon Escape assertion does not establish a fade reopen: disabled animations or IPC latency can bypass the fade. Keep that assertion unchanged and add a separate test-only plugin inside the complete running shell. A further first-run investigation established that an active Qt focus target and a previously active window are insufficient input-readiness evidence during reopening.

The fixture uses the real KeyboardPanel and PanelKeyCatcher, verifies positive fade duration and retained backing-window mapping without an intervening unmap, and sends one Escape in each before/after-focus-prime case. It now requires a fresh Qt window deactivate/reactivate handoff after closing before releasing scheduled input. A stale active flag cannot release Escape. Missing reactivation or missed early-prime coverage fails the test; actual key arrival must still meet its original coverage assertion. This is an event-driven readiness correction, with no additional fixed sleep, repeated Escape, or longer timeout. Window activity is not a substitute for compositor ownership traces.

The test rejects unexpected layer surfaces and retains separate evidence per test. Each fixture load uses a unique directory URL with the original QML filename. Cleanup attempts all restoration steps, restores/verifies effective animations and the shell cache, restores shell configuration, removes the plugin, and retains recovery preimages on failure. Add 12 offline context/evidence checks, 10 offline harness checks and 4 source-executed JavaScript readiness checks; these do not prove graphical timing.

Acceptance-only work, separate from #16095 and #16028. Production shell, commands and configuration are unchanged. The original panels-test.sh assertion, sleep and timeout are unchanged. No production focus correction is proposed, and no regression attribution to #16095 is established.

Source: base 087f73d899b456ce5275ebf27294d379585fbdb1; commits 611a4e6be52304af52473bf6ba7be0406a5d94ee, 9ad612419df2fcd2bac490f0f97df580af2df470, and 93cb7b74747171c9869d4b47087cddaaf6641fac.

Current-head check Executed result
Bash syntax, source-resolved ShellCheck, diff check Pass
Focused offline checks 26 pass; semantic failing readiness control retained
Fresh whole-shell, ordinary uninstrumented candidate Both real-fade cases pass; retained mapping, one Escape, correct prime state, logical close and final unmap
Matched diagnostic sender / filtered parent protocol trace Both candidate cases pass at 73/152 ms actual key arrival, before/after prime respectively; same diagnostic setup reproduced failure on preceding head
Missing activation acknowledgment mutation Outer 15-second timeout with pending input, no activation acknowledgment, zero Escape; fails closed and plugin cleanup verified. No extra wait to obtain a QML failure phase
Sampled screen capture, ordinary candidate FAIL: no activation acknowledgment, window inactive, pending input, zero Escape. Retained as unresolved graphical/timing limitation
Sampled screen capture plus parent tracing FAIL: one Escape closes panel, but early case arrives at 96 ms after prime. Original coverage assertion rejects it
Separately scoped late-only capture Pass at 159 ms, primed, one Escape, retained mapping and final unmap. This does not replace either failed early capture or both-case acceptance
Original unchanged panels-test.sh after late-only capture Pass, including “Escape closes a panel reopened during fade”
Final offscreen test/all CLI passes; 8 of 470 shell files fail; skips in 45 files. Aggregate is not green

The eight established exact-base failure matches remain camera, default-agent, default-apps, elsewhen-migration, hermes-skin-migration, i18n, omasnap and provision-user. Earlier review variability on t3code-install, emojis and windows-vm-compose remains separately retained; it is not folded into those eight or attributed to this patch. Earlier source-mutation and animation-restoration evidence from 9ad6124 remains retained separately.

Keep draft: unresolved first-run / capture behavior. Cold ordinary 9ad6124 passed in this investigation, while the retained earlier review snapshot reproduced its uninstrumented zero-Escape failure. Diagnostic current-head failures show two distinct boundaries: one has submitted virtual input but no panel-client Escape; another records Escape at the Qt Wayland client while Qt activation notification is still pending, with no fixture Escape handler response. forceActiveFocus() ran in a separate diagnostic failure. Client receipt timestamps do not establish exact compositor processing order. The fresh-activation gate addresses a demonstrated test-readiness defect; it is not proof of a production fix, explanation of every historical failure, or robust first-run acceptance. Capture failures above remain visible.

Historical baseline 3ac43659dcbf88e84d951e3ce979b48a60a7d1f2, its unchanged-assertion failures, and separate Exclusive-polkit interception evidence remain in the investigation; they are not replaced by these current-head timing results. The retained earlier review snapshot is not that historical baseline. Initial-map, fully-unmapped and animation-disabled diagnostic controls are also distinct from real-fade acceptance.

Guest: Quickshell 0.3.2.r7.g2b4501a-1, Qt 6.12.0, Hyprland 0.56.2-4, wtype 0.4-2. All 5,197 files of the actual complete uninstrumented runtime match committed candidate source, including resolved symlink content; a single Quickshell instance loaded /tmp/panel-first-run-activation-candidate/shell/shell.qml through the guest compositor. This uses a retained installed base and whole-runtime copy, not fresh-ISO acceptance. A recreated external login-shell PATH wrapper was verified, but the earlier unretained wrapper cannot be compared. The diagnostic sender is built from upstream wtype v0.4 with request/ack timestamps, not the exact installed package build. Diagnostics and recording perturb timing.

Failed/successful sampled captures and the Bluetooth screenshot were inspected; the successful capture includes black frames during configuration cleanup. Full graphical suite, cloud, fresh ISO and physical desktop acceptance were not executed. Evidence, failed/invalid attempts, source manifests and captures are retained locally. No merge or ready-for-review transition is requested.

Fresh disposable-guest comparison, October 21, 2026 (93cb7b74747171c9869d4b47087cddaaf6641fac, no further source changes):

Cold whole-shell arm Early / late actual Escape arrival Result
Ordinary, no added observer 52 / 143 ms Both pass
Ordinary, matched observer, capture off 34 / 144 ms Both pass
Ordinary, matched observer, capture on 43 / 214 ms Both pass
Fixture-only diagnostic, capture off 48 / 143 ms Both pass
Same diagnostic, capture on 76 / 142 ms Both pass

All ten valid fixture trials retained mapping through the measured reopen, verified 140 ms fade, received exactly one Escape with the intended actual prime state, closed and finally unmapped. Prime coverage uses the actual focusPrimed state at key arrival; the 76 ms case was still unprimed when its key handler ran. Matched observers share phase polling and cadence; only capture-on calls grim. Filtered client traces record keyboard leave/enter for the identified panel surface, interactivity requests plus associated transmitted surface commits, and two Escape press/release pairs per diagnostic arm. Qt journals record fresh activation before input and eventual close/unmap. These are compositor-announced ownership/client receipt observations, not exact compositor processing timestamps.

The original unchanged panels-test.sh also passes after restoring the committed whole runtime. All 5,197 file hashes verified before/after each valid arm and finally; only the declared diagnostic fixture differs in diagnostic copies. Animations restored to false. Versions remain as above. One earlier capture-on attempt also passed but is excluded from the comparison because an artifact copy overlapped it; its logs and the partial-copy error remain retained. Valid pair runs had no concurrent artifact copying. A derivative video read during final collection produced a decode error and is excluded; both stable raw captures were subsequently validated as 160 complete frames and reconverted with error-fatal decoding. Contact sheets and the original Bluetooth screenshot were inspected; ordinary cleanup includes black frames.

No missing-activation or early-coverage failure reproduced in this bounded comparison. The earlier failed capture's screenshot calls were slower (70 ms median / 728 ms maximum) than this clean ordinary capture (32 / 125 ms), but this does not establish causation or resolve the earlier failures. No new production or fixture correction is justified by these passing runs. Prior aggregate/baseline evidence is reused unchanged, not claimed as rerun here. Full graphical/cloud/fresh-ISO/physical acceptance remains unexecuted. Keep draft. The approved disposable guest was removed after final evidence collection; base/firmware hashes are unchanged, owned ports closed, and no other desktop or PR was changed.

@Gberfield

Copy link
Copy Markdown
Author

Fresh bounded follow-up on unchanged head 93cb7b74747171c9869d4b47087cddaaf6641fac, in a new disposable overlay of the retained installed Omarchy ISO:

  • The complete selected shell was launched through the guest compositor, with PID 98561/start163115 and the exact runtime path bound to startup. All 5,197 committed file contents match the actual whole runtime before/after. No added protocol tracing or concurrent artifact copying during these trials.
  • The real panel-reopen-test.sh passed both cases: actual Escape arrival 42 ms before prime and 129 ms after prime, positive 140 ms fade, retained mapping, fresh activation loss/gain, exactly one Escape each, logical close and final unmap. Animation cache restoration reached fadeDuration 0 and the temporary plugin was removed.
  • The original panels-test.sh failed earlier at weather location is visible because screen_contains SAN FRANCISCO timed out. Its unchanged Escape assertion was not reached. The saved image was inspected and the label is visible; this remains the separate OCR case addressed by test: avoid false failures in desktop OCR checks #12828.
  • The 12 context, four readiness and 10 harness offline checks pass. The earlier aggregate and historical capture/activation failures remain retained, not replaced by this bounded success.

Keep draft. This run does not establish robust first-run acceptance, explain the historical timing failures, or justify a production focus change. No source change, merge or ready-for-review transition was made. Full graphical/fresh-ISO/physical acceptance is not claimed.

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.

1 participant