Input goes into weird buffer instead of chat box #2620

Closed
opened 2026-02-16 17:36:30 -05:00 by yindo · 4 comments
Owner

Originally created by @Cyclone1070 on GitHub (Nov 5, 2025).

Description

Opencode doesn't seem to capture input correctly, including mouse movements. Inputs are captured by a weird buffer instead of chat box. No idea what's going on. Here's the log if it helps:

INFO  2025-11-06T04:45:56 +219ms service=server method=GET path=/config/providers request
INFO  2025-11-06T04:45:56 +1ms service=project directory=/Users/mac/Desktop/repos/deployforme fromDirectory
INFO  2025-11-06T04:45:56 +0ms service=server method=GET path=/agent request
INFO  2025-11-06T04:45:56 +0ms service=project directory=/Users/mac/Desktop/repos/deployforme fromDirectory
INFO  2025-11-06T04:45:56 +1ms service=server method=GET path=/config request
INFO  2025-11-06T04:45:56 +0ms service=project directory=/Users/mac/Desktop/repos/deployforme fromDirectory
INFO  2025-11-06T04:45:56 +0ms service=server method=GET path=/session request
INFO  2025-11-06T04:45:56 +0ms service=project directory=/Users/mac/Desktop/repos/deployforme fromDirectory
INFO  2025-11-06T04:45:56 +0ms service=server method=GET path=/command request
INFO  2025-11-06T04:45:56 +0ms service=project directory=/Users/mac/Desktop/repos/deployforme fromDirectory
INFO  2025-11-06T04:45:56 +0ms service=server method=GET path=/lsp request
INFO  2025-11-06T04:45:56 +0ms service=project directory=/Users/mac/Desktop/repos/deployforme fromDirectory
INFO  2025-11-06T04:45:56 +10ms service=server method=GET path=/mcp request
INFO  2025-11-06T04:45:56 +0ms service=project directory=/Users/mac/Desktop/repos/deployforme fromDirectory
INFO  2025-11-06T04:45:56 +0ms service=server method=GET path=/formatter request
INFO  2025-11-06T04:45:56 +0ms service=project directory=/Users/mac/Desktop/repos/deployforme fromDirectory
INFO  2025-11-06T04:45:56 +0ms service=server method=GET path=/event request
INFO  2025-11-06T04:45:56 +0ms service=project directory=/Users/mac/Desktop/repos/deployforme fromDirectory
INFO  2025-11-06T04:45:56 +51ms service=config path=/Users/mac/.config/opencode/config.json loading
INFO  2025-11-06T04:45:56 +2ms service=config path=/Users/mac/.config/opencode/opencode.json loading
INFO  2025-11-06T04:45:56 +7ms service=config path=/Users/mac/.config/opencode/opencode.jsonc loading
INFO  2025-11-06T04:45:56 +8ms service=server event connected
INFO  2025-11-06T04:45:56 +3ms service=bus type=* subscribing
INFO  2025-11-06T04:45:56 +3ms service=server duration=74 response
INFO  2025-11-06T04:45:56 +2ms service=bun cmd=["/usr/local/Cellar/opencode/1.0.19/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-x64/bin/opencode","add","@opencode-ai/plugin@1.0.19","--exact"] cwd=/Users/mac/.config/opencode running
INFO  2025-11-06T04:45:56 +20ms service=server duration=106 response
INFO  2025-11-06T04:45:56 +11ms service=bun code=0 stdout=bun add v1.3.1 (89fa0f34)

installed @opencode-ai/plugin@1.0.19

[4.00ms] done
 stderr=Saved lockfile
 done
INFO  2025-11-06T04:45:56 +4ms service=plugin path=opencode-copilot-auth@0.0.3 loading plugin
INFO  2025-11-06T04:45:56 +1ms service=lsp serverIds=deno, typescript, vue, eslint, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, rust, clangd, svelte, astro, jdtls, lua-ls enabled LSP servers
INFO  2025-11-06T04:45:56 +0ms service=mcp key=context7 type=remote found
INFO  2025-11-06T04:45:56 +1ms service=mcp key=gh_grep type=remote found
INFO  2025-11-06T04:45:56 +3ms service=server duration=126 response
INFO  2025-11-06T04:45:56 +0ms service=server duration=127 response
INFO  2025-11-06T04:45:56 +0ms service=server duration=126 response
INFO  2025-11-06T04:45:56 +0ms service=server duration=126 response
INFO  2025-11-06T04:45:56 +2ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin
INFO  2025-11-06T04:45:56 +27ms service=bus type=* subscribing
INFO  2025-11-06T04:45:56 +0ms service=bus type=session.updated subscribing
INFO  2025-11-06T04:45:56 +0ms service=bus type=message.updated subscribing
INFO  2025-11-06T04:45:56 +0ms service=bus type=message.part.updated subscribing
INFO  2025-11-06T04:45:56 +0ms service=format init
INFO  2025-11-06T04:45:56 +0ms service=bus type=file.edited subscribing
INFO  2025-11-06T04:45:56 +2ms service=bus type=command.executed subscribing
INFO  2025-11-06T04:45:56 +3ms service=models.dev file={} refreshing
INFO  2025-11-06T04:45:56 +6ms service=provider init
INFO  2025-11-06T04:45:56 +7ms service=provider providerID=google found
INFO  2025-11-06T04:45:56 +0ms service=provider providerID=opencode found
INFO  2025-11-06T04:45:56 +2ms service=server duration=177 response
INFO  2025-11-06T04:45:56 +1ms service=server duration=166 response
INFO  2025-11-06T04:45:56 +599ms service=mcp key=gh_grep transport=StreamableHTTP connected
INFO  2025-11-06T04:45:57 +245ms service=mcp key=context7 transport=StreamableHTTP connected
INFO  2025-11-06T04:45:57 +691ms service=server duration=1701 response

