Repository navigation
ref(chat): Drop dead turn-cursor model metadata - #1356
Merged
Merged
Conversation
Stop threading model/skills/reasoning through turn-cursor writes. Those fields were never restored from storage, so the write path was pretending they were checkpoint metadata. Rename runtimeMetadata to runtimeMetrics for SQL-backed channel name and execution duration/usage only. After handoff, profile config (else the inherited turn route) is the reasoning authority. Supersedes #1328 after #1344 moved turn-session to turn-cursor/checkpoint. No recovery-index policy changes. Refs #1267 Co-Authored-By: David Cramer <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Aug 9, 2026
dcramer
marked this pull request as ready for review
August 9, 2026 20:44
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supersedes #1328 after #1344 moved
turn-session*→ turn-cursor / checkpoint.Stop threading
modelId/ skills /reasoningLevelthrough turn-cursor writes. Those fields were never restored from storage, so the write path was pretending they were checkpoint metadata.Ownership (unchanged)
What changed
TurnRecord,upsertTurnRecord, and checkpoint write argsruntimeMetadata→runtimeMetricsfor SQL-backed channel/metrics onlyexistingSessionRecord.reasoningLevelfallbackChecked:
tsc --noEmit(@sentry/junior + @sentry/junior-evals); focused vitest checkpoint + agent-resume + paused-turn 45/45.Refs #1267
Requested by U039RR91S.
--
View Junior Session [Sentry]