Skip ignored trees during Context discovery - #146
Conversation
Co-authored-by: Codex CLI <fgilio+codex-cli@publica.la>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe scanner now uses Git to discover untracked context files with standard excludes. It removes recursive filesystem traversal and separate ignore checks. Tests cover untracked files and ignored ChangesContext-file discovery
Estimated code review effort: 3 (Moderate) | ~20 minutes Mergeability Score: ⚪ Minimal · up to The change preserves untracked context discovery while excluding ignored trees and substantially reduces scan time; only minor test-style follow-up remains, so no actionable merge-blocking risk remains after normal checks. Sequence Diagram(s)sequenceDiagram
participant AgentContextFileScannerService
participant GitProcessService
participant Git
AgentContextFileScannerService->>GitProcessService: Query untracked context-file paths
GitProcessService->>Git: ls-files --others --exclude-standard
Git-->>GitProcessService: Return null-delimited paths
GitProcessService-->>AgentContextFileScannerService: Return candidates or no candidates on error
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9b6f53472d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-authored-by: Codex CLI <fgilio+codex-cli@publica.la>
Co-authored-by: Codex CLI <fgilio+codex-cli@publica.la>
Co-authored-by: Codex CLI <fgilio+codex-cli@publica.la>
Summary
git ls-files --others --exclude-standard.Performance
On
/Users/fgilio/pla/farfalla, the scan keeps the same 44 files, 1,457 lines, and 95,902 bytes. Runtime falls from 11.35-11.95 seconds to 0.67-1.08 seconds.Tests
composer test:lintcomposer test:typescomposer test(1,806 tests, 4,942 assertions)composer test:js(349 tests)composer test:browser(210 passed, 1 skipped)