The at menu marks the at server while it rests on a success, so Win's summon can close it (ATT-45) #195
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
queue
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/fzt-automate!195
Loading…
Reference in a new issue
No description provided.
Delete branch "att-45-menu-done"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:Live.OnInput)doneMark: runs thetmux set -s/set -sucalls 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