Skip to content

Read the dock's menu settings once per menu batch - #15378

Closed
yamz8 wants to merge 1 commit into
omacom:quattrofrom
yamz8:dock-menu-guard-readers
Closed

yamz8 wants to merge 1 commit into
omacom:quattrofrom
yamz8:dock-menu-guard-readers

Conversation

@yamz8

@yamz8 yamz8 commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Trigger > Appearance > Dock has six rows whose guards read $(omarchy-dock autohide) or $(omarchy-dock position), so each row forked its own reader. Both are now listed in GUARD_READERS, so the guard batch runs each once and the rows read the captured answer. Both forms are read-only when given no value.

menu-guards-test.sh caught this: "guard readers cover every command the shipped menu reads from more than one row" has failed since #15263 added the dock rows.

test/shell.d/menu*-test.sh and ./test/cli pass.

🤖 Generated with Claude Code

The Appearance > Dock rows ask omarchy-dock for its auto-hide and position
settings from six rows, so each forked its own reader. List both as guard
readers so the batch answers them once, as menu-guards-test.sh requires.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yamz8

yamz8 commented Oct 14, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #15386.

@yamz8 yamz8 closed this Oct 14, 2026
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