kimi-code/apps
Haozhe a020946916
refactor(agent-core-v2): remove the staleGuard feature (#3517)
* refactor(agent-core-v2): remove the staleGuard feature

Drop the read-before-edit runtime guard: Edit/Write executions are no
longer vetoed when the target file was never read or its mtime changed
since the last read, and successful Read/Edit/Write no longer refresh a
recorded mtime. Removes the staleGuard replayable state key and the
staleGuard.recorded / staleGuard.cleared durable wire events; old wires
keep replaying through the unknown-type skip path. apps/vis keeps
projecting and rendering those historical records via locally declared
legacy record types.

* fix(agent-core-v2): skip retired wire record types silently during restore

Restore reports every journal record whose type has no registered event
class through onUnexpectedError. Sessions written before the staleGuard
removal can hold a staleGuard.recorded entry per successful
Read/Edit/Write, so loading one floods the log with WireError stacks.
Keep a retired-type list of record types that were once durable
vocabulary; restore skips them without reporting, while genuinely
unknown records stay on the error path.
2026-09-03 17:51:10 +08:00
..
kimi-code fix(telemetry): deduplicate session_started and model switch events (#3499) 2026-09-03 16:49:27 +08:00
kimi-inspect refactor(agent-core-v2): drop in-place system prompt refresh (#3211) 2026-08-24 21:55:23 +08:00
vis refactor(agent-core-v2): remove the staleGuard feature (#3517) 2026-09-03 17:51:10 +08:00
vscode ci: release packages (#3456) 2026-09-02 17:18:07 +08:00