Repository navigation
Conversation
…responses Enter temporary auto mode for admitted computer tasks, including native actions discovered in plan mode, and restore prior state without overriding manual mode choices. Preserve explicit restrictions, permission policies, and hook checks. Remove the fixed stdio startup delay and decode complete newline-framed byte messages to preserve fragmented Unicode and avoid repeated large-frame copies. Cover the built terminal behavior and shared contracts in the existing OS jobs. Addresses #668. Co-authored-by: Autohand Evolve <code-noreply@autohand.ai>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Computer Use currently asks for per-action approval unless users enable auto mode themselves, and a native action discovered after starting in plan mode is rejected before it can activate computer control. This change enters auto mode for the computer task and restores the previous mode after completion, failure, or cancellation. Later manual mode selections remain effective, including during provider recovery. Explicit restricted/dry-run settings, permission denials, hooks, and OS permission checks remain enforced.
Shared MCP stdio startup now waits for the child spawn event and protocol handshake instead of adding a fixed 100 ms timer. Newline framing decodes complete byte frames once, preserving UTF-8 split across pipe reads and avoiding repeated copies of large responses. A synthetic fragmented 2 MiB frame measured 34.23 ms before and 0.65 ms after; warm native MCP calls already measured about 1.1 ms, so this is not a claim of a comparable end-to-end computer-task speedup.
Closes #668.
Validation on the final source:
--yesfor temporary-mode scenarios, including late native discovery from plan mode and cancellation restoration.423f8042784cb88ca8a8fd10aa858a32855bf5e3in PR CI.bun run proofcompleted its unit stage with 12,061 passed, 22 failed, and 71 skipped tests (829 files passed, 12 failed, 5 skipped). It failed before the terminal stage. Failures include subprocess/PTY timeouts and other flows; the real MCP cases passed separately on both candidate and baseline. No claim is made that every local failure is pre-existing.The installed native driver is unchanged. Native driver contract repair and desktop qualification are tracked independently in autohandai/computer-use#2; this CLI PR does not certify the native desktop matrix or add a Weka decision/action controller. Local installation is a candidate build with a retained rollback binary, not a published component release.