Instant crash on 1.0.219 #4030

Closed
opened 2026-02-16 17:42:21 -05:00 by yindo · 5 comments
Owner

Originally created by @duhduhdan on GitHub (Dec 31, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

Running opencode in my terminal briefly flashes some output and immediately exits. Downgrading to the previous version fixes this and opencode works as expected. I'm on Fedora 42 and using Ghostty.

I captured the brief flash of output:

]11;?[?25l[?1016$p[?2027$p[?2031$p[?1004$p[?2004$p[?2026$p]66;w=1; \]66;s=2; \[>0q[?u[?1049h[>4;1m[?2027h[?2004h[?1000h[?1002h[?1003h[?1006hVersion 5.9.2
tsc: The TypeScript Compiler - Version 5.9.2

COMMON COMMANDS

  tsc
  Compiles the current project (tsconfig.json in the working directory.)

  tsc app.ts util.ts
  Ignoring tsconfig.json, compiles the specified files with default compiler options.

  tsc -b
  Build a composite project in the working directory.

  tsc --init
  Creates a tsconfig.json with the recommended settings in the working directory.

  tsc -p ./path/to/tsconfig.json
  Compiles the TypeScript project located at the specified path.

  tsc --help --all
  An expanded version of this information, showing all possible compiler options

  tsc --noEmit
  tsc --target esnext
  Compiles the current project, with additional settings.

COMMAND LINE FLAGS

--help, -h
Print this message.

--watch, -w
Watch input files.

--all
Show all compiler options.

--version, -v
Print the compiler's version.

--init
Initializes a TypeScript project and creates a tsconfig.json file.

--project, -p
Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'.

--showConfig
Print the final configuration instead of building.

--build, -b
Build one or more projects and their dependencies, if out of date

COMMON COMPILER OPTIONS

--pretty
Enable color and formatting in TypeScript's output to make compiler errors easier to read.
type: boolean
default: true

--declaration, -d
Generate .d.ts files from TypeScript and JavaScript files in your project.
type: boolean
default: `false`, unless `composite` is set

--declarationMap
Create sourcemaps for d.ts files.
type: boolean
default: false

--emitDeclarationOnly
Only output d.ts files and not JavaScript files.
type: boolean
default: false

--sourceMap
Create source map files for emitted JavaScript files.
type: boolean
default: false

--noEmit
Disable emitting files from a compilation.
type: boolean
default: false

--target, -t
Set the JavaScript language version for emitted JavaScript and include compatible library declarations.
one of: es5, es6/es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, es2024, esnext
default: es5

--module, -m
Specify what module code is generated.
one of: none, commonjs, amd, umd, system, es6/es2015, es2020, es2022, esnext, node16, node18, node20, nodenext, preserve
default: undefined

--lib
Specify a set of bundled library declaration files that describe the target runtime environment.
one or more: es5, es6/es2015, es7/es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, es2024, esnext, dom, dom.iterable, dom.asynciterable, webworker, webworker.importscripts, webworker.iterable, webworker.asynciterable, scripthost, es2015.core, es2015.collection, es2015.generator, es2015.iterable, es2015.promise, es2015.proxy, es2015.reflect, es2015.symbol, es2015.symbol.wellknown, es2016.array.include, es2016.intl, es2017.arraybuffer, es2017.date, es2017.object, es2017.sharedmemory, es2017.string, es2017.intl, es2017.typedarrays, es2018.asyncgenerator, es2018.asynciterable/esnext.asynciterable, es2018.intl, es2018.promise, es2018.regexp, es2019.array, es2019.object, es2019.string, es2019.symbol/esnext.symbol, es2019.intl, es2020.bigint/esnext.bigint, es2020.date, es2020.promise, es2020.sharedmemory, es2020.string, es2020.symbol.wellknown, es2020.intl, es2020.number, es2021.promise, es2021.string, es2021.weakref/esnext.weakref, es2021.intl, es2022.array, es2022.error, es2022.intl, es2022.object, es2022.string, es2022.regexp, es2023.array, es2023.collection, es2023.intl, es2024.arraybuffer, es2024.collection, es2024.object/esnext.object, es2024.promise, es2024.regexp/esnext.regexp, es2024.sharedmemory, es2024.string/esnext.string, esnext.array, esnext.collection, esnext.intl, esnext.disposable, esnext.promise, esnext.decorators, esnext.iterator, esnext.float16, esnext.error, esnext.sharedmemory, decorators, decorators.legacy
default: undefined

--allowJs
Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files.
type: boolean
default: false

--checkJs
Enable error reporting in type-checked JavaScript files.
type: boolean
default: false

--jsx
Specify what JSX code is generated.
one of: preserve, react, react-native, react-jsx, react-jsxdev
default: undefined

--outFile
Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output.

--outDir
Specify an output folder for all emitted files.

--removeComments
Disable emitting comments.
type: boolean
default: false

--strict
Enable all strict type-checking options.
type: boolean
default: false

--types
Specify type package names to be included without being referenced in a source file.

--esModuleInterop
Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility.
type: boolean
default: false

You can learn about all of the compiler options at https://aka.ms/tsc

[?2027h[?2004h[?2027h[?2004h[?2027h[?2004h[?2027h[?2004h[?1004h[?2027h[?2004h[?1004h[?2027h[?2004h[?1004h[?2004h[?1004h[?2004h[?1004h[>4;0m[>5u[?2004h[?1004h[?2004h[?1004h]0;[?25h[<u[?1003l[?1002l[?1000l[?1006l[?2004l[?1004l[?1049l]0;]12;default]112[0 q[?25h[?25h

OpenCode version

1.0.219

Steps to reproduce

  1. Upgrade to 1.0.219
  2. Attempt to run opencode
  3. Observe behavior noted above

Screenshot and/or share link

No response

Operating System

Fedora 42

Terminal

Ghostty

Originally created by @duhduhdan on GitHub (Dec 31, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description Running `opencode` in my terminal briefly flashes some output and immediately exits. Downgrading to the previous version fixes this and opencode works as expected. I'm on Fedora 42 and using Ghostty. I captured the brief flash of output: ``` ]11;?[?25l[?1016$p[?2027$p[?2031$p[?1004$p[?2004$p[?2026$p]66;w=1; \]66;s=2; \[>0q[?u[?1049h[>4;1m[?2027h[?2004h[?1000h[?1002h[?1003h[?1006hVersion 5.9.2 tsc: The TypeScript Compiler - Version 5.9.2 COMMON COMMANDS tsc Compiles the current project (tsconfig.json in the working directory.) tsc app.ts util.ts Ignoring tsconfig.json, compiles the specified files with default compiler options. tsc -b Build a composite project in the working directory. tsc --init Creates a tsconfig.json with the recommended settings in the working directory. tsc -p ./path/to/tsconfig.json Compiles the TypeScript project located at the specified path. tsc --help --all An expanded version of this information, showing all possible compiler options tsc --noEmit tsc --target esnext Compiles the current project, with additional settings. COMMAND LINE FLAGS --help, -h Print this message. --watch, -w Watch input files. --all Show all compiler options. --version, -v Print the compiler's version. --init Initializes a TypeScript project and creates a tsconfig.json file. --project, -p Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'. --showConfig Print the final configuration instead of building. --build, -b Build one or more projects and their dependencies, if out of date COMMON COMPILER OPTIONS --pretty Enable color and formatting in TypeScript's output to make compiler errors easier to read. type: boolean default: true --declaration, -d Generate .d.ts files from TypeScript and JavaScript files in your project. type: boolean default: `false`, unless `composite` is set --declarationMap Create sourcemaps for d.ts files. type: boolean default: false --emitDeclarationOnly Only output d.ts files and not JavaScript files. type: boolean default: false --sourceMap Create source map files for emitted JavaScript files. type: boolean default: false --noEmit Disable emitting files from a compilation. type: boolean default: false --target, -t Set the JavaScript language version for emitted JavaScript and include compatible library declarations. one of: es5, es6/es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, es2024, esnext default: es5 --module, -m Specify what module code is generated. one of: none, commonjs, amd, umd, system, es6/es2015, es2020, es2022, esnext, node16, node18, node20, nodenext, preserve default: undefined --lib Specify a set of bundled library declaration files that describe the target runtime environment. one or more: es5, es6/es2015, es7/es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, es2024, esnext, dom, dom.iterable, dom.asynciterable, webworker, webworker.importscripts, webworker.iterable, webworker.asynciterable, scripthost, es2015.core, es2015.collection, es2015.generator, es2015.iterable, es2015.promise, es2015.proxy, es2015.reflect, es2015.symbol, es2015.symbol.wellknown, es2016.array.include, es2016.intl, es2017.arraybuffer, es2017.date, es2017.object, es2017.sharedmemory, es2017.string, es2017.intl, es2017.typedarrays, es2018.asyncgenerator, es2018.asynciterable/esnext.asynciterable, es2018.intl, es2018.promise, es2018.regexp, es2019.array, es2019.object, es2019.string, es2019.symbol/esnext.symbol, es2019.intl, es2020.bigint/esnext.bigint, es2020.date, es2020.promise, es2020.sharedmemory, es2020.string, es2020.symbol.wellknown, es2020.intl, es2020.number, es2021.promise, es2021.string, es2021.weakref/esnext.weakref, es2021.intl, es2022.array, es2022.error, es2022.intl, es2022.object, es2022.string, es2022.regexp, es2023.array, es2023.collection, es2023.intl, es2024.arraybuffer, es2024.collection, es2024.object/esnext.object, es2024.promise, es2024.regexp/esnext.regexp, es2024.sharedmemory, es2024.string/esnext.string, esnext.array, esnext.collection, esnext.intl, esnext.disposable, esnext.promise, esnext.decorators, esnext.iterator, esnext.float16, esnext.error, esnext.sharedmemory, decorators, decorators.legacy default: undefined --allowJs Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files. type: boolean default: false --checkJs Enable error reporting in type-checked JavaScript files. type: boolean default: false --jsx Specify what JSX code is generated. one of: preserve, react, react-native, react-jsx, react-jsxdev default: undefined --outFile Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. --outDir Specify an output folder for all emitted files. --removeComments Disable emitting comments. type: boolean default: false --strict Enable all strict type-checking options. type: boolean default: false --types Specify type package names to be included without being referenced in a source file. --esModuleInterop Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. type: boolean default: false You can learn about all of the compiler options at https://aka.ms/tsc [?2027h[?2004h[?2027h[?2004h[?2027h[?2004h[?2027h[?2004h[?1004h[?2027h[?2004h[?1004h[?2027h[?2004h[?1004h[?2004h[?1004h[?2004h[?1004h[>4;0m[>5u[?2004h[?1004h[?2004h[?1004h]0;[?25h[<u[?1003l[?1002l[?1000l[?1006l[?2004l[?1004l[?1049l]0;]12;default]112[0 q[?25h[?25h ``` ### OpenCode version 1.0.219 ### Steps to reproduce 1. Upgrade to 1.0.219 2. Attempt to run `opencode` 3. Observe behavior noted above ### Screenshot and/or share link _No response_ ### Operating System Fedora 42 ### Terminal Ghostty
yindo added the opentuibug labels 2026-02-16 17:42:21 -05:00
yindo closed this issue 2026-02-16 17:42:21 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 31, 2025):

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

  • #6464: Opencode blanks terminal after version v1.0.214 with npm (very similar - terminal blank/crash on recent versions 1.0.214+)
  • #6080: OpenCode TUI Hangs on Fedora Linux (npm & bun & standalone) (Fedora-specific TUI issues)
  • #5181: Input sometimes starts to only show ASCII escape codes (escape code-related display issues)

The crash with escape code output shown in your issue appears to be related to the terminal UI rendering issues that started appearing in recent versions around 1.0.214. Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Dec 31, 2025): This issue might be a duplicate of existing issues. Please check: - #6464: Opencode blanks terminal after version v1.0.214 with npm (very similar - terminal blank/crash on recent versions 1.0.214+) - #6080: OpenCode TUI Hangs on Fedora Linux (npm & bun & standalone) (Fedora-specific TUI issues) - #5181: Input sometimes starts to only show ASCII escape codes (escape code-related display issues) The crash with escape code output shown in your issue appears to be related to the terminal UI rendering issues that started appearing in recent versions around 1.0.214. Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Dec 31, 2025):

wow and this is just opening opencode? can u sen a video of it?

@rekram1-node commented on GitHub (Dec 31, 2025): wow and this is just opening opencode? can u sen a video of it?
Author
Owner

@vidonnus commented on GitHub (Dec 31, 2025):

This is the error that I get when I run opencode in the cli on 1.0.219 (macOS, Ghostty):

{
  "name": "UnknownError",
  "data": {
    "message": "TypeError: Cannot call a class constructor without |new|\n    at SimpleTelegramBot (/Users/vidonnus/.config/opencode/plugin/lib/telegram-bot.ts:27:14)\n    at <anonymous> (src/plugin/index.ts:45:28)\n    at processTicksAndRejections (native:7:39)"
  }
}

SimpleTelegramBot is provided by https://github.com/darrenhinde/OpenAgents, and it looks like there were no changes in that repo which caused this to break.

@vidonnus commented on GitHub (Dec 31, 2025): This is the error that I get when I run `opencode` in the cli on 1.0.219 (macOS, Ghostty): ``` { "name": "UnknownError", "data": { "message": "TypeError: Cannot call a class constructor without |new|\n at SimpleTelegramBot (/Users/vidonnus/.config/opencode/plugin/lib/telegram-bot.ts:27:14)\n at <anonymous> (src/plugin/index.ts:45:28)\n at processTicksAndRejections (native:7:39)" } } ``` SimpleTelegramBot is provided by https://github.com/darrenhinde/OpenAgents, and it looks like there were no changes in that repo which caused this to break.
Author
Owner

@rekram1-node commented on GitHub (Dec 31, 2025):

@vidonnus try v1.0.220 instead

@rekram1-node commented on GitHub (Dec 31, 2025): @vidonnus try v1.0.220 instead
Author
Owner

@vidonnus commented on GitHub (Dec 31, 2025):

Confirming it's fixed in v1.0.220

@vidonnus commented on GitHub (Dec 31, 2025): Confirming it's fixed in v1.0.220
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4030