EditBuffer is destroyed error when connecting providers in TUI - blocks API key input #7911

Open
opened 2026-02-16 18:08:39 -05:00 by yindo · 3 comments
Owner

Originally created by @njyeung on GitHub (Jan 28, 2026).

Originally assigned to: @kommander on GitHub.

Description

When attempting to connect a provider (e.g., Moonshot AI) in the TUI, after entering the API key and pressing enter, the application crashes with an EditBuffer error. This completely blocks the ability to connect new providers and use their models.

Plugins

None

OpenCode version

1.1.40

Steps to reproduce

  1. Run opencode
  2. Select a provider
  3. Enter API key
  4. Press enter
  5. Error appears immediately when model selection dialog tries to open

Screenshot and/or share link

Image

Operating System

Arch Linux

Terminal

Kitty

Originally created by @njyeung on GitHub (Jan 28, 2026). Originally assigned to: @kommander on GitHub. ### Description When attempting to connect a provider (e.g., Moonshot AI) in the TUI, after entering the API key and pressing enter, the application crashes with an EditBuffer error. This completely blocks the ability to connect new providers and use their models. ### Plugins None ### OpenCode version 1.1.40 ### Steps to reproduce 1. Run `opencode` 2. Select a provider 3. Enter API key 4. Press enter 5. Error appears immediately when model selection dialog tries to open ### Screenshot and/or share link <img width="1274" height="1114" alt="Image" src="https://github.com/user-attachments/assets/236ca0d7-3b8e-48cc-84ae-73374823de6a" /> ### Operating System Arch Linux ### Terminal Kitty
yindo added the opentuibug labels 2026-02-16 18:08:39 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 28, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #11047: EditBuffer is destroyed - Same error when connecting a provider (Synthetic provider) in the TUI. The root cause appears to be the same EditBuffer destruction error occurring during provider setup.
@github-actions[bot] commented on GitHub (Jan 28, 2026): This issue might be a duplicate of existing issues. Please check: - #11047: EditBuffer is destroyed - Same error when connecting a provider (Synthetic provider) in the TUI. The root cause appears to be the same EditBuffer destruction error occurring during provider setup.
Author
Owner

@njyeung commented on GitHub (Jan 28, 2026):

Updating the setTimeout() in packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx worked for me:

Image
@njyeung commented on GitHub (Jan 28, 2026): Updating the setTimeout() in packages/opencode/src/cli/cmd/tui/ui/dialog-select.tsx worked for me: <img width="668" height="639" alt="Image" src="https://github.com/user-attachments/assets/cb6c5940-3fcb-4e38-9cdf-56a49bd56b11" />
Author
Owner

@skrishnan22 commented on GitHub (Jan 29, 2026):

seems to be fixed in the latest version - v.1.1.42

@skrishnan22 commented on GitHub (Jan 29, 2026): seems to be fixed in the latest version - `v.1.1.42`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7911