opencode icon indicating copy to clipboard operation
opencode copied to clipboard

An error will occur if the prompt word is too long.

Open z7-btc opened this issue 21 hours ago • 1 comments

Description

I'm using the Windows desktop version of OpenCode, and it throws an error when the suggestion words are too long, but it works fine with medium to short suggestion words.

The error message is: TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'. TypeError: parameter 1 is not of type 'Element'. at getComputedStyle$1 (http://tauri.localhost/assets/index-nOUlZVlP.js:1707:91066) at isOverflowElement (http://tauri.localhost/assets/index-nOUlZVlP.js:1707:89839) at getOverflowAncestors (http://tauri.localhost/assets/index-nOUlZVlP.js:1707:91733) at autoUpdate (http://tauri.localhost/assets/index-nOUlZVlP.js:1707:99252) at Object.fn (http://tauri.localhost/assets/index-nOUlZVlP.js:1707:105253) at runComputation (http://tauri.localhost/assets/index-nOUlZVlP.js:2:8250) at updateComputation (http://tauri.localhost/assets/index-nOUlZVlP.js:2:7981) at runTop (http://tauri.localhost/assets/index-nOUlZVlP.js:2:9466) at runUserEffects (http://tauri.localhost/assets/index-nOUlZVlP.js:2:10730) at http://tauri.localhost/assets/index-nOUlZVlP.js:2:10322

Image

Plugins

superpower

OpenCode version

1.1.25

Steps to reproduce

  1. Open OpenCodeWindows Desktop Edition

  2. Enter a relatively long hint message; mine is currently 3536 characters long.

  3. An error message will be displayed.

Screenshot and/or share link

No response

Operating System

windows10

Terminal

cmd

z7-btc avatar Jan 17 '26 11:01 z7-btc