Real PostgreSQL 16 and Redis Stack 7.4; 24 tests write output/01-24. Covers the 20-message default window with no property, the 36-character conversation_id, tool messages dropped by JdbcChatMemoryRepository, concurrent add() on one conversation, a 1.x table under the 2.0 repository, the Redis repository silently backing off for a custom ChatMemory, and the removal of PromptChatMemoryAdvisor. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Ja4jkzrbQ4LQZBNrb5mkZE
9 lines
434 B
Plaintext
9 lines
434 B
Plaintext
# Two concurrent add() calls on one conversation
|
|
|
|
seeded with: u0, a0
|
|
two writers each add one message; both read the conversation before either writes it back
|
|
first writer to save: adds a 3-message list, saved
|
|
second writer to save: adds a different 3-message list, replaces the first
|
|
stored afterwards: [u0, a0, <second writer's message>] (3 messages, 4 were sent)
|
|
the first writer's message is GONE, the second writer's is kept
|