Skip to content

Fix multi-command buttons losing navigation targets in BFS traversal#34

Merged
willwade merged 2 commits into
mainfrom
fix/multi-command-navigation
Apr 20, 2026
Merged

Fix multi-command buttons losing navigation targets in BFS traversal#34
willwade merged 2 commits into
mainfrom
fix/multi-command-navigation

Conversation

@willwade
Copy link
Copy Markdown
Collaborator

Buttons with multiple Grid 3 commands (e.g. Jump.SetBookmark + Jump.To) were only processing the first command due to an early break. This caused pages like "04 ACTIONS - Main" and "06 LITTLE WORDS - Main" to appear as orphans despite being navigable from the home page.

  • Remove early break after first recognized command in the command loop
  • Add if (!semanticAction) guards to all switch cases so the first semantic action wins but subsequent commands still run
  • Ensure Jump.To always sets navigationTarget even when another command already set semanticAction
  • Result: 467/482 pages now reachable (up from ~400), "say" and other action verbs correctly discovered via BFS

willwade and others added 2 commits April 20, 2026 11:50
Buttons with multiple Grid 3 commands (e.g. Jump.SetBookmark + Jump.To)
were only processing the first command due to an early break. This caused
pages like "04 ACTIONS - Main" and "06 LITTLE WORDS - Main" to appear as
orphans despite being navigable from the home page.

- Remove early break after first recognized command in the command loop
- Add if (!semanticAction) guards to all switch cases so the first
  semantic action wins but subsequent commands still run
- Ensure Jump.To always sets navigationTarget even when another command
  already set semanticAction
- Result: 467/482 pages now reachable (up from ~400), "say" and other
  action verbs correctly discovered via BFS

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@willwade willwade merged commit adc3e3d into main Apr 20, 2026
2 checks passed
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