Skip to content

Automation 'Run now' failure is an unhandled rejection with no feedback #85

Closed

Description

@currentbits

src/components/AutomationsView.tsx:291 — void onRunNow(auto.id); useCoder.ts:799-806 doesn't catch; electron/automations.js:144 rethrows. lastError is patched into the store, but refreshAutomations() never runs because the await throws first — so the row doesn't even display the error until a full reload.

Fix: catch in useCoder (or await + refresh in a finally), and surface the failure on the automation row.

Related loose end from the same audit: App.tsx:162-172 handleClearSettled archives sequentially with void — a mid-loop rejection is unhandled and leaves a partial archive with no feedback.

Found during the 2026-08-16 improvement audit.

Activity

  1. added
    bug
    plan:todo
    plan:doing
    and removed
    plan:todo
    on Aug 16, 2026
  2. added a commit that references this issue on Aug 16, 2026
  3. added
    plan:done
    and removed
    plan:doing
    on Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions