Skip to content

fix: drop dead snapshot analysis property#140

Merged
lzehrung merged 1 commit into
mainfrom
fix-snapshot-dead-analysis
Jun 29, 2026
Merged

fix: drop dead snapshot analysis property#140
lzehrung merged 1 commit into
mainfrom
fix-snapshot-dead-analysis

Conversation

@lzehrung

Copy link
Copy Markdown
Owner

Summary

  • Remove the dead top-level analysis property returned by tryLoadProjectIndexSnapshot() in src/indexer/build-cache/project-snapshot.ts.

Why

  • The return type is LoadedProjectIndexSnapshot ({ index; analysisReport? }). The extra top-level analysis spread was not part of that type and was never consumed (the snapshot fast path in build-index.ts reads snapshotLoad.analysisReport).
  • It compiled only because conditional object spreads bypass TypeScript excess-property checks, so it was silent dead code. The live analysis path is the embedded index.analysis, which summarizeAnalysis() reads.
  • Follow-up to the post-merge review feedback on PR fix: tighten review-first workflows and cache reuse #139 (Copilot, project-snapshot.ts:129).

Test plan

  • npm run check (lint + format + build + test:fast): 173 files, 1966 passed | 1 skipped
  • npx vitest run tests/cache-invalidation.test.ts tests/session.test.ts: 97 passed

@kilo-code-bot

kilo-code-bot Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 file)
  • src/indexer/build-cache/project-snapshot.ts

Reviewed by kimi-k2.6-20260420 · Input: 21.2K · Output: 1.3K · Cached: 61.4K

@lzehrung lzehrung merged commit 4042c9c into main Jun 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant