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
{{ message }}
Repository navigation
Commit 07889a1
Browse filesBrowse the repository at this point in the historyBrowse files
fix(session): compare message order by time, not id strings, across the identifier wrap
The identifier encode is a 48-bit window of (timestamp_ms << 12 | counter)
that wraps every ~2.18 years. Observed 2026-08-13->14: pre-wrap ids start
msg_f... and post-wrap ids start msg_000..., and "f" > "0" as strings, so
every code path comparing message ids as strings picks the wrong order
across the wrap, deleting pre-wrap history on revert cleanup and exiting
the run loop without calling the model.
- message-v2: latest() orders by time.created, id tiebreak
- prompt: runLoop exit compares time.created, not id
- revert: range + cleanup use the boundary index on the time-ordered array
- session: fork boundary by index
- app: client sorts use cmpMessage (time-primary)
- tests: regression for latest() across the wrap and cleanup keeping
pre-wrap history
0 commit comments