Repository navigation
feat(cli): agent-crew cancel <build-id> (Tier 3, gated on platform #3409) - #108
Draft
abhishekmishragithub wants to merge 5 commits into
Draft
abhishekmishragithub wants to merge 5 commits into
abhishekmishragithub wants to merge 5 commits into
Conversation
|
crim doesn't review pull requests automatically here. Comment |
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.
abhishekmishragithub
force-pushed
the
feat-cli-cancel-build
branch
from
November 16, 2026 11:30
e9415c0 to
3192040
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds
smallestai agent-crew cancel <build-id>with linked-project/--agent-id selection and --yes support. The command calls the organization-scoped backend cancellation endpoint from atoms-platform#3409. It accepts only a 2xx response containing data.message; redirects, malformed responses and failures exit nonzero, and 409 API reasons are preserved.Build readers now recognize CANCELLED and TIMED_OUT, stop polling/streaming at those terminal states, and return a failure exit code when a deployment fails, is cancelled or times out. Rebased onto current SDK main, preserving its log scrubbing and bounded failure-tail behavior; cancellation errors also use the shared scrubber.
Validation: 298 offline custom tests passed, 1 skipped, 3 live integration tests deselected; Ruff check and format passed over 1,176 files. Current compile, test, lint and security CI checks passed. Live cancellation against a deployed backend was not run.
Keep draft until platform#3409 is deployed and staging cancellation is verified. Deploy the Lambda acceptance guard before backend cancellation/reaping and drain older in-flight Lambda invocations. Coordinate the new status readers before enabling the new backend states, then publish/enable the cancel command. No version bump or merge is performed here; publishing CI is skipped.