Skip to content

fix: toast crash + sidebar spinner + v1.6.2 - #112

Merged
four-bytes-robby merged 1 commit into
mainfrom
fix/111-toast-crash-spinner-sidebar
Jun 8, 2026
Merged

four-bytes-robby merged 1 commit into
mainfrom
fix/111-toast-crash-spinner-sidebar

Conversation

@four-bytes-robby

@four-bytes-robby four-bytes-robby commented Jun 8, 2026 •

Copy link
Copy Markdown
Member

Closes #111

Root Cause

_client.tui.showToast() without ?. throws when tui is undefined, crashing the auto-ingest IIFE silently. The finish message is never emitted.

Fixes

  • Add ?. to all toast calls in updateStatus (success/warning/error)
  • Sidebar layout now renders <Spinner> during busy states
  • v1.6.2 (patch)

Summary by cubic

Fixes a silent crash in auto-ingest when toasts are shown without a TUI client, and improves busy state feedback in the sidebar. Releases @four-bytes/four-opencode-brain v1.6.2.

  • Bug Fixes

    • Use optional chaining on _client.tui.showToast() to prevent crashes and ensure the finish message is emitted.
  • New Features

    • Show a spinner in the sidebar when busy.

Written for commit d8605b6. Summary will update on new commits.

Review in cubic

- status.ts: add ?. to all _client.tui.showToast() calls (prevents double-throw)
- tui.tsx: sidebar layout now shows <Spinner> when busy
- v1.6.2
@four-bytes-robby four-bytes-robby self-assigned this Jun 8, 2026
@four-bytes-robby
four-bytes-robby merged commit c8ffa1b into main Jun 8, 2026
4 checks passed
@four-bytes-robby
four-bytes-robby deleted the fix/111-toast-crash-spinner-sidebar branch June 8, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix: toast crash prevents finish message + sidebar spinner missing

1 participant