Skip to content
Discussion options

You must be logged in to vote

#4662 is this bug, with a fuller reconstruction and a published fix branch — worth reading together with this thread.

The piece that thread supplies, and which is hard to see from a single log, is that two processes are involved rather than one. Your timeline reads naturally as "the retry reused old seqs", but the events after the closers — tool/resultstep/endstep/start — are the original in-flight turn continuing, not a retry. One process recovers the session and commits the synthetic closers while the other, still live, later commits the same tool call's real result starting from its own cursor.

Each validates its batch against its own in-memory cursor (appendCore checks event.seq…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by yansdouble
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants