claude-code - 💡(How to fix) Fix C:/Program Files/Git/model command does not show interactive picker on Windows (PowerShell 7) [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46759Fetched 2026-04-12 13:33:47
View on GitHub
Comments
2
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×3commented ×2

The /model slash command does not show an interactive picker/dropdown on Windows. Passing the model name as an argument works fine (e.g. /model sonnet), but typing /model alone with no argument produces no interactive selection UI.

Root Cause

The /model slash command does not show an interactive picker/dropdown on Windows. Passing the model name as an argument works fine (e.g. /model sonnet), but typing /model alone with no argument produces no interactive selection UI.

Fix Action

Workaround

Passing the model name directly works:

/model sonnet
/model opus
/model haiku

Code Example

/model sonnet
/model opus
/model haiku
RAW_BUFFERClick to expand / collapse

Description

The /model slash command does not show an interactive picker/dropdown on Windows. Passing the model name as an argument works fine (e.g. /model sonnet), but typing /model alone with no argument produces no interactive selection UI.

Environment

  • OS: Windows 11 Pro (10.0.22621)
  • Shell: PowerShell 7
  • Terminal: Windows Terminal
  • Claude Code version: 2.1.87
  • Node TTY detection: node -e "console.log(process.stdout.isTTY)"true

Steps to Reproduce

  1. Open Claude Code in PowerShell 7 on Windows Terminal
  2. Type /model with no arguments
  3. No interactive picker appears — the command does nothing visible

Expected Behavior

An interactive picker/dropdown should appear to select from available models.

Workaround

Passing the model name directly works:

/model sonnet
/model opus
/model haiku

Notes

Since process.stdout.isTTY returns true, basic TTY detection is not the issue. The picker library may be doing additional Windows-specific checks (e.g. arrow key sequence handling) that fail silently and skip rendering the interactive UI.

extent analysis

TL;DR

The issue may be resolved by investigating the picker library's Windows-specific checks and handling, as basic TTY detection is not the cause.

Guidance

  • Investigate the picker library's code to identify any Windows-specific checks or handling that could be causing the issue.
  • Verify that the library is correctly detecting the TTY and rendering the interactive UI on other platforms.
  • Check the library's documentation and issues for any known problems or workarounds related to Windows support.
  • Consider adding additional logging or debugging statements to the library to help identify where the issue is occurring.

Example

No code snippet is provided as the issue does not include specific code that can be modified or used as an example.

Notes

The root cause of the issue is uncertain and may require further investigation into the picker library's code and behavior on Windows.

Recommendation

Apply workaround: The current workaround of passing the model name directly (e.g. /model sonnet) can be used until the root cause of the issue is identified and resolved. This allows users to still access the models, albeit without the interactive picker.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING