Skip to content

fix(hosts): close kimi adapter review follow-ups - #57

Merged
phodal merged 1 commit into
QoderAI:mainfrom
Kim-Goodman:fix/kimi-adapter-follow-ups
Aug 3, 2026
Merged

fix(hosts): close kimi adapter review follow-ups#57
phodal merged 1 commit into
QoderAI:mainfrom
Kim-Goodman:fix/kimi-adapter-follow-ups

Conversation

@Kim-Goodman

Copy link
Copy Markdown
Contributor

Follow-up to #56, which was merged before these review-driven fixes landed on the branch.

  • Sink plugin symlink containment into the shared layer: collectSkillFiles now applies filterItemsInsideRoot for plugin scope, so every host (Claude, Kimi, and future providers) drops plugin skills whose realpath escapes the component root. User/project scopes are intentionally unaffected — symlink-installed skills there are a documented setup.
  • Add KimiSessionAnalyzer.currentSessionId(): reads KIMI_SESSION_ID with a null fallback, matching the other seven platforms. The variable is not yet published in Kimi Code's docs; noted as a NEEDS CLARIFICATION in the kimi-host-support spec.
  • Include agentId in the wire dedupe key: main and subagent wire records sharing a tool call id no longer dedupe across agents; repeats within one agent still collapse. Also fixes an existing test that had pinned the cross-agent dedupe as its expectation.

Validation: node --test test/agent-customize.test.mjs test/session-analysis-providers.test.mjs test/session-analysis-fs.test.mjs test/support-declarations.test.mjs test/plugin-manifests.test.mjs — 109/109 pass, including 3 new tests.

- Sink plugin symlink containment into shared collectSkillFiles so all
  hosts drop plugin skills whose realpath escapes the component root
- Add KimiSessionAnalyzer.currentSessionId() reading KIMI_SESSION_ID
  (undocumented; null when unset), noted in the kimi-host-support spec
- Include sourceRef.agentId in the wire dedupe key so main and subagent
  records sharing a tool call id no longer dedupe across agents
@phodal
phodal merged commit 47b0096 into QoderAI:main Aug 3, 2026
4 checks passed
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.

2 participants