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 — fleet(proxy): `proxy connect` silently overwrites duplicate flags and silently drops modes — repeated `--host`/`--port`/`--request`/`--body` last-wins, `--stdio` eats `--request`, `--print-path` eats `--request`, `--host`/`--port` without `--stdio` are no-ops · Issue #5929 · developing-today/code

fleet(proxy): proxy connect silently overwrites duplicate flags and silently drops modes — repeated --host/--port/--request/--body last-wins, --stdio eats --request, --print-path eats --request, --host/--port without --stdio are no-ops #5929

New issue
Copy link
New issue
Copy link
Closed
#6537
Closed
fleet(proxy): proxy connect silently overwrites duplicate flags and silently drops modes — repeated --host/--port/--request/--body last-wins, --stdio eats --request, --print-path eats --request, --host/--port without --stdio are no-ops#5929
#6537
Copy link
Assignees
dezren39
Labels
app/fleetpkgs/fleet multicall binary + platform crateskind/bugSomething isn't working (prefixed form of the classic bug label)priority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Nov 5, 2026
Issue body actions

fleet(proxy): proxy connect silently overwrites duplicate flags and silently drops modes — repeated --host/--port/--request/--body last-wins, --stdio eats --request, --print-path eats --request, --host/--port without --stdio are no-ops

Summary

fleet proxy connect's hand-rolled parser (ConnectArgs::parse,
pkgs/fleet/crates/fleet-proxy/src/client.rs) silently discards user
input in two ways. This is the #5713 bug class (fleet-dispatch) on the
proxy-connect leaf; #5713's scope is the dispatch crate only, and the
earlier proxy-leaf filings (#5575 proxy serve, #5619 connect/init
--help) do not cover the connect parser's duplicate/mode handling.

Evidence (verified this run)

Code at developing-today/code@2c2219b2a1 (laptop primary):

  • src/client.rs:276-291 — --host / --port assign with
    out.host = Some(...) / out.port = Some(...): a repeat overwrites
    with no error.
  • src/client.rs:293-311 — --request assigns a fresh
    RequestArgs { service_port: None, token_file: None, body: None }:
    a second --request silently discards the first request and every
    modifier (--service-port, --token-file, --body) already
    attached to it.
  • src/client.rs:335-348 — --body likewise overwrites silently.
  • src/client.rs:366-373 (run_connect) — the stdio branch returns
    first: --stdio --request GET /x relays stdio and the request is
    never sent, with no error.
  • src/client.rs:387-391 — without --stdio, the print_path branch
    returns before the request branch: --print-path --request GET /x
    prints the shims path, exits 0, and the request is never sent.
  • --host / --port are only read on the stdio branch
    (src/client.rs:367-371); off it they are parsed, stored, and never
    used — fleet proxy connect --host other.example --port 2222
    connects to the broker exactly as if they were absent.

Probe (real crate, laptop ~/git/fleet/probe-proxy-connect-args,
fleet-proxy with default-features = false, against
2c2219b2a1):

dup-host-port: host=Some("second.example") port=Some(2202) stdio=true
dup-request: method=POST path=/second service_port=None token_file=None body=None
dup-body: body=Some(Object {"b": Number(2)})
mode-mix: stdio=true print_path=true request=Some(("GET", "/x"))
host-port-no-stdio: host=Some("other.example") port=Some(2222) stdio=false
control: method=GET path=/ok service_port=Some(4800)

The control parses exactly; every duplicate/mixed case succeeds
silently with input lost.

Why it matters

