Skip to content

parser: parseLargeJsonl drops isSidechain/promptSource for lines > 32 KB #1023

Closed

Description

@iamtoruk

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).

Consequences:

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

  1. added a commit that references this issue on Aug 18, 2026
    39075ed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions