You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Windows, concurrent async writes to the context.jsonl file
can cause PermissionError due to file locking semantics. Multiple
coroutines (append_message, update_token_count, checkpoint) may
attempt to write simultaneously.
Add an asyncio.Lock to serialize all file write operations in the
Context class, preventing concurrent access to the context file.
Fixes#1429
0 commit comments