Skip to content

feat(cli): agent-crew cancel <build-id> (Tier 3, gated on platform #3409) - #108

Draft
abhishekmishragithub wants to merge 1 commit into
mainfrom
feat-cli-cancel-build
Draft

feat(cli): agent-crew cancel <build-id> (Tier 3, gated on platform #3409)#108
abhishekmishragithub wants to merge 1 commit into
mainfrom
feat-cli-cancel-build

Conversation

@abhishekmishragithub

Copy link
Copy Markdown
Collaborator

What

Adds smallestai agent-crew cancel <build-id> — the CLI half of the build-cancel flow (CLI redesign Tier 3). Frees an agent's build queue when a build hangs in QUEUED/BUILDING.

  • New command with --agent-id (falls back to the linked project agent via the shared _resolve_agent_id) and --yes/-y to skip the confirm (non-TTY safe).
  • New AtomsAPIClient.cancel_agent_build(agent_id, build_id, api_key)POST /atoms/v1/sdk/agents/{agentId}/builds/{buildId}/cancel. A build that is already terminal or deploying returns 409, surfaced as a clear message.

Status: DRAFT — gated on platform #3409

The endpoint is defined in atoms-platform #3409 (POST …/builds/:buildId/cancel, returns 200 {message, build} or 409). This PR is held as a draft until #3409 is merged + deployed. No version bump here, so it can't auto-publish; I'll add the changelog + bump and un-draft once the endpoint is live.

Verified

Compiles; command registers with the right args/flags (cancel --help shows build_id, --agent-id, --yes). CI runs mypy + tests. Endpoint path/response matched against #3409's sdk.route.ts / httpCancelAgentBuild.

Adds the CLI half of the build-cancel flow (CLI redesign Tier 3). New command
'smallestai agent-crew cancel <build-id>' with --agent-id and --yes, backed by
AtomsAPIClient.cancel_agent_build, which POSTs
/atoms/v1/sdk/agents/{agentId}/builds/{buildId}/cancel. A build that is already
terminal or deploying returns 409, surfaced as a clear message. Frees an agent's
build queue when a build hangs in QUEUED/BUILDING.

Gated on the platform cancel endpoint (atoms-platform #3409) shipping. No version
bump yet; release once the endpoint is live.
@crim-app

crim-app Bot commented Aug 25, 2026

Copy link
Copy Markdown

crim doesn't review pull requests automatically here.

Comment crim review on this pull request whenever you want a review.

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