Skip to content

[Bug]: Installed ast-grep and gh are not detected on windows #1269

@YanzheL

Description

@YanzheL

Prerequisites

  • I will write this issue in English (see our Language Policy)
  • I have searched existing issues to avoid duplicates
  • I am using the latest version of oh-my-opencode
  • I have read the documentation

Bug Description

I installed ast-grep and gh.
bunx oh-my-opencode doctor shows they're not installed

Steps to Reproduce

install ast-grep and gh

npm i -g @ast-grep/cli
choco install gh

verify version:

ast-grep --version
gh --version

output

ast-grep 0.40.5

gh version 2.86.0 (2026-01-21)
https://github.com/cli/cli/releases/tag/v2.86.0

run doctor

bunx oh-my-opencode doctor

Expected Behavior

doctor correctly detected these tools

Actual Behavior

doctor shows these tools are not installed

Doctor Output

oMoMoMoMo... Doctor


Installation
────────────────────────────────────────
  ✓ OpenCode Installation → 1.1.43
  ✓ Plugin Registration → Registered

Configuration
────────────────────────────────────────
  ✓ Configuration Validity → Valid JSON config
  ✓ Model Resolution → 9 agents, 7 categories (12 overrides), 2368 available

Authentication
────────────────────────────────────────
  ✓ Anthropic (Claude) Auth → Auth plugin available
  ✓ OpenAI (ChatGPT) Auth → Auth plugin available
  ○ Google (Gemini) Auth → Auth plugin not installed

Dependencies
────────────────────────────────────────
  ⚠ AST-Grep CLI → Not installed (optional)
  ⚠ AST-Grep NAPI → Not installed (optional)
  ⚠ Comment Checker → Not installed (optional)

Tools & Servers
────────────────────────────────────────
  ⚠ GitHub CLI → Not installed (optional)
  ✓ LSP Servers → 1/4 servers available
  ✓ Built-in MCP Servers → 2 built-in servers enabled
  ○ User MCP Configuration → No user MCP configuration found
  ○ MCP OAuth Tokens → No OAuth tokens configured

Updates
────────────────────────────────────────
  ⚠ Version Status → Unable to determine current version

Summary
────────────────────────────────────────

  8 passed, 0 failed, 5 warnings, 3 skipped
  Total: 16 checks in 2269ms

⚠ All systems operational with warnings.

Error Logs

Configuration

Additional Context

No response

Operating System

Windows

OpenCode Version

1.1.43

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions