Skip to content

feat(sdk): surface command request_id on success and Unavailable - #307

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
feat/sdk-surface-command-request-id
Sep 11, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
feat/sdk-surface-command-request-id

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • CommandResult now includes the process-journal request_id used for each one-shot exec (caller-provided or SDK-minted).
  • Retryable Unavailable maps to ClientError::CommandUnavailable and bridge errors may carry request_id, so omit-path retries can reuse the same identity (no {id}.retry-N).
  • Bridge serde/contract tests cover optional command_run.request_id and Unavailable surfacing. Language SDKs (Python/TS/Go) parse success + error request_id.

Test plan

  • cargo test -p a3s-box-sdk command_run_
  • Python sync sandbox surface test
  • Hosted CI green (Format/Clippy/Test/SDK Packages/SDK Local)
  • Confirm no B2 / fixture / hosted-KVM claim flips

Made with Cursor

Omit-path callers learn the minted process-journal id so retries reuse it
instead of reminting and orphaning active_operation claims.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit c183cc8 into main Sep 11, 2026
14 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the feat/sdk-surface-command-request-id branch September 11, 2026 04:49
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