Skip to content

[Bug]: CLI daemon silently swallows 39+ errors via empty .catch() #244

Description

@GenerQAQ

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

  1. Trigger any error in daemon polling, WebSocket handling, or task dispatch
  2. No error output is visible anywhere

Expected Behavior

Errors should be logged with structured logging. Fatal errors should be distinguished from transient ones.

Environment

  • Package: @alook/cli

Additional Context

From architecture health scan 2026-05-31 (finding W3).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions