Skip to content

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

Closed

Description

@z7-btc

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

Activity

  1. github-actions commented on Jan 17, 2026

    @github-actions
    Contributor

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

    Feel free to ignore if this addresses a different aspect of the issue.

  2. github-actions commented on Mar 26, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktopwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions