agent-orchestrator/packages
Priyanshu Choudhary 24eefda23b fix(core): restore must rewrite statePayload.runtime.handle, not just top-level
Restore was writing the freshly-spawned runtime handle to the top-level
metadata `runtimeHandle` key, but the canonical lifecycle parser prefers
`statePayload.runtime.handle` and falls back to the top-level only when
statePayload is missing. The next lifecycle tick read the stale handle
from statePayload and rewrote both keys from it, silently undoing the
restore's update.

Symptom: a session restored after AO restart kept the old PID in
metadata. Lifecycle probe found that PID dead (it was from a previous
boot) and the dashboard rendered the orchestrator as exited/killed even
though a new process was actually running.

Fix: rebuild the canonical lifecycle with the new handle via
buildUpdatedLifecycle() and persist via lifecycleMetadataUpdates() so
statePayload and runtimeHandle stay in sync. Mirrors the pattern used
in kill/spawn paths.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-25 11:35:25 +05:30
..
ao chore: bump all package versions to 0.2.5 (#1190) 2026-04-13 05:47:08 +05:30
cli test(windows): isolate USERPROFILE per test, normalize path assertions 2026-04-25 11:25:34 +05:30
core fix(core): restore must rewrite statePayload.runtime.handle, not just top-level 2026-04-25 11:35:25 +05:30
integration-tests fix(windows): plugin runtime gaps + ConPTY graceful shutdown 2026-04-25 11:25:19 +05:30
plugins fix(windows): plugin runtime gaps + ConPTY graceful shutdown 2026-04-25 11:25:19 +05:30
web Merge remote-tracking branch 'origin/main' into feat/windows-platform-adapter 2026-04-24 02:45:44 +05:30