GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@dezren39 dezren39 commented Nov 8, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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
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
All reactions
  • 👍 1 reaction
@dezren39
dezren39 requested a review from a team as a code owner November 8, 2026 02:01
@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 8, 2026
opencode-acp-adapter: --server value is never validated — a trailing --server silently talks to the default serve, --server= / a flag-like value loop forever on 'Failed to parse URL', and a typo'd flag is silently ignored #6939
Closed
5 tasks
@developing-today developing-today Bot mentioned this pull request Nov 8, 2026
Unowned PR batch from branch disposition (2026-11-07) #7297
Open
repo-worker-code-k
fix(bin): validate --server in opencode-acp-adapter, fail fast on bad…
e809f84
… values (#6939)
@dezren39
dezren39 force-pushed the queue/11326-6939-acp-server-validation branch from 394b0d2 to e809f84 Compare November 8, 2026 16:57
@developing-today

developing-today Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today developing-today Bot added queue/parked Queue task is parked (waiting on CI, time, or an event) status/parked Deliberately paused with a recorded resume condition work/assigned Queue worker lifecycle state labels Nov 8, 2026
@dezren39 dezren39 added queue/claimed Queue worker lifecycle state status/in-progress Queue worker lifecycle state and removed status/parked Deliberately paused with a recorded resume condition queue/parked Queue task is parked (waiting on CI, time, or an event) labels Nov 8, 2026
@developing-today

developing-today Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today

developing-today Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 added queue/parked Queue task is parked (waiting on CI, time, or an event) status/parked Deliberately paused with a recorded resume condition and removed status/in-progress Queue worker lifecycle state queue/claimed Queue worker lifecycle state labels Nov 8, 2026
@developing-today developing-today Bot mentioned this pull request Nov 8, 2026
id: Phase 13 F13.5 kitty keyboard protocol on the raw input path #787
Closed
3 tasks
@dezren39

dezren39 commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

🤖 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
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today

developing-today Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

🤖 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).
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 mentioned this pull request Nov 11, 2026
fix(acp-adapter): validate --server at startup (#6939) #8054
Merged
@dezren39

dezren39 commented Nov 11, 2026

Copy link
Copy Markdown
Member Author

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39 dezren39 closed this Nov 11, 2026
@dezren39 dezren39 removed status/parked Deliberately paused with a recorded resume condition queue/parked Queue task is parked (waiting on CI, time, or an event) work/assigned Queue worker lifecycle state labels Nov 11, 2026
@dezren39
dezren39 deleted the queue/11326-6939-acp-server-validation branch November 14, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

opencode-acp-adapter: --server value is never validated — a trailing --server silently talks to the default serve, --server= / a flag-like value loop forever on 'Failed to parse URL', and a typo'd flag is silently ignored

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.