Skip to content

feat: add restored session manager support and harden SSE startup#222

Open
0xCaso wants to merge 5 commits intowevm:mainfrom
0xCaso:session-manager-restore
Open

feat: add restored session manager support and harden SSE startup#222
0xCaso wants to merge 5 commits intowevm:mainfrom
0xCaso:session-manager-restore

Conversation

@0xCaso
Copy link

@0xCaso 0xCaso commented Mar 24, 2026

Summary

  • add SessionManager restore support so callers can resume Tempo session state across process restarts
  • export the Tempo client entrypoint and harden SSE startup by preserving Headers instances and failing fast on non-OK SSE responses
  • keep restored close behavior consistent by clearing opened state after a successful close

Motivation

  • OpenCode-style clients restart frequently, but still need to continue using existing Tempo session channels
  • without restore support, callers can only rely on in-memory session state and lose continuity after process restart
  • the SSE hardening changes make restored and fresh session flows fail more predictably when the upstream does not actually return a valid stream

Test Plan

  • VITE_NODE_ENV=testnet pnpm test --project node src/tempo/client/SessionManager.test.ts src/tempo/client/Session.test.ts
  • pnpm run check:types

@0xCaso 0xCaso changed the title feat: add session manager restore feat: add restored session manager support and harden SSE startup Mar 24, 2026
@0xCaso 0xCaso force-pushed the session-manager-restore branch from 1541926 to a3c0953 Compare March 24, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant