Bug
Reported by @ddorman-dn in #1066 (comment). All configured remotes disappear after exiting agent-deck with Ctrl+C.
Repro
agent-deck remote add <name> ssh://... for multiple remotes
- Verify remotes exist (
agent-deck remote list)
- Run TUI:
agent-deck
- Exit with Ctrl+C
agent-deck remote list — all remotes are gone
Screenshot in #1066 (comment) confirms the empty state after restart.
Environment
- agent-deck v1.9.20 (darwin arm64)
- SSH over tailscale (xai remote) + SSH over forti vpn (dev-vm) — both SSH-based remotes
Severity
P1 — data loss class. User configuration silently disappears on a normal exit signal.
Root cause hypotheses (investigate)
- Remotes are stored in-memory only; the TUI never persists them on Ctrl+C teardown
- Remotes are stored to a temp file that the TUI cleans up on exit
- Ctrl+C bypasses the normal shutdown path that flushes state to disk
- Profile mixup — remotes saved under one profile, restart reads from another
Action
- Investigate where
remote add writes its data — is it a different SQLite table from sessions? A separate config file?
- Verify the Ctrl+C handler in the TUI properly flushes remote state
- Write a regression test that adds a remote, kills the process with SIGINT, restarts, asserts remote is still present
Refs
Bug
Reported by @ddorman-dn in #1066 (comment). All configured remotes disappear after exiting agent-deck with Ctrl+C.
Repro
agent-deck remote add <name> ssh://...for multiple remotesagent-deck remote list)agent-deckagent-deck remote list— all remotes are goneScreenshot in #1066 (comment) confirms the empty state after restart.
Environment
Severity
P1 — data loss class. User configuration silently disappears on a normal exit signal.
Root cause hypotheses (investigate)
Action
remote addwrites its data — is it a different SQLite table from sessions? A separate config file?Refs