Skip to content

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

@njyeung

Description

@njyeung

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions