[PR #4249] Fix/init error handling #10916

Closed
opened 2026-02-16 18:15:40 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/4249

State: closed
Merged: No


Solves Issues #4245 and #4246

The Error needed to be render better, its tough because it’s thrown before the full TUI is initialized. To solve this, I kept the error state through initialization and, instead of rendering the main app, rendered InitErrorScreen when appropriate.

Required several iterations to get the flow working.

  • Handled config/init error in sync.tsx
  • Displaying better error with options for users to exit the application (did not exist previously).

https://github.com/user-attachments/assets/151b2650-fc5a-44e9-a9ae-67571d8185fd

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4249 **State:** closed **Merged:** No --- Solves Issues #4245 and #4246 The Error needed to be render better, its tough because it’s thrown before the full TUI is initialized. To solve this, I kept the error state through initialization and, instead of rendering the main app, rendered `InitErrorScreen` when appropriate. Required several iterations to get the flow working. - Handled config/init error in sync.tsx - Displaying better error with options for users to exit the application (did not exist previously). https://github.com/user-attachments/assets/151b2650-fc5a-44e9-a9ae-67571d8185fd
yindo added the pull-request label 2026-02-16 18:15:40 -05:00
yindo closed this issue 2026-02-16 18:15:40 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10916