Skip to content

fix: auto-ingest failure doesn't update status — startup stuck in busy state (cubic-dev-ai P2 from #155) #156

Description

@four-bytes-robby

From cubic-dev-ai review on PR #155

In src/four-opencode-brain.ts:174-176:

runAutoIngest().catch((err) => {
    log("error", "auto-ingest", `Auto-ingest failed: ${String(err)}`);
});

If runAutoIngest() throws before it can self-transition to ready/error status, the catch block only logs the error — it never calls updateStatus("error", ...). The TUI stays stuck in "busy" state forever.

Fix

Add updateStatus("error", { text: "auto-ingest failed" }) in the catch block so the TUI transitions out of busy state on failure.

Location

src/four-opencode-brain.ts line 175

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions