Skip to content

Filter sandbox list API call by execution_status#400

Merged
robinaugh merged 1 commit intomainfrom
jason/sandbox-list-execution-status-filter
Mar 5, 2026
Merged

Filter sandbox list API call by execution_status#400
robinaugh merged 1 commit intomainfrom
jason/sandbox-list-execution-status-filter

Conversation

@robinaugh
Copy link
Contributor

@robinaugh robinaugh commented Mar 5, 2026

Summary

  • Adds execution_status=in_progress to the ListSandboxRuns API call so only actually-running sandboxes are returned.
  • Fixes a bug where rwx sandbox list would re-import stopped sandboxes from the API and display them as active, because the server was returning all runs with result_status=sandboxed regardless of execution state.

Depends on server PR: https://github.com/rwx-cloud/cloud/pull/6999

Test plan

  • Server PR merged and deployed first (extra query param is safely ignored by older server, but filter won't take effect until deployed)
  • rwx sandbox start, then rwx sandbox stop --all, then rwx sandbox list — stopped sandboxes should no longer reappear

The runs API was returning stopped sandboxes because result_status
stays "sandboxed" permanently. This caused sandbox list to re-import
dead sandboxes from the API and display them as active.

Now that the server supports execution_status filtering, pass
execution_status=in_progress to only get actually-running sandboxes.
@robinaugh robinaugh self-assigned this Mar 5, 2026
@robinaugh robinaugh marked this pull request as ready for review March 5, 2026 20:49
@robinaugh robinaugh merged commit 52ce36b into main Mar 5, 2026
1 check passed
@robinaugh robinaugh deleted the jason/sandbox-list-execution-status-filter branch March 5, 2026 20:55
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.

2 participants