sandbox-agent/sdks/typescript/src
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
..
generated chore: fix bad merge 2026-02-11 07:57:02 -08:00
client.ts fix: harden session lifecycle and align config persistence logic 2026-03-05 18:41:20 -08:00
index.ts feat: add configuration for model, mode, and thought level 2026-03-03 17:05:14 -08:00
inspector.ts fix: correct inspector package name in Dockerfiles and add .dockerignore (#50) 2026-02-01 23:03:51 -08:00
spawn.ts chore: fix bad merge 2026-02-11 07:57:02 -08:00
types.ts feat: add configuration for model, mode, and thought level 2026-03-03 17:05:14 -08:00