Repository navigation
Desktop: fix unresponsive audio model selector on macOS - #8718
Conversation
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
b472661 to
b337d49
Compare
|
Thanks for chasing this one down. It was a real bug and your diagnosis was right. The situation changed underneath the PR while it was open, so here is exactly where it stands after I rebased it onto current The bug was realAt this PR's original base (
Two notes on mechanism, for the record. The strip only renders under Tauri on macOS ( It is already fixed on main#8445 ( with After the rebase, this PR is test-onlyI rebased onto current No The remaining test change is worth keeping, and it is stronger than what is on main
It is also stronger than the version in the original PR. That version loosened the check (Audio
Mutation table: the test has teethI re-ran these myself, editing
That third row is the one that matters: with Audio on a grid, the pill wrapper is Full file: RecommendationMerge it, as a test-only change. Your commit is preserved with your authorship; only its source hunk disappeared, because The one thing I would ask is to reword the title and description, since the PR no longer fixes anything: something like "Cover the Audio header in the macOS drag-region contract test", noting that the fix itself shipped in #8445 and this locks it in so it cannot silently regress again. No screenshots for this one on purpose: a browser pair where both sides open the selector proves nothing, since the drag strip is not rendered outside Tauri on macOS. |
The audio page fix itself landed in unslothai#8445, which rebuilt the header as the same 408px grid rail Images uses and gave the band pointer-events-none relative z-40 with pointer-events-auto on the control groups. What that PR did not do was extend test_media_page_headers_out_stack_the_mac_drag_region to the Audio page, so nothing pinned the opt-in: stripping pointer-events-auto off the audio model selector left the whole suite green. Parametrise the loop over the three media pages and match on the pointer-events-auto opt-in alone rather than on one layout's flex utilities. Audio and Images seat their mode pills in a grid cell, so the old "pointer-events-auto flex ... items-center gap-" pattern skipped them silently. Removing the opt-in from any of the five control groups across Images, Video and Audio now fails the test. The inner per-group assertion this replaces was tautological: the regex already required the literal pointer-events-auto that it went on to assert.
b337d49 to
6600f8b
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
On macOS the Audio page's "Select audio model" trigger sits under the navbar's 34px data-tauri-drag-region strip (z-40), so clicks started a window drag instead of opening the picker. #8048 fixed the same bug on the Images/Video pages, but the Audio page (#7984) landed in parallel without that treatment. Apply the same stacking contract pointer-events-none relative z-40 on the header band, pointer-events-auto on the control group and extend.
test_media_page_headers_out_stack_the_mac_drag_region to cover the Audio page so it can't regress silently.