opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[IMPROVEMENT]: Don't toggle console for non-critical issues

Open JosXa opened this issue 3 weeks ago • 7 comments

Feature hasn't been suggested before.

  • [x] I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Recently, I do get console errors and warnings quite frequently, and every time the console window toggles - which impedes my workflow. For non-critical issues, it should be less intrusive, please. A popup "an error occurred, toggle console to report a bug" would be better. If it's not a crash and I can continue working (95% of cases), I don't want to have to manually toggle the console which overlays my entire screen.

JosXa avatar Jan 12 '26 20:01 JosXa

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

  • #5035: Dynamically switch command_list item text for toggling the console
  • #7883: User visible error message that can't be cleaned
  • #4786: Focus mode to toggle off all the decorations (related feature request for less intrusive UI)
  • #3455: Make permissions dialog non-blocking and add modifier key shortcuts (related to non-blocking UI improvements)

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

github-actions[bot] avatar Jan 12 '26 20:01 github-actions[bot]

Can u provide some examples of what was triggering it? like what u saw?

rekram1-node avatar Jan 12 '26 20:01 rekram1-node

This is also happening to me very frequently

Image

davetorbeck avatar Jan 13 '26 08:01 davetorbeck

This is consistently happening to me too when I interrupt a task in the middle of a tool call to qwen3-coder-30B-a3b (q5)

[09:50:46] [WARN] 'TSWorker:' 'No parser found for injection language: toml'
....... (multiple repeats of the same line)
[09:50:47] [WARN] 'TSWorker:' 'No parser found for injection language: toml'
[09:53:19] [ERROR] Error: Unexpected end of JSON input
    SyntaxError: Unexpected end of JSON input
        at <parse> (:0)
        at json (unknown)
        at <anonymous> (/nix/store/dnw6jy9213ff35pj47s33kys143y8x33-opencode-1.1.
  /lib/opencode/dist/src/index.js:178161:43)
        at processTicksAndRejections (native:7:39)

Is there a way to dismiss the console without having to exit opencode and start everything again?

qmx avatar Jan 13 '26 12:01 qmx

Happening a lot for me as well... is there a way to close the console at least?

[08:14:48] [ERROR] Error: Unexpected end of JSON input
    SyntaxError: Unexpected end of JSON input
        at <parse> (:0)
        at json (unknown)
        at <anonymous> (../sdk/js/src/v2/gen/client/client.gen.ts:167:33)
        at processTicksAndRejections (native:7:39)

sra avatar Jan 13 '26 13:01 sra

@qmx @sra As a temp workaround you can close it with ctrl+p then Toggle Console

davetorbeck avatar Jan 13 '26 15:01 davetorbeck

I left my MacBook closed all day while opencode was open in the terminal and idle on the welcome screen. When I opened the laptop, I noticed opened console and many errors in the output: [ERROR] Error: The operation timed out. I’ve also seen the same thing when opencode is left open but unused for a while, especially when the network connection is unstable.

Image

bacecek avatar Jan 13 '26 18:01 bacecek

I left my MacBook closed all day while opencode was open in the terminal and idle on the welcome screen. When I opened the laptop, I noticed opened console and many errors in the output: [ERROR] Error: The operation timed out. I’ve also seen the same thing when opencode is left open but unused for a while, especially when the network connection is unstable. Image

For me I cannot close the console wiht the ctrl+y

jakob1379 avatar Jan 15 '26 06:01 jakob1379