Skip to content

fix: soften recovered snapshot warning#1146

Merged
thymikee merged 1 commit into
mainfrom
fix/concise-snapshot-recovery-warning
Jul 7, 2026
Merged

fix: soften recovered snapshot warning#1146
thymikee merged 1 commit into
mainfrom
fix/concise-snapshot-recovery-warning

Conversation

@thymikee

@thymikee thymikee commented Jul 7, 2026

Copy link
Copy Markdown
Member

Summary

Soften recovered snapshot warnings so successful private-AX recovery reads as safe to continue instead of surfacing raw XCTest failure details by default.

Keep the low-level recovery reason available through JSON as snapshotQuality.reason, and make depth-cap guidance conditional on needing deeper content.

Validation

  • node ./node_modules/oxfmt/bin/oxfmt --check src/snapshot/snapshot-quality.ts src/utils/__tests__/snapshot-quality.test.ts src/commands/capture/runtime/snapshot.test.ts
  • pnpm exec vitest run src/utils/__tests__/snapshot-quality.test.ts src/commands/capture/runtime/snapshot.test.ts
  • ./node_modules/.bin/tsgo -p tsconfig.json

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

Size Report

Metric Base Current Diff
JS raw 1.6 MB 1.6 MB -290 B
JS gzip 503.0 kB 502.9 kB -103 B
npm tarball 600.8 kB 600.6 kB -123 B
npm unpacked 2.1 MB 2.1 MB -290 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 25.4 ms 26.3 ms +0.9 ms
CLI --help 51.7 ms 52.7 ms +1.0 ms

Top changed chunks: no changes in the largest emitted chunks.

@thymikee

thymikee commented Jul 7, 2026

Copy link
Copy Markdown
Member Author

Reviewed the focused snapshot-quality diff. The change only softens the human warning text for recovered snapshots; the structured verdict and low-level recovery reason still remain available through snapshotQuality in JSON. The updated tests cover both runtime rendering and the canonical warning formatter, and all checks are green. No blockers found.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Jul 7, 2026
@thymikee thymikee merged commit 69a8f6f into main Jul 7, 2026
21 checks passed
@thymikee thymikee deleted the fix/concise-snapshot-recovery-warning branch July 7, 2026 14:52
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-07-07 14:52 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant