kimi-code/docs
liruifengv c569bab55d
fix: decouple workspace trust from runtime initialization (#4348)
* fix(kap-server): decouple workspace trust from runtime initialization

* fix: preserve workspace trust errors

* fix: emit workspace trust recovery changes

* fix: complete workspace trust recovery

* fix(agent-core-v2): reclaim session locks from zombie processes (#4320)

(cherry picked from commit 0a90e2e8a2)

* feat: let users take over a session lock left by an exited process (#4328)

* feat: let users take over a session lock left by an exited process

Session locks judged alive by mistake (a different hostname, pid reuse, or a failed process-state probe) blocked the session with no way out. Add a takeover path: the lock service evicts another process's lock, the SDK exposes Session.takeOverLock(), kap-server adds POST /api/v1/sessions/{id}:takeover, and the TUI offers Take over once a retry is still occupied. KIMI_CODE_SESSION_LOCK=0 turns the lock off for a process.

* fix(agent-core-v2): evict the lock directly on takeover

Takeover went through the reclaim marker, so a stale marker left by a crashed reclaimer on another host made takeover a silent no-op while the API reported success. Unlink the lock file directly instead.

* fix(agent-core-v2): surface takeover failures when the lock cannot be removed

Takeover swallowed unlink errors, so a lock file another user owns in a shared sticky directory was reported as taken over while the next retry stayed occupied. Ignore only ENOENT and let other errors reach the caller. Also fix the run gate test bootstrap stub typing.

* fix(tui): simplify the session takeover copy

* fix(tui): tie the takeover warning to the takeover action

* fix(tui): drop the holder line from the takeover dialog

* refactor(tui): move the session occupancy dialogs into a controller

(cherry picked from commit e7f1a99fc5)

* chore: sync web dist from code-app

code-app: 76483646b7c46a61bff868f1473535e0a32b473d

---------

Co-authored-by: 7Sageer <sag77r@hotmail.com>
2026-10-23 12:52:22 +08:00
..
.vitepress docs(tower): add description (#4216) 2026-10-15 12:56:05 +08:00
en fix: decouple workspace trust from runtime initialization (#4348) 2026-10-23 12:52:22 +08:00
media docs(zh,en): restyle configuration and customization sections (#3485) 2026-09-03 16:12:29 +08:00
public Kimi For Coding 2026-05-22 15:54:50 +08:00
zh fix: decouple workspace trust from runtime initialization (#4348) 2026-10-23 12:52:22 +08:00
.gitignore fix: fix bundle (#956) 2026-06-22 13:59:57 +08:00
AGENTS.md docs: rename permission modes to Always Ask, Ask When Needed, and Never Ask (#3406) 2026-08-31 23:02:07 +08:00
index.md Kimi For Coding 2026-05-22 15:54:50 +08:00
package.json feat(web): add Mermaid diagram rendering and off-thread KaTeX/Mermaid workers (#1226) 2026-07-01 02:17:34 +08:00