omarchy-install-service-1password launches 1Password without setsid, so it dies on SIGHUP when the installer terminal closes
What happens
omarchy-install-service-1password opens 1Password when it finishes, but the app is terminated about a second later — as soon as the installer terminal closes. On a first install this lands in the middle of first-run initialization.
Cause
omarchy-install-service-1password:31 backgrounds the launch without detaching it from the terminal:
uwsm-app -- 1password >/dev/null 2>&1 &
uwsm-app does not start a new session, so the app keeps the installer terminal's controlling pty. omarchy-show-done then waits for a keypress; when the terminal exits, the pty hangs up and 1Password receives SIGHUP. Chromium treats SIGHUP as a graceful-shutdown request, so the app quits.
Reproduced with an instrumented process launched exactly this way:
uwsm-app -- victim.sh & → tty=pts/3, receives SIGHUP when the terminal exits, dies
setsid uwsm-app -- victim.sh & → tty=?, survives
Being in its own systemd scope (app-1password-<pid>.scope) does not help — the pty association is independent of the cgroup.
Every other installer that opens an app already does this correctly, including the shared helper omarchy-install-and-launch:
setsid uwsm-app -- gtk-launch steam >/dev/null 2>&1 & # steam, zed, signal, spotify, vscode, emacs, heroic, chatgpt
Observed sequence
12:33:25 pacman installs 1password 8.12.32-33
12:33:25 script runs: uwsm-app -- 1password >/dev/null 2>&1 &
first run: DB schema migrated 0 -> 61, native-messaging manifests written
12:33:26 installer terminal scope ends
12:33:26.044 1Password log: Front end event: window closed
12:33:26.045 1Password log: app will quit / shutdown requested! / starting app shutdown
12:33:26 kernel: traps: 1password[52271] trap int3 ip:558b7c70e195 in 1password[70ea195,558b77ca5000+9aa1000]
12:33:26 systemd-coredump: Process 52271 (1password) terminated abnormally with signal 5/TRAP
Relaunching from the app launcher works fine — that instance has no controlling terminal.
On the SIGTRAP specifically
Per #7822, 1Password emits a Crashpad SIGTRAP as part of its normal shutdown, so the SIGTRAP here is probably incidental rather than a fault, and the notification that surfaced it is that issue's false-positive. The bug being reported here is that the app is shut down at all, not that it trapped.
Two recorded details differ from #7822 and I could not resolve them, so I'm flagging rather than claiming: this coredump has si_code: SI_KERNEL where #7822 reports TRAP_BRKPT, and this instance's log ends mid-teardown at running shutdown hook: ffi/op-core-node/src/lib.rs:477 without the Failed to prepare for requesting dump line #7822 quotes. That may just be log truncation. No core is available either way — 1Password sets RLIMIT_CORE=0.
Expected
A freshly installed 1Password stays open after the installer terminal closes.
Fix
setsid uwsm-app -- 1password >/dev/null 2>&1 &
omarchy-install-service-dropbox:12 has the same omission (uwsm-app -- dropbox-cli start &>/dev/null &); lower impact since dropbox-cli start daemonizes, but it's the same latent bug.
This is the same class as #6762 (a terminal being torn down under a process Omarchy spawned), fixed there by reordering; here the fix is detaching.
System
omarchy 4.0.0-1, Linux 7.1.8-arch1-3, Hyprland/uwsm, 1password 8.12.32-33, 1password-cli 2.35.0-1.
Filed by Claude Opus 5 via Claude Code.
I'd like to take this. I'll add a regression test for detaching the post-install launch, then update the 1Password installer to use the existing setsid pattern.
Independent reproduction, and I can resolve the two details you flagged as unexplained.
Reproduction
Omarchy 4.0.1-1, kernel 7.1.9-arch1-2, AMD Ryzen 7 7800X3D, 1password 8.12.34-34 (yours was 8.12.32-33):
22:00:48 pacman -S --noconfirm --needed 1password 1password-cli
22:01:00 1password launched by the installer
22:03:46 1Password log: Front end event: window closed
22:03:52 app-Hyprland-xdg-terminal-exec-….scope: Consumed … 3min 8.312s wall clock <- terminal exits
22:03:52 1Password log: app will quit / shutdown requested! / … / ffi/op-core-node/src/lib.rs:477
22:03:52 kernel: traps: 1password[29676] trap invalid opcode ip:5617b8552195 … in 1password[70ea195,…+9aa1000]
1. The signal discrepancy: int3 and ud2 are adjacent, and both report the same ip
You got trap int3/SIGTRAP; #8470 and I both got trap invalid opcode/SIGILL — yet all three print the identical file offset 70ea195. That is not a coincidence. In 8.12.34-34:
fileoff 0x70EA194 -> cc int3
fileoff 0x70EA195 -> 0f 0b ud2
70eb18f: call 2ae73c0
70eb194: int3
70eb195: ud2
#BP (int3) is a trap: regs->ip is reported after the instruction, so an int3 at …194 prints ip …195. #UD (ud2) is a fault: regs->ip is reported at the instruction, so a ud2 at …195 also prints ip …195. Both collapse to the same printed offset. It is one code path, one byte apart — not two different faults.
2. The missing "Failed to prepare for requesting dump" line is not truncation
My log has it, yours does not, and that difference lines up with which instruction fired:
20:03:52.100 running shutdown hook: ffi/op-core-node/src/lib.rs:477
20:03:52.111 ERROR [op-crash-reporting/src/crash_handler.rs:287] Failed to prepare for requesting dump
Inference, not proof: Crashpad installs a SIGTRAP handler. While it is live it intercepts the int3 at …194, fails to write a dump (the line above), and execution falls through to the ud2 at …195 -> SIGILL. Once it is torn down later in shutdown, the int3 kills the process outright -> SIGTRAP, with no such line logged. That would explain both the signal difference and the log difference without either being truncation. I could not confirm it: RLIMIT_CORE=0 means no core on any of the three reports, and the binary is stripped with no published debug symbols, so I did not try to name the function at 2ae73c0.
Also: #8470 is this same bug reported from the SIGILL side, currently pursuing "a build or packaging issue specific to this version". Worth linking — the identical 70ea195 offset across an Intel i9-14900KF and an AMD 7800X3D rules that out.
Your diagnosis and fix look right; nothing to add there. @kx0101's setsid change should resolve the trigger.
Filed by Claude Opus 5 via Claude Code.
Thank you for the detailed report, reproductions, and the work on #7886. The missing setsid launch change has now landed on quattro through #12402. I checked the current installer and the v4.0.4 tag: the fix is present on quattro, but is not included in v4.0.4.
This addresses the launch-detachment omission described here. Confirmation that 1Password stays open on a version containing that change would support closing this report; the separate crash-notification behavior in #7822 is outside this fix.
I checked this against the source. The 1Password part is fixed on quattro but has not been released yet. The Dropbox part is still open, as #7886.
- 1Password:
bin/omarchy-install-service-1password:31onquattronow runssetsid uwsm-app -- 1password >/dev/null 2>&1 &. That came in with 5f34ce458 ("Detach 1Password from installer terminal", #12402). It is not in any release yet:v4.0.4, the latest tag, still has the line withoutsetsid. The mechanism described in the report matches the source. Both the menu entry andomarchy-launch-1passwordrun the installer throughomarchy-launch-floating-terminal-with-presentation, so withoutsetsidthe app is left attached to that terminal. - Dropbox:
bin/omarchy-install-service-dropbox:13onquattrostill runsuwsm-app -- dropbox-cli start &>/dev/null &withoutsetsid. Open PR #7886 changes exactly that line and adds tests, and will be reviewed on its own. I did not establish whetherdropbox-cli startactually dies when the terminal closes, since it daemonizes.
Nothing was run on a worker. The 1Password fix is already merged, and the Dropbox change is #7886's to verify. This is the review of a single model, Claude Opus 5.5. The second opinion, Codex Medium, was reachable but did not run because the day's review budget was used up.
Next step: this is waiting on the maintainer, who can close it once #12402 ships in a release, or keep it open until #7886 lands.
Confirming the fix from #12402 works. Omarchy 4.0.4-1 still ships the line without setsid, so I applied the one-line change from #12402 locally to bin/omarchy-install-service-1password and re-tested.
Before (stock 4.0.4-1, 1password 8.12.40-2): installed via Install → Service → 1Password, then pressed a key at "Done!". 1Password died with SIGILL (trap invalid opcode) within ~1 ms of the installer terminal's scope ending. No core: RLIMIT_CORE=0.
After (same versions, setsid uwsm-app -- 1password applied): removed with omarchy-remove-service-1password, reinstalled via the menu, closed the installer terminal after the 1Password window appeared. 1Password kept running in its own session (SID = its own PID, no controlling tty). No kernel trap and no coredump.
Not tested: the equivalent Dropbox change in #7886.
Filed by Claude Opus 5.5 via Claude Code.
Thanks @djvdhoven. That is a confirmation of the 1Password fix on a real install, with the failure reproduced before the change and gone after it, which nobody had reported until now.
Where it stands, checked against the source today:
- 1Password: fixed on
quattroby #12402, wherebin/omarchy-install-service-1password:31runssetsid uwsm-app -- 1password >/dev/null 2>&1 &. No release has it yet:v4.0.4is still the latest tag and predates the change. It will ship in the next release. - Dropbox:
bin/omarchy-install-service-dropbox:13onquattrostill launches withoutsetsid. Open PR #7886 changes that line and is linked to close this issue when it merges.
Nothing was run on a worker this time, because there was nothing new to test: the 1Password fix is already merged, and the Dropbox change gets verified as part of #7886. Only one model reviewed this, Claude Opus 5.5. The second opinion, Codex Medium, could be reached but did not run because the day's review budget was used up.
Next step: this waits on the maintainer. Merging #7886 closes it.
Confirming this still reproduces on v4.0.5, which shipped without the fix. The earlier comment expected #12402 in the next release after v4.0.4, but bin/omarchy-install-service-1password:31 on the v4.0.5 tag is still uwsm-app -- 1password >/dev/null 2>&1 &. Only quattro has setsid.
Omarchy 4.0.5-1, 1password 8.12.40-3: install from the menu, press a key at "Done!", and 1Password dies with trap invalid opcode in the same second the installer terminal's scope ends. A/B test on the same machine, launching from a terminal that then exits: uwsm-app -- 1password & → SIGILL when the terminal closes; setsid uwsm-app -- 1password & → keeps running.
Filed by Claude Opus 5.5 via Claude Code.
Thanks @coygeek. You're right, and my last comment was wrong to say the fix would ship in the next release. 4.0.x releases are not cut from quattro. Each one is cut from its own branch (v4-0-1 through v4-0-5), and those branches go back to v4.0.0 and get fixes only by backport. #12402 merged to quattro and was never backported, so it is not in any 4.0.x release.
What I checked in the source today:
- 1Password:
bin/omarchy-install-service-1password:31hassetsidonquattro(5f34ce458, #12402). It is missing on thev4.0.5tag, which is the tip ofv4-0-5, and 5f34ce458 is not an ancestor of it. Nothing equivalent was backported. Your A/B result matches what the source predicts. The usual launcher,omarchy-launch-1password:11, already usesexec setsid uwsm-app, which is why 1Password stays open when opened from the app launcher. Only the first launch after installing is affected. - Dropbox:
bin/omarchy-install-service-dropbox:13onquattrostill launches withoutsetsid. Open PR #7886 changes that line, and merging it closes this issue.
Nothing was run on a worker. The 1Password fix is already merged on quattro, and two people have now confirmed it on real installs. What is still undecided is which branch it goes to, not whether it works. The second opinion, Codex Medium, checked the same points against the source independently and agreed. It also pointed out the omarchy-launch-1password difference above. Its independence is not guaranteed.
Next step: this waits on the maintainer, who decides whether #12402 is backported to the 4.0.x line for the next point release or ships with quattro's release.