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
{{ message }}
Repository navigation
Solenta guardrail deny/ask interception (classifyTool) is never applied to kimi runs #697
Found in a full provider-feature audit. Solenta's own tool guardrails — the classifyTool deny/ask verdicts that block dangerous tool calls — are applied only inside the claude control_request branch (electron/runner.js:2925-2950). The kimi run path has no hook at all: runKimi spawns with stdio: ["ignore", ...] (electron/kimi.js:738), there is no control protocol, and kimi -p runs every tool unprompted.
Result: tools Solenta would block or gate for claude execute unconditionally on kimi threads, with no UI indication. Distinct from #177 (permission-mode picker being a no-op): that issue covers the mode the user picked being dropped; this one covers Solenta's own independent safety layer being absent.
Kimi has no documented permission-prompt protocol in headless mode, so a fix likely needs a different shape — e.g. pre-run tool allowlisting via config, or wrapping/hooking at the MCP layer where possible. Needs investigation.
Approach landed on this thread: Kimi -p still has no permission protocol. Official kimi-code 0.39 PreToolUse hooks fire in prompt mode, so the per-run KIMI_CODE_HOME overlay now registers electron/kimi-guardrail-hook.js (copied next to a copy of guardrails.js). classifyTool deny/ask → exit 2. Ask is deny on kimi (hooks fail-open on timeout). Transcript gets the same Guardrail blocked … event as Claude. CODER_GUARDRAILS=off skips the inject.
Grok follow-up is #812: same classifyTool hole, different cause (--always-approve skips can_use_tool instead of kimi having no protocol). PreToolUse hook in the GROK_HOME overlay; Claude path not touched.
Activity
currentbits commentedon Sep 2, 2026
Approach landed on this thread: Kimi
-pstill has no permission protocol. Official kimi-code 0.39 PreToolUse hooks fire in prompt mode, so the per-runKIMI_CODE_HOMEoverlay now registerselectron/kimi-guardrail-hook.js(copied next to a copy ofguardrails.js).classifyTooldeny/ask → exit 2. Ask is deny on kimi (hooks fail-open on timeout). Transcript gets the sameGuardrail blocked …event as Claude.CODER_GUARDRAILS=offskips the inject.currentbits commentedon Sep 2, 2026
Grok follow-up is #812: same classifyTool hole, different cause (
--always-approveskipscan_use_toolinstead of kimi having no protocol). PreToolUse hook in the GROK_HOME overlay; Claude path not touched.