POK-47: Support Windows autopilot host bash#52
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 381a62c1e3
ℹ️ 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".
| const result = effectiveExecution.windowsAutopilotHostExecution | ||
| ? await executeUnsandboxedBash({ |
There was a problem hiding this comment.
Kill Windows host bash process trees on timeout
When native Windows autopilot runs a normal bash command that times out while a foreground child is running, this new branch sends it through executeUnsandboxedBash; that implementation's Windows timeout path can only call child.kill() on the bash wrapper, unlike the POSIX process-group kill in src/security/sandbox.ts, so the child process can continue running with full host access after Pokoclaw reports a timeout. Use a Windows process-tree termination strategy/job object for this host-exec path before enabling it by default.
Useful? React with 👍 / 👎.
|
@claude The Windows host-bash timeout cleanup fix is now on this PR branch, including process-tree termination via |
|
@claude Following up on the Windows host-bash timeout cleanup fix now on this PR branch. The targeted tests and pnpm build are still passing. Please take another look when you can. |
|
@claude This PR is now showing as conflicted with the latest upstream main. Please resolve the branch conflict and then review the Windows autopilot host-bash behavior again, especially the timeout/process-tree cleanup path. |
|
@claude Please review this Windows autopilot host-bash PR again. This is a maintainer-triggered retry after the Claude workflow routing change; treat this comment as the review request. First check whether the branch conflict is still the blocking issue. Then review the Windows host-bash timeout and process-tree cleanup behavior, especially the taskkill /t /f path, and call out any concrete code or test changes needed on this branch. |
Review: POK-47 Windows autopilot host bash (PR #52)
Summary: The core logic is sound. The async |
|
@claude Please retry now that I have collaborator access. This PR is showing as conflicted with the latest upstream main; please resolve or advise on the conflict, then review the Windows autopilot host-bash behavior, especially the timeout/process-tree cleanup path. |
PR Review: POK-47 Windows autopilot host bash1. Merge conflict (merge-blocking)The PR is marked as CONFLICTING with 2.
|
|
@claude Added a defensive timeout around the Windows |
Review: POK-47 Windows autopilot host bash (updated)
Summary: The defensive |
Summary
Implements the POK-47 Windows opt-in behavior for bash execution.
[runtime] autopilot = true; without that opt-in the tool returns a clear recoverable error explaining the host full-access trust model.Validation
Passed:
pnpm buildpnpm exec biome check src/runtime/host-platform.ts src/main.ts src/tools/bash.ts tests/tools/bash.test.ts tests/agent/bash-approval.test.tspnpm test -- tests/tools/bash.test.ts tests/agent/bash-approval.test.ts tests/agent/yolo-autopilot.test.tsbash scripts/doctor.shAttempted:
pnpm preflightpnpm preflightstill fails on this Windows machine because of existing repo-wide Windows issues unrelated to this change: POSIX path expectations, symlink permission failures, Windows file-mode differences, and sandbox/security tests that assume POSIX/Linux behavior. The command also triggered full-repo Biome formatting churn on Windows; unrelated tracked churn was reverted before committing.