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 32f9772
Browse filesBrowse the repository at this point in the historyBrowse files
refactor: move results into the configuration, as discardResults
From the review, which asked for it in the configuration. runGenerators
reads discardResults from it, next to threads and chunkSize, and the
CLI's generate and preview commands set it. The configuration docs list
it.
The failure test of a dependency read as a stream runs with and without
results, so the drain path also checks that no rejection goes
unhandled, and the test of discarding results keeps only what it checks
of its own. The cache's comments say a requested target is read once
more when the run ends, rather than by the final collection, and that a
drained result's chunks go as they're produced.
Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .changeset/drain-results.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,4 +3,4 @@
3
3
'@doc-kit/cli': patch
4
4
---
5
5
6
-
`runGenerators(configuration, { results: false })`keeps none of the requested generators' output: each still runs to its end, and once nothing else reads its output, its chunks go as they are recorded. The CLI's `generate` and `preview` commands use it, as they don't read the results.
6
+
`runGenerators` with `discardResults: true` in its configuration keeps none of the requested generators' output: each still runs to its end, and once nothing else reads its output, its chunks go as they are produced. The CLI's `generate` and `preview` commands use it, as they don't read the results.
0 commit comments