Skip to content

Fix images list showing team images in personal context#495

Merged
kcoopermiller merged 4 commits intomainfrom
fix/images-list-personal-filter
Apr 6, 2026
Merged

Fix images list showing team images in personal context#495
kcoopermiller merged 4 commits intomainfrom
fix/images-list-personal-filter

Conversation

@rasdani
Copy link
Copy Markdown
Collaborator

@rasdani rasdani commented Apr 6, 2026

Summary


Note

Low Risk
Low risk CLI behavior change limited to prime images list, though it may surprise users who relied on --all to see cross-context results.

Overview
prime images list now always scopes results to the current context: personal by default, or the configured team via teamId when config.team_id is set (instead of conditionally depending on --all).

The --all flag 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.

rasdani and others added 2 commits April 6, 2026 16:31
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>
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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=personal parameter 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.
  • ✅ Fixed: Removed --all flag 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.

Create 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.

Comment thread packages/prime/src/prime_cli/commands/images.py
Comment thread packages/prime/src/prime_cli/commands/images.py
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ 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.

Comment thread packages/prime/src/prime_cli/commands/images.py
@kcoopermiller kcoopermiller merged commit a947799 into main Apr 6, 2026
12 checks passed
@kcoopermiller kcoopermiller deleted the fix/images-list-personal-filter branch April 6, 2026 23:10
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.

3 participants