Skip to content

Fix context-menu spacing and position beside Mist - #10

Merged
mindful-time merged 2 commits into
mainfrom
fix/context-menu-spacing
Oct 8, 2026
Merged

mindful-time merged 2 commits into
mainfrom
fix/context-menu-spacing

Conversation

@mindful-time

@mindful-time mindful-time commented Oct 8, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Make the right-click menu roomier with 32-point action rows, extra button padding, clearer gaps, and a 10-point menu margin.
  • Anchor the menu to the left of the Mist orb with a 12-point gap. Reserve enough viewport space for the menu and the idle or speaking orb, while preserving the orb's screen position.
  • Add rendered layout regressions for row spacing, clipping, and non-overlap, and extend the viewport-position tests.
  • Fix the pre-existing Linux audio-pause test's scheduler-dependent timing assertion without changing production playback behavior.

Validation

  • The local preview was tested interactively; the user confirmed the spacing and left-side placement look good.
  • The normal pre-commit and pre-push hooks passed: formatting, compile checks, strict Clippy, build, Rust and distribution tests, release-version and website checks, coverage-backed CRAP, pinned Smells, OSV, and Gitleaks.
  • Existing non-blocking CRAP warnings and Smells review signals remain visible; no policies, baselines, or suppressions were changed.
  • The revised audio test passed 200 CPU-limited Linux repetitions and a reduced 20-test Linux suite compiling the real audio/controller sources. The full local quality gate passed with all 115 Rust tests, distribution tests, CRAP, Smells, OSV, and Gitleaks.
  • A negative-control mutation replacing the interruptible phase wait with a plain visual-tick sleep made the new regression fail; normal wake-up behavior was restored before committing.

Linux CI failure diagnosis

The unchanged pause test failed in the initial PR CI run because its 20 ms assertion measured the observer thread's wall-clock scheduling as well as pause delivery. A Linux trace reproduced SIGSTOP being requested in about 0.1 ms but observed about 95 ms later. A deliberate 50 ms observer delay reproduced the same false failure without CPU contention. Rust's condition-variable documentation warns against using waits for precise timing under preemption.

The regression now checks the actual contract: a real player process must stop before an injected visual-sampling wait expires. The 2-second process-stop watchdog is shorter than the 5-second test interval, so a monitor that merely polls or sleeps until the next visual tick cannot pass. It also checks cancellation reaps the child. Production still supplies the same 40 ms interval; the controller's notification/synchronization logic and native pause signals are unchanged. This replaces an invalid timing oracle rather than increasing its millisecond cutoff.

Scope

Menu layout plus a scheduler-independent regression test for the pre-existing Linux CI pause-test failure. Existing menu actions, speech, and permission behavior are unchanged. This PR does not change the version or replace any published release.

Mindfultime added 2 commits October 8, 2026 15:18
Anchor the menu beside the orb and reserve enough viewport space to avoid the pointer-positioned popup covering it. Preserve the orb screen position and existing menu actions.

Add rendered layout regressions for row spacing, clipping, and non-overlap at idle and speaking sizes. The updated local preview was visually accepted by the user.
The Linux CI failure timed the observer thread, not just pause delivery. Reproduce the false failure with a delayed observer and CPU-limited Linux stress. Verify a real SIGSTOP before an injected visual wait expires, including child reaping, while production keeps its 40 ms sampling interval. The test rejects a sleep/polling negative control. No timing threshold, quality policy, or CI/security gate is loosened.
@mindful-time
mindful-time merged commit f0646a4 into main Oct 8, 2026
7 checks passed
@mindful-time
mindful-time deleted the fix/context-menu-spacing branch October 8, 2026 15:43
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