Repository navigation
Exit cleanly when the Docker DB picker is cancelled - #16435
Conversation
[Low impact] The PR appears safe to merge. SummaryCancelling the Docker database picker now exits with status 130 instead of calling the missing
Reviews (3) · Last reviewed commit: "Exit cleanly when the Docker DB picker i..." · Reviewed by Greptile |
Pressing Esc in Install > Development > Docker DBs fell through to '|| main_menu', which nothing defines anymore. Bash printed 'main_menu: command not found' and then the no-selection message. Cancelling now exits 130, the status the floating-terminal wrapper treats as the user bailing, so the terminal closes without the Done prompt. Same convention as omarchy-sudo-passwordless and omarchy-agent-account-add.
286646f to
0494ce5
Compare
|
Reviewed at 0494ce5, nothing found. I reproduced the bug on a fresh Omarchy worker with the real gum 2.0.2, pressing Esc at the picker. On
Second opinion from Codex Medium and muse-wonder (pi, thinking high): neither found a defect. Both agreed the change is the whole fix and that 130 matches the launcher and the other gum-cancel sites ( Nothing is left for you to do. It is waiting on the maintainer. |
Why
Pressing Esc in Install > Development > Docker DBs falls through to
|| main_menu. Nothing definesmain_menuanymore: a grep ofbin,install,default,migrationsandconfigfinds it only on this line, left over from the old shell menu. Bash printsmain_menu: command not foundin the floating terminal, and because the script has noset -eit then also prints "No databases selected for installation."This is one of the surviving bugs from #5065, split out as the focused PR asked for when that bundle was closed.
Change
|| main_menubecomes|| exit 130on line 9 ofbin/omarchy-install-docker-dbs. 130 is the statusomarchy-launch-floating-terminal-with-presentationtreats as the user bailing, so the terminal closes without the Done prompt; it is the same conventionomarchy-sudo-passwordlessandomarchy-agent-account-adduse for a gum cancel. Nothing else touched.Tests
bash -n bin/omarchy-install-docker-dbspasses.grep -rn main_menu bin install default migrations configreturns nothing on this branch.Written by Claude Fable 5.1 via Claude Code, reviewed by Marc Morriss