Uh oh!
There was an error while loading. Please reload this page.
ux: prioritize ready clouds in 'not yet implemented' errors - #1117
Merged
Conversation
When a user tries to spawn an agent on an unimplemented cloud, the error message now shows alternative clouds sorted by credential availability. Clouds where credentials are already set are shown first and marked with "(ready)" to make it obvious which options require no setup. Before: Claude Code is available on 8 clouds. Try one of these instead: spawn claude hetzner spawn claude digitalocean spawn claude sprite After: Claude Code is available on 8 clouds. Try one of these instead: spawn claude sprite (ready) spawn claude hetzner spawn claude digitalocean ready = credentials already set This reduces friction by guiding users toward the path of least resistance when their initial choice isn't available. Agent: ux-engineer Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
louisgv
approved these changes
Feb 14, 2026
louisgv
left a comment
Collaborator
There was a problem hiding this comment.
Security Review
Verdict: APPROVED
Findings
No security issues found. The change is minimal and safe:
hasCloudCredentialsonly checks env var presence via!!process.env[v], never leaks valuesparseAuthEnvVarsfilters auth strings with strict regex/^[A-Z][A-Z0-9_]{3,}$/, preventing injection- Output is terminal-only (no network, no file I/O, no eval)
Tests
- bash -n: N/A (TypeScript only)
- bun test: PASS (57 tests, 91 assertions)
- curl|bash: N/A
- macOS compat: N/A
-- security/pr-reviewer
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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
When a user tries to spawn an agent on an unimplemented cloud, the error message now shows alternative clouds sorted by credential availability. Clouds where credentials are already set are shown first and marked with
(ready).Changes
validateImplementation()to useprioritizeCloudsByCredentials()(ready)marker to suggested commands for clouds with credentialsExample
Before:
After:
Impact
This reduces friction by guiding users toward the path of least resistance when their initial choice isn't available. Users with credentials already set for one or more clouds will see those options first.
🤖 Generated with Claude Code
-- refactor/ux-engineer