Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

OpenCode v1.1.64#436

Merged
kevinvandijk merged 24 commits into
devfrom
kevinvandijk/kilo-opencode-v1.1.64
Feb 18, 2026
Merged

OpenCode v1.1.64#436
kevinvandijk merged 24 commits into
devfrom
kevinvandijk/kilo-opencode-v1.1.64

Conversation

@kevinvandijk
Copy link
Copy Markdown
Contributor

Core

Token substitution in OPENCODE_CONFIG_CONTENT environment variable
Look for recent model in fallback in CLI
Baseline CPU detection fixed
Windows selection behavior and manual Ctrl+C handling
Terminal PTY isolation for app

TUI

Do not open console on error
Desktop
Option to turn off sound effects
Normalize OAuth error messages
Suggestion active state broken
Fixed remote HTTP server connections in the app

@kevinvandijk kevinvandijk marked this pull request as ready for review February 18, 2026 17:23
if (fs.existsSync(candidate)) return candidate
}
}
} catch {}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CRITICAL: SyntaxError: Unexpected token 'catch' — the findBinary function is broken and will crash on startup.

The old code had a try { ... } catch {} block. The new code replaced the try body with a for (;;) loop but left the orphaned } catch {}. Node.js confirms this is a syntax error:

SyntaxError: Unexpected token 'catch'
    at packages/opencode/bin/kilo:153

Additionally, the for (;;) loop at line 145 has no parent directory traversal (current = path.dirname(current)) and no break condition, so even if the syntax error were fixed, it would spin forever if the binary isn't found in startDir's node_modules.

Finally, findBinary() is called at line 156 with no arguments, but the new signature expects startDir. This means current will be undefined, and path.join(undefined, "node_modules") will throw.

The function needs to be rewritten — likely wrapping the for loop in a try/catch, adding const parent = path.dirname(current); if (parent === current) break; current = parent; at the end of the loop body, and passing __dirname (or similar) as startDir at the call site.

@kilo-code-bot
Copy link
Copy Markdown
Contributor

kilo-code-bot Bot commented Feb 18, 2026

Code Review Summary

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 1
WARNING 0
SUGGESTION 0
Issue Details (click to expand)

CRITICAL

File Line Issue
packages/opencode/bin/kilo 153 findBinary() has a SyntaxError from orphaned } catch {}, an infinite for(;;) loop with no parent traversal, and is called with no arguments despite expecting startDir
Files Reviewed (37 files)
  • install - 0 issues
  • package.json - 0 issues
  • packages/app/e2e/selectors.ts - 0 issues
  • packages/app/e2e/settings/settings.spec.ts - 0 issues
  • packages/app/src/components/dialog-connect-provider.tsx - 0 issues
  • packages/app/src/components/dialog-select-file.tsx - 0 issues
  • packages/app/src/components/prompt-input.tsx - 0 issues
  • packages/app/src/components/prompt-input/slash-popover.tsx - 0 issues
  • packages/app/src/components/session-context-usage.tsx - 0 issues
  • packages/app/src/components/session/session-header.tsx - 0 issues
  • packages/app/src/components/settings-general.tsx - 0 issues
  • packages/app/src/components/terminal.tsx - 0 issues
  • packages/app/src/context/command.tsx - 0 issues
  • packages/app/src/context/global-sdk.tsx - 0 issues
  • packages/app/src/context/notification.tsx - 0 issues
  • packages/app/src/context/settings.tsx - 0 issues
  • packages/app/src/i18n/ar.ts - 0 issues
  • packages/app/src/i18n/fr.ts - 0 issues
  • packages/app/src/i18n/th.ts - 0 issues
  • packages/app/src/i18n/zht.ts - 0 issues
  • packages/app/src/pages/layout.tsx - 0 issues
  • packages/app/src/pages/layout/sidebar-items.tsx - 0 issues
  • packages/app/src/pages/session.tsx - 0 issues
  • packages/app/src/pages/session/session-mobile-tabs.tsx - 0 issues
  • packages/app/src/utils/terminal-writer.test.ts - 0 issues
  • packages/app/src/utils/terminal-writer.ts - 0 issues
  • packages/desktop/scripts/predev.ts - 0 issues
  • packages/opencode/bin/kilo - 1 issue
  • packages/opencode/src/cli/cmd/tui/app.tsx - 0 issues
  • packages/opencode/src/cli/cmd/tui/ui/dialog.tsx - 0 issues
  • packages/opencode/src/cli/cmd/tui/util/selection.ts - 0 issues
  • packages/opencode/src/config/config.ts - 0 issues
  • packages/opencode/src/flag/flag.ts - 0 issues
  • packages/opencode/src/provider/provider.ts - 0 issues
  • packages/opencode/src/pty/index.ts - 0 issues
  • packages/opencode/src/server/routes/pty.ts - 0 issues
  • packages/opencode/test/config/config.test.ts - 0 issues
  • packages/opencode/test/project/project.test.ts - 0 issues
  • packages/opencode/test/pty/pty-output-isolation.test.ts - 0 issues

Fix these issues in Kilo Cloud

@kevinvandijk kevinvandijk merged commit 6e48aab into dev Feb 18, 2026
10 checks passed
@kevinvandijk kevinvandijk deleted the kevinvandijk/kilo-opencode-v1.1.64 branch February 18, 2026 18:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants