sandbox-agent/sdks
Nathan Flurry 971689ed6e fix: harden session lifecycle and align config persistence logic
- resumeOrCreateSession: Remove destroy-on-error for the resume path. Config
  errors now propagate without destroying a pre-existing session. The destroy
  pattern remains in createSession (where the session is newly created and has
  no prior state to preserve).

- setSessionMode fallback: When session/set_mode returns -32601 and the
  fallback uses session/set_config_option, now keep modes.currentModeId
  in sync with the updated currentValue. Prevents stale cached state in
  getModes() when the fallback path is used.

- persistSessionStateFromMethod: Re-read the record from persistence instead
  of using a stale pre-await snapshot. Prevents race conditions where
  concurrent session/update events (processed by persistSessionStateFromEvent)
  are silently overwritten by optimistic updates.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-03-05 18:41:20 -08:00
..
acp-http-client feat(inspector): improve session UI, skills dropdown, and visual polish (#179) 2026-02-13 05:54:53 +00:00
cli chore(release): update version to 0.2.1 2026-02-11 20:51:01 -08:00
cli-shared chore(release): update version to 0.2.1 2026-02-11 20:51:01 -08:00
gigacode chore(release): update version to 0.2.1 2026-02-11 20:51:01 -08:00
persist-indexeddb chore(release): update version to 0.2.1 2026-02-11 20:51:01 -08:00
persist-postgres chore(release): update version to 0.2.1 2026-02-11 20:51:01 -08:00
persist-rivet chore(release): update version to 0.2.1 2026-02-11 20:51:01 -08:00
persist-sqlite chore(release): update version to 0.2.1 2026-02-11 20:51:01 -08:00
typescript fix: harden session lifecycle and align config persistence logic 2026-03-05 18:41:20 -08:00