Repository navigation
Conversation
WindowsOwnedProcess polled the native process_poll on a fixed 25ms cadence, so output capture topped out around one pipe chunk per poll (~262 KB/s measured), tripping provider_timeout on large WAT output. When a poll returns data the next poll is now scheduled immediately; the 25ms delay only applies when the child is idle.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Greptile review noted the drain test only exercised stdout-with-data polls, leaving the idle 25ms backoff and stderr-only fast drain unprotected. Add a timing test for each side of the scheduling rule: an idle poll must not be repolled before the 25ms delay elapses, and a stderr-only poll must schedule its successor immediately.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0785cfd48a
ℹ️ 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".
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 34421f75a2
ℹ️ 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".
|
Source fixes and publication evidence for the review findings below. Tests and executable checks were skipped at the maintainer's request. Findings that still require a decision or execution evidence remain open. The live contributor's 25ms backoff still polled indefinitely when write() returned false, so it merely slowed unbounded buffering. WindowsOwnedProcess now owns blocked-stream state and refuses further native polls while either stream is backpressured. A stream's drain event clears its state, and polling resumes only when both consumers accept output. The old cadence assertion is replaced by an actual paused stdout/stderr fixture that remains at one native read across a long interval, keeps polling stopped after only one consumer drains, then resumes after both drain. Cleanup retains the existing Job Object when output cannot settle; ownership is not discarded. Published at |
* fix(comparison): preserve incomplete function call evidence Keep missing, unknown, partial and unresolved call relationships unknown in function comparisons and reconstruction claims. Aggregate IDA caller and callee coverage without overwriting uncertainty. Validate with 144 focused tests, typecheck/lint, docs checks and test discovery. Real providers were not verified; the full headless IDA session suite requires unavailable Windows native controls. * fix(comparison): recheck historical calls-only changes --------- Co-authored-by: morluto <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 17d2e46bc7
ℹ️ 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".
| let timer: NodeJS.Timeout | undefined; | ||
| try { | ||
| const signaled = this.kill(); | ||
| this.#discardOutput = true; |
There was a problem hiding this comment.
Preserve unblocked output while stopping the job
When a Windows provider is stopped while its native pipes still contain data (notably after a timeout or cancellation), this unconditional flag causes every later process_poll chunk to be dropped even when both consumers are flowing. That violates ProviderProcessSupervisor's complete-per-stream retention contract (src/process/ProviderProcess.ts:239-241), and runOwnedCommand takes its diagnostic snapshot only after supervisor.stop() (src/process/OwnedCommand.ts:207-230), so the child's final stdout/stderr can disappear from the returned failure evidence; discard only output that is actually blocking cleanup while continuing to forward bytes accepted by consumers.
AGENTS.md reference: AGENTS.md:L13-L13
Useful? React with 👍 / 👎.
|
Source fixes and publication evidence for the review findings below. Tests and executable checks were skipped at the maintainer's request. Findings that still require a decision or execution evidence remain open. The blocked state suppressed all timers, so the native handle had no event-loop liveness owner while callers awaited close. It now schedules a referenced non-polling wake timer while blocked; WindowsOwnedProcess.ref/unref update that timer together with polling timers. The timer never reads native output, preserving the backpressure memory bound. Change is in 17d2e46 (src/windows/WindowsOwnedProcess.ts). Published as 17d2e46; pinned formatting and diff-check only, tests not run. A destroyed PassThrough cannot emit drain. The owner now listens for close as well as drain, removes that stream from the blocked set, and ignores future output for destroyed streams so lifecycle polling resumes. Added a destroy regression in 17d2e46 (src/windows/WindowsOwnedProcess.ts and test). Published as 17d2e46; pinned formatting and diff-check only, tests not run. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fb2b8a9b97
ℹ️ 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".
| if (stream.write(bytes)) return; | ||
| this.#blockedOutput.add(stream); |
There was a problem hiding this comment.
Discard streams that backpressure after cleanup starts
On Windows, if cleanup() begins before a stream is backpressured but a termination-drain poll then makes write() return false (for example after JadxMcpTransport.#stop detaches its stdout reader), this adds a blocker after the one-shot #discardBlockedOutput() has already run. This one-shot ordering is fresh evidence in the revised code: with no remaining consumer, #schedule() stays suppressed until the 5-second cleanup timeout, so the native job is reported unclean; keep forwarding accepted bytes but discard a stream that first backpressures while cleanup is active.
AGENTS.md reference: AGENTS.md:L27-L27
Useful? React with 👍 / 👎.
Retain unresolved process identity and launch evidence through retryable cleanup. Share capture path normalization and preserve failed filesystem observations. Bound child output and drain Windows pipes without one-chunk throttling. Reviewed fixes include #1628, #2632, #2644, #2784, #2928, #2931, #2965, #2992, and #3011. Validation: 92 focused source tests passed; four platform-specific skips. Real Windows and Hopper lifecycle coverage was not rerun.
|
Closing as superseded — 599a8ee carries the same drain fix on main (verified the file matches) with additional coverage. Thanks for taking it the rest of the way. |
On Windows,
inspect-wasm-artifactfails withprovider_timeoutfor modules whose WAT output is larger than about 7.9 MB, even though the child process itself finishes in about a second. #2722 measured capture at ~262 KB/s through the Windows owned-process path.Root cause:
WindowsOwnedProcessre-polls the nativeprocess_pollon a fixed 25ms timer, and each poll pulls a single chunk from the pipe. That caps capture at roughly one chunk per poll interval no matter how much data is waiting, so the 30s deadline always fires before large outputs finish draining.Changed
src/windows/WindowsOwnedProcess.ts:#schedulenow takes a delay, and#pollpasses 0 when the last poll returned stdout or stderr data, 25 when the child was idle. Capture now drains at pipe speed while the child produces output and still backs off when there is nothing to read. The 25ms default is unchanged for the launch and cleanup paths.Verified with a new test in
src/windows/WindowsOwnedProcess.test.tsthat replays 10 full 8 KiB stdout polls plus a settle poll against a mock native authority under fake timers: on the old code only 4 polls complete in 100ms of simulated time (the test fails); with the fix all 11 complete. Fullsrc/windowssuite: 30/30 pass.tsc --noEmitclean,oxlint0 errors (1 pre-existing warning).Caveat: I can't run the Windows native side here, so this is verified at the TS polling layer against the mocked authority, which is where the throttle lived. The native
readOutputalready returns up to 64 KiB per call; it just wasn't being called often enough.Fixes #2722