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
From cubic-dev-ai review on PR #155
In
src/four-opencode-brain.ts:174-176:If
runAutoIngest()throws before it can self-transition toready/errorstatus, the catch block only logs the error — it never callsupdateStatus("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.tsline 175