Repository navigation
fix(native-chat): keep the session record file within the length limit - #36056
Conversation
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
[Low impact] This PR appears safe to merge; the shorter checks preserve saved-session behavior. SummaryReuses
Reviews (3) · Last reviewed commit: "Merge branch 'main' into brennanb2025/fi..." · Reviewed by Greptile |
… record stays within the file-length limit
Main's "static analysis and typecheck" job fails with
src/shared/agent-session-record.ts: File has too many lines (301)after #34653 added thekill-delivereddeath-evidence kind. Every open PR's CI inherits it through its merge ref.Change: the death-evidence guard reuses the existing
isNonNegativeSafeInteger(same check: number, safe integer, at least 0) forobservedAt,ownerFenceandlastProvenAliveAt, which brings the file back under the limit. The guard accepts and rejects exactly the same records as before.The other current main type errors: the flag-support test was fixed by #36052; the structured session fixtures are tracked in #36058. This PR touches neither. Main's static job goes green only once both land.
Plan / light path: one file, a few lines; no saved-data shape or behavior change; no repeat; local effect.