Skip to content

feat(init): report repository scan omissions - #1404

Draft
betegon wants to merge 1 commit into
fix/init-skip-binary-readsfrom
feat/init-scan-metadata
Draft

feat(init): report repository scan omissions#1404
betegon wants to merge 1 commit into
fix/init-skip-binary-readsfrom
feat/init-scan-metadata

Conversation

@betegon

@betegon betegon commented Aug 11, 2026

Copy link
Copy Markdown
Member

The init workflow currently receives only files that happened to be discovered. It cannot tell whether a scan was complete, which directories were intentionally not traversed, or why a requested file came back as null.

Summary

  • Add backward-compatible directory scan metadata with an explicit truncated flag
  • Report visible directories omitted because they are hidden, excluded, beyond max depth, or seen during a non-recursive scan
  • Report a per-file read result: read, truncated, skipped, or error, including bounded byte counts and stable failure reasons
  • Carry initial scan metadata into workflow state and tag truncation plus omitted-directory count on CLI telemetry
  • Preserve the existing entries and files fields for older servers
  • Keep agent-selected binary paths readable; only automatic pre-reads are filtered by the preceding PR

Stack

Test plan

  • 83 targeted init scanner, filesystem tool, and wizard-runner tests
  • Biome check on changed files
  • pnpm typecheck

@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cli Ready Ready Preview Aug 11, 2026 1:11pm

Request Review

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