Skip to content

fix(cli): stop loading .opencode config directories#8920

Closed
kilo-code-bot[bot] wants to merge 2 commits intomainfrom
fix/remove-opencode-config-dirs
Closed

fix(cli): stop loading .opencode config directories#8920
kilo-code-bot[bot] wants to merge 2 commits intomainfrom
fix/remove-opencode-config-dirs

Conversation

@kilo-code-bot
Copy link
Copy Markdown
Contributor

@kilo-code-bot kilo-code-bot Bot commented Apr 14, 2026

Summary

  • Stop discovering .opencode directories for CLI config, TUI config, plugins, tools, skills, and plan files.
  • Keep .kilo as the primary config directory while preserving .kilocode support where Kilo still uses it.
  • Closes Remove support for .opencode directory #8851

if (acc.result.plugin?.length) {
for (const dir of unique(directories)) {
if (!dir.endsWith(".opencode") && dir !== Flag.KILO_CONFIG_DIR) continue
if (!dir.endsWith(".kilo") && !dir.endsWith(".kilocode") && dir !== Flag.KILO_CONFIG_DIR) continue // kilocode_change
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

WARNING: Global TUI plugin dependencies are skipped from the default config directory

ConfigPaths.directories() still includes Global.Path.config, but this new filter only allows .kilo, .kilocode, and KILO_CONFIG_DIR. When a user configures TUI plugins in the normal global config location, waitForDependencies() no longer calls installDeps(Global.Path.config), so those plugins can fail to load because their dependencies were never installed there.

@kilo-code-bot
Copy link
Copy Markdown
Contributor Author

kilo-code-bot Bot commented Apr 14, 2026

Code Review Summary

Status: 1 Issue Found | Recommendation: Address before merge

Overview

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

WARNING

File Line Issue
packages/opencode/src/config/tui.ts 127 Global TUI plugins in Global.Path.config no longer install dependencies

Fix these issues in Kilo Cloud

Other Observations (not in diff)

No additional issues found outside the diff.

Files Reviewed (24 files)
  • .changeset/no-opencode-config-dirs.md
  • packages/opencode/src/agent/agent.ts
  • packages/opencode/src/cli/cmd/mcp.ts
  • packages/opencode/src/cli/cmd/plug.ts
  • packages/opencode/src/cli/cmd/tui/plugin/runtime.ts
  • packages/opencode/src/config/config.ts
  • packages/opencode/src/config/paths.ts
  • packages/opencode/src/config/tui.ts - 1 warning
  • packages/opencode/src/file/ripgrep.ts
  • packages/opencode/src/kilocode/agent/index.ts
  • packages/opencode/src/kilocode/config/config.ts
  • packages/opencode/src/kilocode/permission/config-paths.ts
  • packages/opencode/src/plugin/install.ts
  • packages/opencode/test/agent/agent.test.ts
  • packages/opencode/test/cli/tui/plugin-loader.test.ts
  • packages/opencode/test/config/config.test.ts
  • packages/opencode/test/plugin/auth-override.test.ts
  • packages/opencode/test/plugin/install-concurrency.test.ts
  • packages/opencode/test/plugin/install.test.ts
  • packages/opencode/test/provider/provider.test.ts
  • packages/opencode/test/session/system.test.ts
  • packages/opencode/test/skill/skill.test.ts
  • packages/opencode/test/tool/registry.test.ts
  • packages/opencode/test/tool/skill.test.ts

Reviewed by gpt-5.4-20260305 · 3,940,108 tokens

@kilo-code-bot kilo-code-bot Bot force-pushed the fix/remove-opencode-config-dirs branch from 099e7a4 to 8001129 Compare April 15, 2026 08:34
@markijbema markijbema closed this Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove support for .opencode directory

1 participant