Add hidden --json flag to tl sbx image ls#699
Open
sgirones wants to merge 1 commit into
Open
Conversation
Enables scripted consumers (e.g. the indexify-deployment stress-test image cleanup in tests/build_sandbox_image/build.py) to parse the image list without screen-scraping the comfy_table output. Mirrors the existing hidden --json on `tl sbx image create`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
tl sbx image lsnow accepts a hidden--jsonflag that prints the image list as a pretty-printed JSON array (the sameVec<serde_json::Value>already used to render the table). The default human-readable table output is unchanged.--jsonflag ontl sbx image create.Motivation
indexify-deployment's nightly stress-test image build workflow (tests/build_sandbox_image/build.py) callstl sbx image ls --jsonto GC old images. That flag never existed, so cleanup has been silently skipped on every run since PR #460 there (2026-04-14), and stress-test images have been accumulating for ~6 weeks. Example failure from a recent run:Adding the flag here is the cleanest fix — parsing the
comfy_tableoutput from the Python side would be fragile.Test plan
cargo check -p tensorlake-clipassestl sbx image ls --jsonagainst a real org returns a JSON array parseable byjson.loadstl sbx image ls(no flag) still renders the table as beforetl sbx image ls --helpdoes NOT show--json(it'shide = true)🤖 Generated with Claude Code