You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SIGUSR2 theme reload interrupts an in-flight session #42621
Changing the desktop theme while opencode is working interrupts the run.
Omarchy signals opencode on every theme change — omarchy-restart-opencode runs killall -SIGUSR2 opencode. In the TUI, SIGUSR2 calls the worker's reload RPC (packages/opencode/src/cli/cmd/tui.ts:216), and that reload invalidates config and then disposes every instance (packages/opencode/src/cli/tui/worker.ts:63). Disposing an instance cancels the session runners it owns, so whatever is in flight — a model stream or a shell command — is aborted.
The theme itself does not depend on that reload: the TUI re-detects the terminal palette and re-scans theme files from its own SIGUSR2 handler in packages/tui/src/context/theme.tsx.
Activity
github-actions commentedon Oct 15, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.