Skip to content

fix: retry right-click context menu for flaky GWT interactions#26

Merged
milldr merged 1 commit intomainfrom
fix/quick-add-context-menu
Mar 13, 2026
Merged

fix: retry right-click context menu for flaky GWT interactions#26
milldr merged 1 commit intomainfrom
fix/quick-add-context-menu

Conversation

@milldr
Copy link
Owner

@milldr milldr commented Mar 13, 2026

What

Adds a retry loop (up to 3 attempts) around the right-click → context menu detection in all three commands that use it: quick-add, log-food, and add-custom-food. Between retries, dismisses stale state with Escape + click-away and waits 1s for the GWT app to stabilize.

Why

Cronometer's GWT-based UI intermittently fails to show the context menu after a right-click, causing quick-add (and other commands) to fail with "Context menu did not appear after right-clicking". A single retry attempt is insufficient for a flaky UI interaction — 3 attempts with cleanup between each makes this robust.

Ref

Reported via CLI: crono quick-add -p 1 --meal Dinner → "Context menu did not appear after right-clicking Dinner"

@milldr milldr added bug Something isn't working patch Bug fix - bumps patch version labels Mar 13, 2026
@milldr milldr merged commit d594a16 into main Mar 13, 2026
3 checks passed
@milldr milldr deleted the fix/quick-add-context-menu branch March 13, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working patch Bug fix - bumps patch version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant