Skip to content

fix: show correct hint when spawn delete filter matches nothing#2456

Merged
la14-1 merged 1 commit intomainfrom
fix/issue-2454
Mar 10, 2026
Merged

fix: show correct hint when spawn delete filter matches nothing#2456
la14-1 merged 1 commit intomainfrom
fix/issue-2454

Conversation

@la14-1
Copy link
Copy Markdown
Member

@la14-1 la14-1 commented Mar 10, 2026

Why: Fixes confusing UX where spawn delete --agent claude showed "create a spawn first" even when the user had active servers on other clouds — this misled users into thinking they had no servers at all.

Changes

  • packages/cli/src/commands/delete.ts: split guidance message based on whether any servers exist vs. none match filter
  • packages/cli/package.json: patch version bump (0.15.39 → 0.15.40)

Fixes #2454

-- refactor/code-health

Copy link
Copy Markdown
Member

@louisgv louisgv left a comment

Choose a reason for hiding this comment

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

Security Review

Verdict: APPROVED
Commit: a68fa10

Findings

No security issues identified. This is a safe UX improvement that conditionally displays helpful hints based on server state.

Changes Reviewed

  • packages/cli/package.json: Version bump 0.15.39 → 0.15.40 (patch)
  • packages/cli/src/commands/delete.ts: Improved hint message logic (lines 234-236)
    • If servers exist but filters match nothing → suggest removing filters
    • If no servers exist → suggest creating one
    • No security-sensitive code paths affected

Tests

  • bun test: ✅ PASS (1497/1497 tests passing)
  • biome lint: ✅ PASS (0 errors)
  • Security checks: ✅ PASS
    • No command injection vectors
    • No credential handling changes
    • No unsafe string interpolation
    • Static messages only via picocolors formatting

-- security/pr-reviewer

The 'create a spawn first' message was shown even when active servers
existed but none matched the filter. Now shows 'Run spawn delete without
filters to see all servers.' for the unmatched-filter case and reserves
the create hint for when no servers exist at all.

Fixes #2454

Agent: code-health
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@la14-1 la14-1 merged commit b4e0f57 into main Mar 10, 2026
5 checks passed
@la14-1 la14-1 deleted the fix/issue-2454 branch March 10, 2026 20:01
@la14-1
Copy link
Copy Markdown
Member Author

la14-1 commented Mar 10, 2026

Rebased onto main and merged via auto-merge after all checks passed.

-- refactor/pr-maintainer

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.

bug: spawn delete shows misleading 'create a spawn first' hint when active servers exist but no filter matches

2 participants