proxy connect --request is the scripted one-shot request path over
the session broker, and --stdio --host/--port is the SSH
ProxyCommand path. A duplicated or mistyped flag in a script or an
SSH config currently sends a different request than written (the
second one, stripped of its service port / token file / body), or no
request at all at exit 0 — the exact silent-success failure shape the
fleet CLI has been eliminating leaf by leaf (#5572, #5592, #5603,
#5652, #5713). The --request case is the worst: losing
--token-file/--service-port changes which service is called and
with what credential, invisibly.

Acceptance criteria

  • Repeating a value flag (--host, --port, --request,
    --service-port, --token-file, --body) is a usage error
    (exit 2) naming the repeated flag, matching the fleet CLI's
    established direction; or, if a repeat is deliberately meaningful,
    it is documented in CONNECT_USAGE and pinned by a test.
  • Mutually exclusive modes are rejected or given a documented,
    tested precedence: --stdio with --request, and --print-path
    with --request, must not silently drop the request.
  • --host / --port without --stdio are a usage error naming the
    requirement (or are honored some other documented way).
  • Pinning tests in fleet-proxy cover each rejected shape plus the
    well-formed control shapes (single --request with modifiers,
    --stdio --host --port, bare --print-path).
  • CONNECT_USAGE states the rules the parser enforces.

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    app/fleetpkgs/fleet multicall binary + platform crates
    on Nov 5, 2026
  2. developing-today commented on Nov 5, 2026

    @developing-today
    developing-todayBot
    on Nov 5, 2026 – with developing.today
    Contributor
    More actions

    CODE-1606

  3. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator job (new-issue-creator-code-b)
    • Session / ID: cron job new-issue-creator-code-b, run 2026-11-05T02:58:01Z
    • Found via: filed this run
    • Task: Filed this issue — fleet proxy connect's ConnectArgs::parse (pkgs/fleet/crates/fleet-proxy/src/client.rs) silently overwrites duplicate value flags (a second --request also discards the first request's --service-port/--token-file/--body) and silently drops modes (run_connect: --stdio eats --request, --print-path eats --request at exit 0, --host/--port without --stdio are no-ops). Verified: laptop probe ~/git/fleet/probe-proxy-connect-args against the real fleet-proxy crate @2c2219b2a1 (all duplicate/mixed cases parse with input lost; control exact). Deduped vs fleet(dispatch): duplicate and contradictory flags silently resolved — repeated values overwrite, --no-* always beats --* #5713 (dispatch crate only), fleet: proxy serve --help (and any trailing argument) silently starts the session-proxy daemon #5575, fleet(proxy): proxy connect --help and init --help answer help through the error channel — exit 2 on stderr instead of usage on stdout at exit 0 #5619.
    • Expectation: effort s — triage confirms the parser/run_connect precedence and routes the fix (usage errors naming repeated flags and contradictory modes, per the fleet CLI's established direction, plus pinning tests).
    • Links: packet enqueued to queue repo-health-code-pilot this run; evidence in the issue body.
  4. dezren39
    added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 5, 2026
  5. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-m
    • Session / ID: task 9827
    • Found via: queue claim
    • Task: triage issue fleet(proxy): proxy connect silently overwrites duplicate flags and silently drops modes — repeated --host/--port/--request/--body last-wins, --stdio eats --request, --print-path eats --request, --host/--port without --stdio are no-ops #5929 (fleet proxy connect duplicate flags + mode precedence) — assigned to the opencode execution lane; handed off to the opencode claimant. Issue verified OPEN this shift, no hard-stop labels; claim labels applied.
    • Expectation: effort s triage; done = claimant session verifies the flag/precedence behavior and routes the fix or records a no-action disposition on issue fleet(proxy): proxy connect silently overwrites duplicate flags and silently drops modes — repeated --host/--port/--request/--body last-wins, --stdio eats --request, --print-path eats --request, --host/--port without --stdio are no-ops #5929.
    • Links: task 9827; issue fleet(proxy): proxy connect silently overwrites duplicate flags and silently drops modes — repeated --host/--port/--request/--body last-wins, --stdio eats --request, --print-path eats --request, --host/--port without --stdio are no-ops #5929
  6. 210 remaining items

    Load more actions
  7. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    on Nov 6, 2026
  8. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: OpenChamber scheduled lane (repo-worker-code, lane aea12c82-c5af-4e5a-9b66-f8e360f87177)
    • Session / ID: task 10942
    • Task: small_fix implemented; PR fleet(proxy): reject duplicate and conflicting proxy connect flags (#5929) #6537 opened (Fixes #5929), cargo test -p fleet-proxy passes locally.
    • Expectation: merge when PR checks are green.
  9. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    on Nov 8, 2026
  10. dezren39
    added a commit that references this issue on Nov 8, 2026

    Merge pull request #6537 from developing-today/queue/10942-5929-proxy…

    4af4ee8
  11. dezren39
    closed this as completedin #6537on Nov 8, 2026
  12. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 8, 2026
  13. dezren39
    added
    priority/lowNice to have; do when convenient
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    priority/normalOrdinary priority (the default)
    on Nov 8, 2026
  14. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (already_done) — task 10942, lane code-c

    • Fresh verification this claim: issue fleet(proxy): proxy connect silently overwrites duplicate flags and silently drops modes — repeated --host/--port/--request/--body last-wins, --stdio eats --request, --print-path eats --request, --host/--port without --stdio are no-ops #5929 is CLOSED, and PR fleet(proxy): reject duplicate and conflicting proxy connect flags (#5929) #6537 (branch queue/10942-5929-proxy-connect-flags — this task's branch; title matches the task exactly) is MERGED at 2026-11-08T16:04:25Z, merge commit 4af4ee8.
    • Task 10942 is completed as already_done. Issue labels are already in their terminal shape (status:done present; no queue/claimed, status/in-progress, or work/assigned remain).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/fleetpkgs/fleet multicall binary + platform crateskind/bugSomething isn't working (prefixed form of the classic bug label)priority/lowNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    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.