kimi-code/packages
Haozhe 0e2877bee3
fix(server): use execPath for daemon/supervisor re-exec in SEA (#860)
* fix(server): use execPath for daemon/supervisor re-exec in SEA

Detect SEA via node:sea and re-exec process.execPath instead of resolving argv[1] against cwd, which produced a bogus <cwd>/kimi and crashed the spawn with ENOENT for the native binary (kimi web).

Apply the same fix to both resolveDaemonProgram (kimi web daemon spawner) and resolveSupervisorProgram (launchd/systemd/schtasks), and handle the spawn error event so a launch failure is logged instead of crashing the parent with an unhandled error event.

* chore: add changeset for native server start fix

* fix(server): run background daemon from its log directory

Spawn the detached server child with cwd set to the server log directory instead of inheriting the caller's cwd, so the long-lived daemon does not pin the directory it was launched from (notably blocking its deletion on Windows).
2026-06-17 23:37:23 +08:00
..
acp-adapter ci: release packages (#746) 2026-06-15 22:50:45 +08:00
agent-core chore(daemon): remove unused daemon package and stale references (#852) 2026-06-17 21:11:36 +08:00
kaos fix: dispose process stdio after managed commands (#822) 2026-06-16 22:09:11 +08:00
kimi-migration-legacy feat(web): introduce Kimi web app and daemon gateway (#625) 2026-06-17 20:53:46 +08:00
kosong ci: release packages (#803) 2026-06-16 21:23:58 +08:00
migration-legacy ci: release packages (#746) 2026-06-15 22:50:45 +08:00
node-sdk ci: release packages (#826) 2026-06-17 21:57:55 +08:00
oauth fix: classify OAuth token refresh errors by cause (#838) 2026-06-17 18:34:42 +08:00
protocol feat(web): introduce Kimi web app and daemon gateway (#625) 2026-06-17 20:53:46 +08:00
server fix(server): use execPath for daemon/supervisor re-exec in SEA (#860) 2026-06-17 23:37:23 +08:00
server-e2e feat(web): introduce Kimi web app and daemon gateway (#625) 2026-06-17 20:53:46 +08:00
telemetry feat: rework permission decision policies (#26) 2026-05-27 20:07:24 +08:00