You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.
Recent review details
Context from checks skipped due to timeout: 3
GitHub Check: CodeRabbit
GitHub Check: Check ubuntu-22.04
GitHub Check: Check macos-15
Additional context used
Code guidelines: 1
AGENTS.md — auto-discovered
Path-based instructions: 1
Source excerpt: `codexhost` runs external Agent Harnesses as independent Threads inside Codex Desktop, preserving the official shell and native Codex path.
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
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
Kimi Code 无法接收委派:Coordinator 创建委派会话时始终传入
unattended-full-access,但 Kimi Adapter 在打开会话前直接返回unsupported。将该执行意图映射到原生 ACP
mode=yolo,复用现有set_config_option配置与回执校验。只有原生确认currentValue=yolo才返回会话;未确认时关闭 Transport 并报错。显式指定default、plan或auto与无人值守意图冲突时,在创建前拒绝。普通会话继续使用原生默认配置。改动限定在 Kimi Adapter、聚焦测试与现有能力边界文档,无公共契约或 Host 委派路由改动。与 Pi 状态刷屏修复 PR 独立。
Related issues
N/A
Test plan
macOS,Node 24.22.2:
npx tsc -b packages/adapters/kimi-code:通过。npx vitest run --config tests/vitest.config.js packages/adapters/kimi-code/test:Kimi 包全部 13 个测试文件、174 项通过。新增覆盖普通会话未指定/显式 default 执行策略与未指定/default/plan/auto/yolo 权限模式的 10 种组合,确认不会自动升权;另覆盖委派默认映射、显式 yolo、三种冲突权限模式,以及原生未确认时的失败与 Transport 清理。原有恢复、Fork、回滚、模型/Thinking、会话执行与交互、历史、安装和导入等回归一并通过。git diff --check通过。yolo的原生含义为Auto-approve everything,并验证配置回执;再通过构建后的KimiAdapter.open(create, unattended-full-access)创建会话,确认initialState.effectivePermissionModeId为yolo,随后关闭 Adapter。另通过同一构建后的 Adapter 创建普通会话(不传 executionPolicy 或 permissionModeId),实测仍为原生default。真实验证未发送模型请求;未进行完整的 Host CLI 委派任务、Desktop UI 或跨 Harness 递归委派验证。本次修复范围是接收委派时的原生权限配置。