[PR #3] [MERGED] fix: show clear error when only one CLI tool is installed #14

Closed
opened 2026-03-04 01:39:15 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/yigitkonur/cli-continues/pull/3
Author: @barisgirismen
Created: 2/19/2026
Status: Merged
Merged: 2/20/2026
Merged by: @yigitkonur

Base: mainHead: fix/single-tool-error-message


📝 Commits (1)

  • 94b80f5 fix: show clear error when only one CLI tool is installed

📊 Changes

1 file changed (+14 additions, -0 deletions)

View changed files

📝 src/cli.ts (+14 -0)

📄 Description

When only one CLI tool is installed, clack.select() receives an empty options array and crashes with:
Crash

This adds a guard in both places where target tool selection happens. Instead of crashing, it now tells the user which tool was detected and lists the ones they could install:
CleanShot 2026-02-20 at 02 26 48

Summary by CodeRabbit

  • Bug Fixes
    • Improved handling of cross-tool handoff scenarios when no alternative tools are available, with clearer warning messages informing users about missing tools and session constraints.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/yigitkonur/cli-continues/pull/3 **Author:** [@barisgirismen](https://github.com/barisgirismen) **Created:** 2/19/2026 **Status:** ✅ Merged **Merged:** 2/20/2026 **Merged by:** [@yigitkonur](https://github.com/yigitkonur) **Base:** `main` ← **Head:** `fix/single-tool-error-message` --- ### 📝 Commits (1) - [`94b80f5`](https://github.com/yigitkonur/cli-continues/commit/94b80f54eb228b3620ab9a32fabfaf9544b4b2a7) fix: show clear error when only one CLI tool is installed ### 📊 Changes **1 file changed** (+14 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/cli.ts` (+14 -0) </details> ### 📄 Description When only one CLI tool is installed, `clack.select()` receives an empty options array and crashes with: <img width="427" height="32" alt="Crash" src="https://github.com/user-attachments/assets/687e86b5-6444-4354-8a32-c755dd85dc42" /> This adds a guard in both places where target tool selection happens. Instead of crashing, it now tells the user which tool was detected and lists the ones they could install: <img width="519" height="34" alt="CleanShot 2026-02-20 at 02 26 48" src="https://github.com/user-attachments/assets/bc47dcb5-23fb-48d7-948a-25be28c468c1" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved handling of cross-tool handoff scenarios when no alternative tools are available, with clearer warning messages informing users about missing tools and session constraints. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 01:39:15 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cli-continues#14
No description provided.