Describe the Bug
39+ instances of .catch(() => {}) throughout src/cli/daemon/daemon.ts and session-runner.ts. Errors are silently swallowed, making production debugging extremely difficult.
To Reproduce
- Trigger any error in daemon polling, WebSocket handling, or task dispatch
- No error output is visible anywhere
Expected Behavior
Errors should be logged with structured logging. Fatal errors should be distinguished from transient ones.
Environment
Additional Context
From architecture health scan 2026-05-31 (finding W3).
Describe the Bug
39+ instances of
.catch(() => {})throughoutsrc/cli/daemon/daemon.tsandsession-runner.ts. Errors are silently swallowed, making production debugging extremely difficult.To Reproduce
Expected Behavior
Errors should be logged with structured logging. Fatal errors should be distinguished from transient ones.
Environment
Additional Context
From architecture health scan 2026-05-31 (finding W3).