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
parser: parseLargeJsonl drops isSidechain/promptSource for lines > 32 KB #1023
Found while building the recurring-context detector (#1021).
parseLargeJsonl (src/parser.ts) reduces entries whose line exceeds 32 KB to LARGE_ROOT_FIELDS — type/timestamp/sessionId/cwd/gitBranch/message — so isSidechain and promptSource are dropped for exactly the lines where they matter most: large generated prompts (SDK pipelines, subagent task prompts).
Suggested fix: keep isSidechain and promptSource (both tiny scalars) in LARGE_ROOT_FIELDS. Needs a check on whether cached records / session meta change shape (they shouldn't — add-only), plus a test with a > 32 KB sidechain line.
Activity
parser: keep promptSource on lines over 32 KB