GeezerVison is showing github.com — fix(bin): validate --server in opencode-acp-adapter, fail fast on bad values (#6939) by dezren39 · Pull Request #7043 · developing-today/code
Conversation
dezren39
commented
Nov 8, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Fixes #6939 (task 11326).
What
parseServerUrl in bin/opencode-acp-adapter.mjs took the --server value unchecked: a trailing --server was silently dropped (adapter dialled the default serve), --server= set an empty base that looped forever on Failed to parse URL, a flag-like value was consumed verbatim as the URL, and a typo'd flag was silently ignored.
Following the sibling strict-argv pattern from #3449 (provider-catalog-sync):
--server with a missing (trailing), empty, or flag-like value fails fast at startup with a usage error naming the flag and the offending value (exit 2), before the event stream starts.
- A value that is not a parseable
http:/https: URL (or has no host) fails the same way; the resolved OPENCODE_ACP_SERVER env value is validated too.
- Unknown arguments (e.g. the
--sever typo) are rejected with a usage error naming the argument — per the Design: unknown means stop — one strict argument contract for the repo's operator scripts #3352 contract, a typo can no longer silently change which server is dialled.
- Valid forms unchanged:
--server <url>, --server=<url>, trailing-slash stripping, OPENCODE_ACP_SERVER env fallback, built-in default.
Tests
New spawn-level regression tests in bin/opencode-acp-adapter.test.mjs cover trailing --server, --server=, flag-like value, non-URL value, non-http(s) value, and the typo'd-flag case — each asserting a fast exit 2 naming --server.
node --test bin/opencode-acp-adapter.test.mjs — 16 passed, 0 failed (10 existing + 6 new), run on the laptop worktree at 394b0d2.
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
coderabbitai
Bot
commented
Nov 8, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 29 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
fa8d333b-6a53-4a28-8f3f-fe9b1802d862
Commits
-
Reviewing files that changed from the base of the PR and between 469842c and e809f84.
Files selected for processing: 2
-
bin/opencode-acp-adapter.mjs
bin/opencode-acp-adapter.test.mjs
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-08T16:58:37.415130Z |
e809f84 |
New commits |
ℹ️ 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" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
agent-note:v1
event: parked
task: 13340 (pr_shepherd, repo-health-code-pilot; worker repo-worker-code; lane code-q)
by: repo-worker-code lane code-q
at: 2026-11-08T17:10Z
Shepherding PR #7043 (fix for issue #6939, originally task 11326) on the direct lane. Fresh revalidation: PR OPEN, no hard-stop labels; Codex review completed on the previous head with no findings. The branch was 316 commits behind main — rebased cleanly onto origin/main 469842c in laptop worktree /home/user/git/fleet/13340, new head e809f84, and pushed (force-with-lease). Targeted tests on the laptop: node --test bin/opencode-acp-adapter.test.mjs — 16/16 pass. Parked 1200s awaiting CI on the new head (fleet CI is saturated; checks were QUEUED on the old head). Resume: when basic checks are green on e809f84 and any new Codex findings are dispositioned, merge PR #7043 (closes issue #6939) and complete task 13340.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
agent-note:v1
event: picked_up
task: 13340 (pr_shepherd, repo-health-code-pilot; worker repo-worker-code; lane code-x)
by: repo-worker-code lane code-x
at: 2026-11-08T20:05Z
Resumed task 13340 shepherding PR #7043 (fix for issue #6939). Fresh revalidation: PR #7043 OPEN, head e809f84 (unchanged from prior checkpoint), no hard-stop labels (held/user/owned/do-not-merge/do-not-auto-edit absent). Codex review on current head: completed, has_any_findings=false, has_unresolved_findings=false — Codex gate clear. Targeted tests previously verified on laptop: node --test bin/opencode-acp-adapter.test.mjs 16/16 pass after rebase onto main. CI checks still QUEUED since 2026-11-08T16:57Z — checking fresh status; if still pending, park per the 5-minute CI rule.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
agent-note:v1
event: parked
task: 13340 (pr_shepherd, repo-health-code-pilot; worker repo-worker-code; lane code-x)
by: repo-worker-code lane code-x
at: 2026-11-08T20:11Z
Parking task 13340: CI on PR #7043 head e809f84 has been QUEUED since 2026-11-08T16:57Z (over 3 hours, re-checked twice this shift, still queued — runner backlog, no failures). Codex gate clear (no findings on current head); targeted tests 16/16 pass on laptop (prior checkpoint). Resume condition: CI completes on head e809f84; if green and no hard-stop labels, merge. Parked 1200s per the 5-minute CI rule.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
🤖 Agent note · parked — CI pending (re-verified)
- Agent: repo queue worker, lane code-v (repo-worker-code)
- Session / ID: cron repo-queue-worker-shift-v run 2026-11-08; task 13340
- Found via: claimed task 13340 this shift (assigned_lane=direct); resumed from the prior checkpoint (§10 resume, don't restart)
- Task: task 13340 for PR fix(bin): validate --server in opencode-acp-adapter, fail fast on bad values (#6939) #7043 (pr_shepherd, batch issue Unowned PR batch from branch disposition (2026-11-07) #7297 part 1). Fresh check by this lane: PR fix(bin): validate --server in opencode-acp-adapter, fail fast on bad values (#6939) #7043 is OPEN, head e809f84 matches the rebase checkpoint, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit). Prior pass already verified: rebase onto origin/main, targeted tests
node --test bin/opencode-acp-adapter.test.mjs 16/16 pass on the laptop, Codex clear (note 6726438824).
- Parked: all 5 basic/aggregator checks are still QUEUED (since 16:57Z — fleet-wide CI stall); CodeRabbit skipping. Parked task 13340 for 1200s (attempts 4/4).
- Resume: when the checks run green on head e809f84, merge PR fix(bin): validate --server in opencode-acp-adapter, fail fast on bad values (#6939) #7043 and record the outcome on issue Unowned PR batch from branch disposition (2026-11-07) #7297.
- Links: task 13340 · PR fix(bin): validate --server in opencode-acp-adapter, fail fast on bad values (#6939) #7043 · issue Unowned PR batch from branch disposition (2026-11-07) #7297
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
🤖 Agent note · awaiting_ci / parked
- Agent: repo queue worker, lane code-n (repo-worker-code)
- Session / ID: cron repo-queue-worker-shift-n run 2026-11-08 14:47 CST; task 13340
- Task: task 13340 (pr_shepherd) for PR fix(bin): validate --server in opencode-acp-adapter, fail fast on bad values (#6939) #7043, batch issue Unowned PR batch from branch disposition (2026-11-07) #7297. Fresh revalidation via gh api: PR fix(bin): validate --server in opencode-acp-adapter, fail fast on bad values (#6939) #7043 OPEN, head e809f84, branch queue/11326-6939-acp-server-validation, no hard-stop labels. Codex review on current head: completed, has_any_findings=false, has_unresolved_findings=false — Codex gate clear. Targeted tests previously verified on laptop: node --test bin/opencode-acp-adapter.test.mjs 16/16 pass after rebase.
- CI: 5 basic checks QUEUED since 2026-11-08T16:57Z (fleet runner stall, not change-related); CodeRabbit neutral/completed. Parking task 13340 for 1200s per the 5-minute CI rule; resume condition: basic checks complete green, then merge.
- Note: issue Unowned PR batch from branch disposition (2026-11-07) #7297 carries user/escalated among other batch labels — flagged here; the PR itself has no hard-stop label. Attempts 4/4 (at cap).
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Closing as superseded duplicate (lane code-d, task 13340)
Issue #6939 was fixed and closed by PR #8054 (merged 2026-11-09, merge sha b236b1d, task 11326 / lane code-n), which implements the same strict --server startup validation + unknown-argument fail-fast in bin/opencode-acp-adapter.mjs. This PR (the earlier attempt from the same task) was held only by the authorship hard stop, which Drew's 2026-11-11 #7297 ruling resolved per-item: close what is done or superseded.
Salvage check before closing (protocol §8): this PR was diffed against the canonical implementation now on main — nothing unique to salvage; the full note is on PR #8054. Its one extra explicit no-host check is subsumed by the canonical URL-parse rejection, and its uncaught-throw error path is superseded by the canonical exit-2 usage error. Test coverage on main (18) exceeds this PR's (16).
Task 13340 completes as superseded. No branch work is lost that is not already on main in canonical form.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
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.
|