OpenCode version

1.0.19

Steps to reproduce

  1. Run "opencode"
  2. Issue happens every time

Screenshot and/or share link

https://github.com/user-attachments/assets/0442b550-c0ac-4874-b6ab-0d2dc0d056de

Operating System

macOS 15.6.1

Terminal

Ghostty

Originally created by @Cyclone1070 on GitHub (Nov 5, 2025). ### Description Opencode doesn't seem to capture input correctly, including mouse movements. Inputs are captured by a weird buffer instead of chat box. No idea what's going on. Here's the log if it helps: ``` INFO 2025-11-06T04:45:56 +219ms service=server method=GET path=/config/providers request INFO 2025-11-06T04:45:56 +1ms service=project directory=/Users/mac/Desktop/repos/deployforme fromDirectory INFO 2025-11-06T04:45:56 +0ms service=server method=GET path=/agent request INFO 2025-11-06T04:45:56 +0ms service=project directory=/Users/mac/Desktop/repos/deployforme fromDirectory INFO 2025-11-06T04:45:56 +1ms service=server method=GET path=/config request INFO 2025-11-06T04:45:56 +0ms service=project directory=/Users/mac/Desktop/repos/deployforme fromDirectory INFO 2025-11-06T04:45:56 +0ms service=server method=GET path=/session request INFO 2025-11-06T04:45:56 +0ms service=project directory=/Users/mac/Desktop/repos/deployforme fromDirectory INFO 2025-11-06T04:45:56 +0ms service=server method=GET path=/command request INFO 2025-11-06T04:45:56 +0ms service=project directory=/Users/mac/Desktop/repos/deployforme fromDirectory INFO 2025-11-06T04:45:56 +0ms service=server method=GET path=/lsp request INFO 2025-11-06T04:45:56 +0ms service=project directory=/Users/mac/Desktop/repos/deployforme fromDirectory INFO 2025-11-06T04:45:56 +10ms service=server method=GET path=/mcp request INFO 2025-11-06T04:45:56 +0ms service=project directory=/Users/mac/Desktop/repos/deployforme fromDirectory INFO 2025-11-06T04:45:56 +0ms service=server method=GET path=/formatter request INFO 2025-11-06T04:45:56 +0ms service=project directory=/Users/mac/Desktop/repos/deployforme fromDirectory INFO 2025-11-06T04:45:56 +0ms service=server method=GET path=/event request INFO 2025-11-06T04:45:56 +0ms service=project directory=/Users/mac/Desktop/repos/deployforme fromDirectory INFO 2025-11-06T04:45:56 +51ms service=config path=/Users/mac/.config/opencode/config.json loading INFO 2025-11-06T04:45:56 +2ms service=config path=/Users/mac/.config/opencode/opencode.json loading INFO 2025-11-06T04:45:56 +7ms service=config path=/Users/mac/.config/opencode/opencode.jsonc loading INFO 2025-11-06T04:45:56 +8ms service=server event connected INFO 2025-11-06T04:45:56 +3ms service=bus type=* subscribing INFO 2025-11-06T04:45:56 +3ms service=server duration=74 response INFO 2025-11-06T04:45:56 +2ms service=bun cmd=["/usr/local/Cellar/opencode/1.0.19/libexec/lib/node_modules/opencode-ai/node_modules/opencode-darwin-x64/bin/opencode","add","@opencode-ai/plugin@1.0.19","--exact"] cwd=/Users/mac/.config/opencode running INFO 2025-11-06T04:45:56 +20ms service=server duration=106 response INFO 2025-11-06T04:45:56 +11ms service=bun code=0 stdout=bun add v1.3.1 (89fa0f34) installed @opencode-ai/plugin@1.0.19 [4.00ms] done stderr=Saved lockfile done INFO 2025-11-06T04:45:56 +4ms service=plugin path=opencode-copilot-auth@0.0.3 loading plugin INFO 2025-11-06T04:45:56 +1ms service=lsp serverIds=deno, typescript, vue, eslint, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, rust, clangd, svelte, astro, jdtls, lua-ls enabled LSP servers INFO 2025-11-06T04:45:56 +0ms service=mcp key=context7 type=remote found INFO 2025-11-06T04:45:56 +1ms service=mcp key=gh_grep type=remote found INFO 2025-11-06T04:45:56 +3ms service=server duration=126 response INFO 2025-11-06T04:45:56 +0ms service=server duration=127 response INFO 2025-11-06T04:45:56 +0ms service=server duration=126 response INFO 2025-11-06T04:45:56 +0ms service=server duration=126 response INFO 2025-11-06T04:45:56 +2ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin INFO 2025-11-06T04:45:56 +27ms service=bus type=* subscribing INFO 2025-11-06T04:45:56 +0ms service=bus type=session.updated subscribing INFO 2025-11-06T04:45:56 +0ms service=bus type=message.updated subscribing INFO 2025-11-06T04:45:56 +0ms service=bus type=message.part.updated subscribing INFO 2025-11-06T04:45:56 +0ms service=format init INFO 2025-11-06T04:45:56 +0ms service=bus type=file.edited subscribing INFO 2025-11-06T04:45:56 +2ms service=bus type=command.executed subscribing INFO 2025-11-06T04:45:56 +3ms service=models.dev file={} refreshing INFO 2025-11-06T04:45:56 +6ms service=provider init INFO 2025-11-06T04:45:56 +7ms service=provider providerID=google found INFO 2025-11-06T04:45:56 +0ms service=provider providerID=opencode found INFO 2025-11-06T04:45:56 +2ms service=server duration=177 response INFO 2025-11-06T04:45:56 +1ms service=server duration=166 response INFO 2025-11-06T04:45:56 +599ms service=mcp key=gh_grep transport=StreamableHTTP connected INFO 2025-11-06T04:45:57 +245ms service=mcp key=context7 transport=StreamableHTTP connected INFO 2025-11-06T04:45:57 +691ms service=server duration=1701 response ``` ### OpenCode version 1.0.19 ### Steps to reproduce 1. Run "opencode" 2. Issue happens every time ### Screenshot and/or share link https://github.com/user-attachments/assets/0442b550-c0ac-4874-b6ab-0d2dc0d056de ### Operating System macOS 15.6.1 ### Terminal Ghostty
yindo added the bug label 2026-02-16 17:36:30 -05:00
yindo closed this issue 2026-02-16 17:36:30 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 5, 2025):

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

  • #3199: Mouse Generates Garbled Text Input & Blocks User Input - This issue describes very similar symptoms where inputs are captured incorrectly and create garbled text, making OpenCode unusable. The description mentions that "mouse clicks inside the OpenCode window create the garbled text" which matches your report of inputs being "captured by a weird buffer instead of chat box".

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 5, 2025): This issue might be a duplicate of existing issues. Please check: - #3199: Mouse Generates Garbled Text Input & Blocks User Input - This issue describes very similar symptoms where inputs are captured incorrectly and create garbled text, making OpenCode unusable. The description mentions that "mouse clicks inside the OpenCode window create the garbled text" which matches your report of inputs being "captured by a weird buffer instead of chat box". Feel free to ignore if none of these address your specific case.
Author
Owner

