Skip to content

Exit cleanly when the Docker DB picker is cancelled - #16435

Merged
dhh merged 1 commit into
omacom:quattrofrom
steelcityappliance:docker-dbs-exit-on-cancel
Nov 16, 2026
Merged

dhh merged 1 commit into
omacom:quattrofrom
steelcityappliance:docker-dbs-exit-on-cancel

Conversation

@steelcityappliance

@steelcityappliance steelcityappliance commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Why

Pressing Esc in Install > Development > Docker DBs falls through to || main_menu. Nothing defines main_menu anymore: a grep of bin, install, default, migrations and config finds it only on this line, left over from the old shell menu. Bash prints main_menu: command not found in the floating terminal, and because the script has no set -e it 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_menu becomes || exit 130 on line 9 of bin/omarchy-install-docker-dbs. 130 is the status omarchy-launch-floating-terminal-with-presentation treats as the user bailing, so the terminal closes without the Done prompt; it is the same convention omarchy-sudo-passwordless and omarchy-agent-account-add use for a gum cancel. Nothing else touched.

Tests

bash -n bin/omarchy-install-docker-dbs passes. grep -rn main_menu bin install default migrations config returns nothing on this branch.

Written by Claude Fable 5.1 via Claude Code, reviewed by Marc Morriss

@greptile-apps

greptile-apps Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

Cancelling the Docker database picker now exits with status 130 instead of calling the missing main_menu.

  • Canceling the Docker database picker exits the installer cleanly.

Reviews (3) · Last reviewed commit: "Exit cleanly when the Docker DB picker i..." · Reviewed by Greptile

Comment thread bin/omarchy-install-docker-dbs Resolved
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.
@steelcityappliance
steelcityappliance force-pushed the docker-dbs-exit-on-cancel branch from 286646f to 0494ce5 Compare October 23, 2026 19:37
@omarchybot omarchybot added bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review ready Good to merge labels Nov 2, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

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 quattro it prints main_menu: command not found, then "No databases selected for installation.", and exits 0, which the floating terminal treats as a finished run. On this branch it exits 130, which omarchy-launch-floating-terminal-with-presentation takes as the user backing out, so the terminal closes without the Done prompt. When I put || main_menu back on this branch, the same failure returned. ./test/cli passed on the worker, 125 of 125.

main_menu appears nowhere else in the tree, and the only caller is the Install > Development > Docker DB menu entry, which passes no arguments. Running it with database names on the command line skips the picker and is unchanged.

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 (omarchy-sudo-passwordless, omarchy-agent-account-add). Their independence from my review is not guaranteed. I found no open issue that this fixes, and no other open pull request touching this file.

Nothing is left for you to do. It is waiting on the maintainer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ready Good to merge verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants