Fix images list showing team images in personal context#495
Merged
kcoopermiller merged 4 commits intomainfrom Apr 6, 2026
Merged
Fix images list showing team images in personal context#495kcoopermiller merged 4 commits intomainfrom
kcoopermiller merged 4 commits intomainfrom
Conversation
When no team_id is configured, the CLI sent no filtering params, causing the backend to return all accessible images (personal + team). Now sends scope=personal to restrict results to personal images only. The --all flag correctly shows everything in both personal and team contexts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Autofix Details
Bugbot Autofix prepared fixes for both issues found in the latest run.
- ✅ Fixed: Missing
scope=personalparameter in personal context request- Added the missing
elif not config.team_id and not all_images: params["scope"] = "personal"logic to send scope=personal when in personal context without --all flag.
- Added the missing
- ✅ Fixed: Removed
--allflag that PR description requires- Restored the all_images parameter with --all/-a flag to allow users to view all accessible images (personal + team) as described in the PR.
Or push these changes by commenting:
@cursor push 91c3bbd3cf
Preview (91c3bbd3cf)
diff --git a/packages/prime/src/prime_cli/commands/images.py b/packages/prime/src/prime_cli/commands/images.py
--- a/packages/prime/src/prime_cli/commands/images.py
+++ b/packages/prime/src/prime_cli/commands/images.py
@@ -223,15 +223,20 @@
@app.command("list", epilog=LIST_IMAGES_JSON_HELP)
def list_images(
output: str = typer.Option("table", "--output", "-o", help="Output format (table or json)"),
+ all_images: bool = typer.Option(
+ False, "--all", "-a", help="Show all accessible images (personal + team)"
+ ),
):
"""
List all images you've pushed to Prime Intellect registry.
- Shows personal images by default, or team images when a team is configured.
+ By default, shows images in the current context (personal or team).
+ Use --all to show all accessible images including team images.
\b
Examples:
prime images list
+ prime images list --all
prime images list --output json
"""
validate_output_format(output, console)
@@ -240,8 +245,10 @@
# Build query params
params = {}
- if config.team_id:
+ if config.team_id and not all_images:
params["teamId"] = config.team_id
+ elif not config.team_id and not all_images:
+ params["scope"] = "personal"
response = client.request("GET", "/images", params=params if params else None)
images = response.get("data", [])
@@ -256,8 +263,10 @@
return
# Table output
- if config.team_id:
+ if config.team_id and not all_images:
title = f"Team Docker Images (team: {config.team_id})"
+ elif all_images:
+ title = "All Accessible Docker Images"
else:
title = "Personal Docker Images"This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit ea137f9. Configure here.
d42me
approved these changes
Apr 6, 2026
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
Note
Low Risk
Low risk CLI behavior change limited to
prime images list, though it may surprise users who relied on--allto see cross-context results.Overview
prime images listnow always scopes results to the current context: personal by default, or the configured team viateamIdwhenconfig.team_idis set (instead of conditionally depending on--all).The
--allflag is marked deprecated and prints a warning (for non-JSON output), and the table title/help text were updated to reflect the new context-scoped behavior.Reviewed by Cursor Bugbot for commit 83da148. Bugbot is set up for automated code reviews on this repo. Configure here.