The at menu marks the at server while it rests on a success, so Win's summon can close it (ATT-45) #195

Merged
merge-queue merged 2 commits from att-45-menu-done into main 2026-11-29 10:28:29 -08:00
Owner

Work package: https://openproject.home.romaine.life/wp/ATT-45

Asked: when Win summons at-terminal and the at menu is still showing a pick that succeeded, the summon should close the menu. Ctrl+Win becomes the rare shortcut that leaves it open. at-tmux does the closing in its Win binding. This PR is how at-tmux knows the menu is resting on a success.

Added:

  • @at-menu-done, a server option on the at server. While the popup's panel shows a green result, it holds the popup's --client. A green result is a quick pick that exited 0, with or without output, a link opened, or the menu synced or its cache cleared. These clear it:
    • a pick starting
    • a red result
    • any key or click in the menu (fzt-terminal's new Live.OnInput)
    • the popup exiting
    • a new popup starting, so a popup that was killed leaves nothing behind
  • doneMark: runs the tmux set -s / set -su calls in order on their own goroutine, so the menu never waits on tmux. Only a change reaches tmux; typing with the mark already clear makes no call.
  • showPanel: the one path for the popup's one-line panel results, so every result also updates the mark.

What it changes in behaviour: SHELL-247 said the popup never closes on its own. That still holds, except that Win's summon now closes it when it rests on a success. Escape, a red result, a running pick and Ctrl+Win leave it as before.

Left alone: the menu, the picks, the panel text, the takeover path and the non-popup menu.

Tests: TestPanelSaysWhenItRestsOnASuccess (success, failure, sync), TestDoneMarkTellsTmuxOfChanges (cleared first and last, a change only, the client named), TestDoneMarkRetriesAFailedCall. ci-check: all passed. The at-tmux side is the companion PR for the Win and Ctrl+Win bindings. Either can land first: a mark with no binding does nothing, and a binding with no mark closes nothing.

🤖 Generated with Claude Code

Work package: https://openproject.home.romaine.life/wp/ATT-45 **Asked:** when Win summons at-terminal and the at menu is still showing a pick that succeeded, the summon should close the menu. Ctrl+Win becomes the rare shortcut that leaves it open. at-tmux does the closing in its Win binding. This PR is how at-tmux knows the menu is resting on a success. **Added:** - `@at-menu-done`, a server option on the at server. While the popup's panel shows a green result, it holds the popup's `--client`. A green result is a quick pick that exited 0, with or without output, a link opened, or the menu synced or its cache cleared. These clear it: - a pick starting - a red result - any key or click in the menu (fzt-terminal's new `Live.OnInput`) - the popup exiting - a new popup starting, so a popup that was killed leaves nothing behind - `doneMark`: runs the `tmux set -s` / `set -su` calls in order on their own goroutine, so the menu never waits on tmux. Only a change reaches tmux; typing with the mark already clear makes no call. - `showPanel`: the one path for the popup's one-line panel results, so every result also updates the mark. **What it changes in behaviour:** SHELL-247 said the popup never closes on its own. That still holds, except that Win's summon now closes it when it rests on a success. Escape, a red result, a running pick and Ctrl+Win leave it as before. **Left alone:** the menu, the picks, the panel text, the takeover path and the non-popup menu. **Tests:** `TestPanelSaysWhenItRestsOnASuccess` (success, failure, sync), `TestDoneMarkTellsTmuxOfChanges` (cleared first and last, a change only, the client named), `TestDoneMarkRetriesAFailedCall`. ci-check: all passed. The at-tmux side is the companion PR for the Win and Ctrl+Win bindings. Either can land first: a mark with no binding does nothing, and a binding with no mark closes nothing. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Any key or click in the at menu clears its success mark (ATT-45)
All checks were successful
Suite default / check-fetches (pull_request) Has been skipped
Suite release / build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite go / check-services (pull_request) Has been skipped
Suite release / scope (pull_request) Successful in 31s
Suite release / finalize (push) Has been skipped
Suite release / reused-checks (push) Has been skipped
Suite release / publish (push) Has been skipped
Suite release / home-sync (push) Has been skipped
Suite release / deliver (push) Has been skipped
Suite release / deploy-image (push) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite default / check-logs (pull_request) Successful in 34s
Suite release / check-package (pull_request) Has been skipped
Suite go / scope (pull_request) Successful in 29s
Suite release / module (pull_request) Has been skipped
Suite release / check-build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Has been skipped
Suite release / home-sync (pull_request) Has been skipped
Suite default / scope (pull_request) Successful in 27s
Suite release / reserve (pull_request) Has been skipped
Suite release / deliver (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite go / check-test-linux (pull_request) Successful in 58s
Suite default / check-rules (pull_request) Successful in 34s
Suite release / reused-checks (pull_request) Successful in 29s
Suite go / check-format (pull_request) Successful in 39s
Suite go / check-test-windows (pull_request) Successful in 1m44s
Suite default / reused-checks (pull_request) Successful in 30s
merge-queue landed on main
Suite go / reused-checks (pull_request) Successful in 26s
67f6abfa30
merge-queue deleted branch att-45-menu-done 2026-11-29 10:28:29 -08:00
Sign in to join this conversation.
No description provided.