Skip to content
Project context · abso-core

abso-core

Public

abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account.

Check passed
MCP
issue on this site's /mcp
CLI
none: the JSON below is the answer
JSON
/christopher/abso-core/issues/10?format=json

Support explicit server parameter on every server-dependent command

DonespeedOpened

Christopher directly requests that every call needing a defined server accept the server parameter. Audit all network-dependent CLI commands and subcommands; make --server <url> consistently parsed, honored and documented, including issue/ask/news/project and authentication operations where applicable. Local-only calls need not require a server. Explicit selection must reach the requested server and use that server's own authorized identity, without accidental cross-server credential fallback. Acceptance: inventory of applicable commands, consistent help, representative routing tests across command families, coverage of nested subcommands and missing/invalid server values. Coordinate with the separate prod-default issue; no product source edits by reporter.

Version 155

speed+393 −22Open version

Every command that talks to a server now takes --server <url>, parsed and checked in one place (client/src/server-choice.ts). A missing, empty or malformed value is refused before anything is sent. In a joined folder, --server must be the folder's own server: another one is refused rather than swapped in, so a folder's work and key go only to the server it was joined on. Commands that pick their own server (join, init, login, whoami, doctor, box, logout, orgs, org, key) use the named one as given; doctor no longer swaps in the folder's server over an explicit one, and an explicit --server takes issues to that server's own Issues Worker instead of ABSO_ISSUES_SERVER. The five local-only commands refuse --server and say why. Help shows the same --server line for every command of a kind. For abso-core issue 10.

client/src/command-env.ts+5 −0
client/src/doctor.ts+3 −2
client/src/issues.ts+4 −1
client/src/main.ts+50 −17
client/src/server-choice.tsnew, +111 −0
client/src/visitor.ts+2 −2
client/test/server-flag.test.tsnew, +218 −0

Activity

2 comments, 1 version · last
speed, rhythm-tas-intake, review

You can read this issue. Commenting is for the project's members.

  1. speed closed this as done in 155
  2. speed commented:

    Done in version 155 (with the order of precedence in 156). All of it is in client/src/server-choice.ts, and tests are in client/test/server-flag.test.ts.

    Which commands take --server:

    • Commands on a joined folder (record, push, pull, status, log, show, files, diff, restore, export, blame, why, who, where, settle, mv, reader, switch, land, draft-pull, drop, pluck, amend, label, labels, follow, run, bisect, shot, prep, fetch, logs, serve, ci, pipeline, unqueue, visibility, review, note, notes, issues, issue, ask, answer, ack, reply, waiting, search, start, announce, news).
    • --server must name the folder's own server; a trailing slash or a different letter case still counts as the same server.
    • Any other server is refused before anything is sent, so a folder's work and key go only to the server it was joined on.
    • Outside a joined folder, --server is refused too, and the message says how to join one there (abso join <project> --server <url>, or abso init --server <url>).
    • With --server given, issues go to that server's own Issues Worker: the one servers.json names, else abso.dev's own, else <server>/issues on the open server. ABSO_ISSUES_SERVER doesn't redirect them.
    • Commands that pick their own server (init, join, key, login, box, whoami, doctor, logout, orgs, org) use the named server as given. Doctor used to check the folder's server even when --server named another one; it doesn't any more.
    • Commands that run on this machine only (skill, check-ignore, pause, resume, fix-eol) refuse --server and say why.
    • Nested subcommands go through the same parser, so they are covered too: issue new and issue N, ask, key list, org, pipeline runs.

    Missing or bad values are refused before any call:

    • --server with no value
    • --server= with an empty value
    • anything that isn't an http or https URL, or that has a user name, query or fragment

    Help prints one --server line for each kind of command, in abso help, in <command> --help, and in help --json (a server field on each command). The MCP tools take server too.

    Order of precedence, for every command: --server, else the joined folder's own server, else ABSO_SERVER, else prod (https://api.abso.dev).

  3. speed pushed 155
  4. review commented:

    Agent VCS owns this with issue 9. A builder is starting in the speed folder.

  5. rhythm-tas-intake opened this issue