Skip to content

fix(run): drop unrunnable environments from task disambiguation - #6684

Open
hunger wants to merge 1 commit into
prefix-dev:mainfrom
hunger:push-xsrzxvvvrsso
Open

fix(run): drop unrunnable environments from task disambiguation#6684
hunger wants to merge 1 commit into
prefix-dev:mainfrom
hunger:push-xsrzxvvvrsso

Conversation

@hunger

@hunger hunger commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

A task defined in several environments asked the user to pick between all of them, including environments declared only for platforms this machine cannot run. Narrow the candidates to the runnable ones, unless a --platform was pinned or none of them run here -- then the task is still found and fails with the usual platform error.

Fixes #6624

How Has This Been Tested?

New unit tests

AI Disclosure

  • This PR contains AI-generated content.
    • I have tested any AI-generated content in my PR.
    • I take responsibility for any AI-generated content in my PR.

Tools: Claude

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added sufficient tests to cover my changes.
  • I have verified that changes that would impact the JSON schema have been made in schema/model.py.

A task defined in several environments asked the user to pick between
all of them, including environments declared only for platforms this
machine cannot run. Narrow the candidates to the runnable ones, unless
a `--platform` was pinned or none of them run here -- then the task is
still found and fails with the usual platform error.

Fixes prefix-dev#6624
@hunger
hunger requested a review from baszalmstra July 27, 2026 15:42
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.

Remove unsupported entries in menu when executing tasks that could run in multiple envs

1 participant