[Bug]: Windows: bundled CLI wrapper (orca.cmd) looks for Orca.exe in wrong directory
Operating system
Windows 11
Orca version
No response
Details
Environment: Windows 11, Orca installed via .exe installer at
C:\Users\<user>\AppData\Local\Programs\orca\
Issue: The bundled CLI wrapper at
resources\app.asar.unpacked\resources\win32\bin\orca.cmd fails with:
Unable to locate Orca.exe next to "C:\Users
The wrapper expects Orca.exe to be adjacent to the win32 directory,
but in the Windows install layout Orca.exe lives at the installation
root, four levels up.
Impact: The orca CLI is unusable on Windows out of the box, which
blocks the orchestration skill workflow
(npx skills add ... --skill orchestration) since agents can't invoke
orca terminal commands.
Note: There's no visible option under Settings to register the CLI on this build either (searched Settings for "CLI" — only Gemini CLI credentials appears).
Happy to provide more details. Thanks for the great product.
Agent reproduction package (Windows orchestration 2026-07-16)
Host context: Windows 11 / Orca 1.4.143.0 / repo path used: docs/bug-reproductions/
Labels applied: see issue labels (has_repro or cannot_repro).
Security: Do not run user-uploaded binaries from issue attachments. Recreate fixtures from the steps/scripts below.
Issue 7351 — bundled orca.cmd looks for launcher in wrong directory
Status: repro_confirmed (partial — unpacked shim) / primary path fixed
Host: Windows 11, Orca 1.4.143 install
Label: has_repro
Summary
Issue claimed the wrapper looks for Orca.exe next to the win32 tree and fails. On 1.4.143:
| Shim | Behavior |
|---|---|
resources\bin\orca.cmd |
Works — launches adjacent orca.exe (native CLI), status --json OK |
resources\app.asar.unpacked\resources\win32\bin\orca.cmd |
Fails — looks for orca.exe next to itself; file missing |
So orchestration/skills using the primary resources\bin path work. Anything that still points at the unpacked win32\bin\orca.cmd hits the failure:
Unable to locate the native Orca CLI launcher at
"...\app.asar.unpacked\resources\win32\bin\orca.exe"
Repro (another agent)
powershell -NoProfile -ExecutionPolicy Bypass -File docs/bug-reproductions/scripts/repro-7351-orca-cmd-path.ps1
# Expect exit 0 (partial repro: unpacked broken, primary OK)
Manual:
"%LOCALAPPDATA%\Programs\orca\resources\bin\orca.cmd" status --json
"%LOCALAPPDATA%\Programs\orca\resources\app.asar.unpacked\resources\win32\bin\orca.cmd" status --json
Evidence
- Script writes
docs/bug-reproductions/evidence/7351-*.json - Unpacked path error text captured in script log
Notes
- Issue also labeled
os:macosincorrectly for a Windows install-layout bug. - Primary CLI is fixed relative to original report; keep open until unpacked shim is removed or points at install-root CLI.
Repro script: repro-7351-orca-cmd-path.ps1
# Repro / verify for https://github.com/stablyai/orca/issues/7351
# Bundled orca.cmd path resolution for Orca.exe / orca.exe.
#
# Usage:
# powershell -NoProfile -ExecutionPolicy Bypass -File docs/bug-reproductions/scripts/repro-7351-orca-cmd-path.ps1
#
# Exit 0 = unpacked win32 shim still broken (partial repro)
# Exit 2 = primary path works and unpacked also works (fixed)
# Exit 1 = script error / primary path broken unexpectedly
$ErrorActionPreference = 'Continue'
$evidenceDir = Join-Path (Split-Path $PSScriptRoot -Parent) 'evidence'
New-Item -ItemType Directory -Force -Path $evidenceDir | Out-Null
$stamp = Get-Date -Format 'yyyyMMdd-HHmmss'
$log = Join-Path $evidenceDir "7351-$stamp.log"
function Log($m) { $l = "[$(Get-Date -Format o)] $m"; Add-Content $log $l; Write-Host $l }
$installRoot = 'C:\Users\neil\AppData\Local\Programs\orca'
$candidates = @(
(Join-Path $installRoot 'resources\bin\orca.cmd'),
(Join-Path $installRoot 'resources\app.asar.unpacked\resources\win32\bin\orca.cmd')
)
Log "=== Issue 7351: orca.cmd launcher path ==="
Log "Install root: $installRoot"
Log "Orca.exe exists: $(Test-Path (Join-Path $installRoot 'Orca.exe'))"
Log "resources\bin\orca.exe exists: $(Test-Path (Join-Path $installRoot 'resources\bin\orca.exe'))"
$results = @()
foreach ($cmdPath in $candidates) {
$exists = Test-Path $cmdPath
Log "--- $cmdPath exists=$exists ---"
if (-not $exists) {
$results += [ordered]@{ path = $cmdPath; exists = $false; success = $false }
continue
}
$text = Get-Content $cmdPath -Raw
Log $text
$out = & cmd.exe /c "`"$cmdPath`" status --json" 2>&1 | Out-String
$code = $LASTEXITCODE
Log "exit=$code"
Log $out
$results += [ordered]@{
path = $cmdPath
exists = $true
exitCode = $code
looksForOrcaExeAdjacent = ($text -match 'Orca\.exe')
looksForOrcaCliAdjacent = ($text -match 'orca\.exe')
success = ($code -eq 0)
outputSnippet = $out.Substring(0, [Math]::Min(500, $out.Length))
}
}
$json = Join-Path $evidenceDir "7351-$stamp.json"
@{ issue = 7351; stamp = $stamp; results = $results; log = $log } | ConvertTo-Json -Depth 6 | Set-Content $json -Encoding utf8
Log "Wrote $json"
$unpacked = $results | Where-Object { $_.path -like '*app.asar.unpacked*' } | Select-Object -First 1
$bin = $results | Where-Object { $_.path -match 'resources\\bin\\orca\.cmd$' } | Select-Object -First 1
if ($bin -and $bin.success) {
Log "resources\bin\orca.cmd WORKS - primary CLI path OK"
}
if ($unpacked -and -not $unpacked.success) {
Log "REPRO (partial): unpacked win32 orca.cmd cannot find adjacent orca.exe"
exit 0
}
if ($bin -and $bin.success -and $unpacked -and $unpacked.success) {
Log "Both shims work - cannot_repro / fixed"
exit 2
}
if ($bin -and $bin.success) {
Log "Primary path OK only"
exit 2
}
exit 1
How another agent should use this
- Read this comment fully (status, expected vs actual, blockers).
- If a script is included above, copy it to a temp file and run it on a Windows 11 host with Orca installed (prefer production install under
%LOCALAPPDATA%\Programs\orca). - Capture evidence (CLI
--json, screenshots, logs) under a local folder; optionally comment results back here. - If status is
cannot_repro/ needs_setup, satisfy the listed prerequisites first, then re-attempt and flip labels: removecannot_repro, addhas_reprowhen conclusive.