@conradkoh commented on GitHub (Nov 6, 2025):

I have a similar issue happening as well, although this seems to happen sporadically.

  • OS: MacOS Tahoe 26.1
  • Terminal: iTerm2 / VSCode
  • Opencode Version: 1.0.35

Here are some observations:

  1. The mouse events are causing characters to be written to the console. When you move the mouse, characters are logged
Image
  1. In some cases, the code executing after the TUI starts likely fails.
Image
  1. In these cases where the weirdness happens, Ctrl+C to clear the chat stops working, and causes the program to exit instead.
@conradkoh commented on GitHub (Nov 6, 2025): I have a similar issue happening as well, although this seems to happen sporadically. * OS: MacOS Tahoe 26.1 * Terminal: iTerm2 / VSCode * Opencode Version: 1.0.35 Here are some observations: 1. The mouse events are causing characters to be written to the console. When you move the mouse, characters are logged <img width="568" height="377" alt="Image" src="https://github.com/user-attachments/assets/ae4dc6d6-213f-47eb-b89d-dd4ba60d920d" /> 2. In some cases, the code executing after the TUI starts likely fails. <img width="566" height="312" alt="Image" src="https://github.com/user-attachments/assets/c924815f-d589-419d-a446-da1de9c6d023" /> 3. In these cases where the weirdness happens, Ctrl+C to clear the chat stops working, and causes the program to exit instead.
Author
Owner

@JoshMock commented on GitHub (Nov 6, 2025):

Was experiencing the same issue today on Arch Linux using Kitty as my terminal emulator. Upgrading to opencode 1.0.36 seems to have fixed things.

@JoshMock commented on GitHub (Nov 6, 2025): Was experiencing the same issue today on Arch Linux using Kitty as my terminal emulator. Upgrading to opencode 1.0.36 seems to have fixed things.
Author
Owner

@conradkoh commented on GitHub (Nov 6, 2025):

Awesome, confirming that this is no longer happening in 1.0.36. Thanks @JoshMock!

@conradkoh commented on GitHub (Nov 6, 2025): Awesome, confirming that this is no longer happening in 1.0.36. Thanks @JoshMock!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2620