Skip to content

Harden in-memory chat sessions - #5

Merged
scottopolis merged 1 commit into
mainfrom
fix/chat-session-safety
Sep 24, 2026
Merged

scottopolis merged 1 commit into
mainfrom
fix/chat-session-safety

Conversation

@scottopolis

Copy link
Copy Markdown
Owner

Summary

  • bound in-memory conversation history with configurable TTL and LRU limits
  • reject overlapping turns and regeneration of tool-bearing responses
  • sanitize streamed provider/tool errors with correlation references
  • document the accepted UIMessage subset and production ownership/retry requirements

Verification

  • npm run typecheck
  • npm test (32 tests)
  • npm run build

Bound retained conversations, reject overlapping turns and unsafe tool regeneration, sanitize streamed errors, and document the remaining production responsibilities.

Amp-Thread-ID: https://ampcode.com/threads/T-01a0d56a-30cd-740c-99be-1317b5b4db4d
Co-authored-by: Scott Bolinger <designbyscott@gmail.com>
@scottopolis
scottopolis merged commit a4a8a26 into main Sep 24, 2026
1 check passed
@scottopolis
scottopolis deleted the fix/chat-session-safety branch September 24, 2026 22:11
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.

2 participants