sandbox-agent/sdks/typescript
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
..
scripts chore: fix bad merge 2026-02-11 07:57:02 -08:00
src fix: harden session lifecycle and align config persistence logic 2026-03-05 18:41:20 -08:00
tests feat: add configuration for model, mode, and thought level 2026-03-03 17:05:14 -08:00
package.json fix: build cli-shared before sandbox-agent SDK 2026-02-23 12:32:06 -08:00
tsconfig.json feat: sync universal schema and sdk updates 2026-01-27 02:52:25 -08:00
tsup.config.ts feat: sync universal schema and sdk updates 2026-01-27 02:52:25 -08:00
vitest.config.ts feat: sync universal schema and sdk updates 2026-01-27 02:52:25 -08:00