feat(kilo): add Kilo CLI support#4443
Open
mondari wants to merge 12 commits into
Open
Conversation
Add full support for Kilo CLI (based on OpenCode) as a managed app: - Provider management with additive mode (kilo.jsonc config) - MCP server sync and import - Skills management - Session manager integration (JSON + SQLite dual-mode) - Usage statistics tracking (session_usage_kilo) - Environment check and tool version detection - Independent enabled_kilo DB column (v10→v11 migration) - Separate provider key duplicate check from OpenCode - i18n support (en/zh/zh-TW/ja)
- misc.rs: re-applied Kilo tool support (VALID_TOOLS, display name, npm, version fetch, etc.) - schema.rs: bumped to v12, new v11→v12 migration for enabled_kilo columns (upstream owns v10→v11) - stream_check.rs: added AppType::Kilo to resolve_base_url dispatch - UsageDashboard.tsx: added kilo to APP_FILTER_ICON record
Owner
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2b4956914c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
- Remove Kilo from OMO category checks (Kilo doesn't support OMO) - Fix Kilo JSON session deletion to use storage subdirectory as root - Wire import_from_kilo into MCP import flow (startup + manual import)
- Rename internal base dir to get_kilo_base_dir() (private)
- get_kilo_data_dir() now returns base_dir/storage/ (like OpenCode)
- Remove redundant .join("storage") in session_manager provider_roots
The enabledApps state had kilo but no UI checkbox was rendered.
get_kilo_data_dir() now returns ~/.local/share/kilo/ without "storage", matching opencode_config.rs. Session manager joins "storage" at call site.
- useDirectorySettings: add kilo to mock and expected resolvedDirs - McpFormModal: add kilo: false to expected apps object
Author
|
Uploading screenshots... |
Test creates v10 schema without mcp_servers table, causing migration to fail. Add table_exists check consistent with skills table handling.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary / 概述
Add full support for Kilo CLI (based on OpenCode) as a managed application in CC Switch.
Closes #4444
Screenshots / 截图
Provider Management / 供应商管理
MCP & Skills / MCP 与技能管理
Prompts & Sessions / 提示词与会话
Settings / 设置
Changes / 改动
Backend (Rust)
kilo.jsoncconfig file (~/.config/kilo/)enabled_kilotogglesession_manager/providers/kilo.rs)session_usage_kilo.rswithkilo_sessiondata sourcekilo_sessionto dedup/filter queries@kilocode/cli, GitHubKilo-Org/kilocodeenabled_kilocolumn tomcp_serversandskillstableskilo_config.rsfor config/db path managementmcp/kilo.rsfor MCP format conversion and syncFrontend (TypeScript)
Checklist / 检查清单
pnpm typecheckpassespnpm format:checkpassespnpm test:unitpasses (338/338)cargo fmt --checkpassescargo clippypasses (no Kilo-related warnings)