Kilo CodeRelease

Kilo 7.8.40 tightens Agent permissions and fixes MCP and session isolation

Kilo 7.8.40 makes auto-approval a user-level setting, escapes invisible characters in permission cards, asks before environment-file access and preserves permissions during legacy configuration migration. The CLI fixes Gemini MCP schema compatibility and strengthens project-session, TUI workspace and provider-auth isolation. It also requires approval for patch move destinations and fixes shell calls that hang when descendant processes retain output streams.

  • Auto-approval becomes a user-level setting; turning it off stops retried approvals, disabling a saved rule removes it, and permission cards escape control characters, bidi marks and invisible format characters.
  • Reading or printing environment files requires approval, while example environment files remain readable; the write tool refuses targets that changed, are not regular files or lack usable filesystem identity.
  • Legacy migration preserves file-write permissions, provider headers and bearer tokens; local MCP servers honor their configured working directory, and Gemini no longer rejects MCP schemas combining array with anyOf or oneOf.
  • Session actions stay within their owning project, the TUI retains per-workspace configuration and routes permission prompts to the right workspace, and subagent tabs and answers follow the initiating session.
  • Login state distinguishes revocation from outages, ChatGPT OAuth survives token refreshes, provider and auth panels reload on project switches, and Azure/Vertex endpoints, regions and credential destinations receive stricter validation.
  • The CLI requires approval for a patch's destination path and refuses moves onto Agent Manager state; foreground shell calls finish on macOS/Linux when the command exits even if descendants keep stdout or stderr open.
New featureCompatibilityCritical fix

Original evidence · 2026-11-27 02h

Kilo Code Releases ↗Based on original text

Why it matters

Permission enforcement, legacy migration and MCP compatibility affect Agent safety and upgrade reliability, while project isolation and shell/auth fixes improve everyday stability.