You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f9580d2
Browse filesBrowse the repository at this point in the historyBrowse files
fix(cli): refuse an implicit home root and cap reported omissions
An agent session runs with the working directory set to the user's home, so
selecting the current directory as the project walked ~2.4M files, ran past any
subprocess timeout, and produced no output at all. Refuse an implicit root that
is a home directory or the filesystem root, naming the fix in the error. An
explicit --root keeps selecting whatever the caller asks for.
A wide root also omits one entry per skipped file: a status envelope for /tmp
carried 22,933 entries and 9 MB of JSON, and both the project and cached lists
duplicated it. Cap each reported omission list at 256 entries, keep the full
count in omittedFiles / omitted_files (new on IndexOutput, so the index report no
longer implies its total by list length), and mark a capped list with
omissionsTruncated. Human output names the truncation and reports the index total
from the count instead of the list.
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,13 @@ c2g impact helper --depth 3
113
113
114
114
By default the CLI rejects an incomplete index. `--allow-partial` explicitly permits
115
115
publishing and querying a partial source set; inspect the reported omissions before
116
-
relying on its results.
116
+
relying on its results. Each reported omission list is capped at 256 entries to keep an
117
+
envelope small; `omittedFiles` (and `inventory.omitted_files`) still carries the full
118
+
count, and `omissionsTruncated` marks a list that was capped.
119
+
120
+
Without `--root`, the selected project is the working directory. A working directory
121
+
that is a home directory or the filesystem root is refused: walking one costs minutes
122
+
and describes no project. Name the project (`--root <DIR>`) to proceed.
117
123
118
124
Driving the CLI from a coding agent: [`docs/agent-integration.md`](docs/agent-integration.md) carries a copy-pasteable rule block for `CLAUDE.md` / `AGENTS.md` and explains why a mechanical trigger is the only kind an agent reliably follows.
0 commit comments