Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/internal/session-format-sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,13 @@ Grok section and remove the explicit registry exception in the coverage test.
`promptSource` (per user turn, e.g. `"typed"`, `"queued"`, `"system"`,
`"sdk"`). Neither key is documented upstream or covered by the codeburn
notes; the evidence remains local observation under `no-public-source`.
Reverified 2026-07-31 against the transcript shape reported in
[#1265](https://github.com/kenn-io/agentsview/pull/1265): the extension can
also prepend one `ide_opened_file`/`ide_selection` wrapper directly onto a
real operator prompt inside a single `user` record (envelope first, prompt
text after the closing tag, one shared `uuid` for the whole record); the
parser splits these into a hidden system-metadata message plus the visible
prompt.
Reverified 2026-08-09 against controlled `--resume <session> --fork-session`
reproductions and inspection of the Claude Code 2.1.226 bundle
([#1370](https://github.com/kenn-io/agentsview/issues/1370)): the background
Expand Down
7 changes: 6 additions & 1 deletion internal/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,12 @@ CREATE INDEX IF NOT EXISTS idx_provider_freshness_updated_at
// inline reference, and terminal command fields in shapes the parser previously
// skipped. Existing VS Code Copilot and Positron rows need re-parsing so their
// structured tool calls and visible file references are restored.)
const dataVersion = 86
// (87: Claude Code IDE context wrappers prepended onto a real prompt in
// the same entry are now split into a hidden system-metadata message plus
// the real prompt, instead of leaving the raw wrapper in first_message and
// the visible transcript. Existing rows need re-parsing so first_message
// and message content drop the leading markup.)
const dataVersion = 87

const tokenCoverageRepairStatsKey = "token_coverage_repair_v1"

Expand Down
Loading