Skip to content

Run connected OpenCode agents without permission prompts - #835

Merged
zomux merged 4 commits into
developfrom
codex/opencode-permission-errors
Oct 25, 2026
Merged

zomux merged 4 commits into
developfrom
codex/opencode-permission-errors

Conversation

@zomux

@zomux zomux commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

OpenCode's headless run command automatically rejected native permission prompts, so gpu-ca1 stopped after Bash or file reads outside its working directory. Connected OpenCode agents now use --dangerously-skip-permissions on both new and resumed runs, allowing unattended execution. Explicit OpenCode deny rules still apply.

Permission failures are reported accurately instead of as incomplete runs with Windows-specific advice. CodeArts retains its existing --auto command. No backend or approval-card changes are required.

Validation:

  • 183 connector tests passed: OpenCode, CodeArts, stop controls, working directory/session handling, and permission error reporting.
  • Installed the connector patch and restarted gpu-ca1 on the actual Vast.ai Linux machine.
  • Resumed the existing session, read /tmp/oa-permission-final/result.txt, ran uname -s, and received connector-approval-ok plus Linux without human approval or a new approval card.
  • Preview backend restored to its original compatible image; readiness passed.

This is installed on gpu-ca1 as a local connector patch; an npm release has not been published.

@vercel

vercel Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openagents-workspace Ready Ready Preview Oct 25, 2026 2:15am UTC

Request Review

@zomux zomux changed the title Fix OpenCode permission prompts stopping connected agents Run connected OpenCode agents without permission prompts Oct 25, 2026
@zomux
zomux marked this pull request as ready for review October 25, 2026 00:05
@zomux
zomux merged commit 2acd33b into develop Oct 25, 2026
12 of 13 checks passed

This branch was successfully deployed

1 active deployment
Preview — a4f57e22 Deployed Oct 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant