You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Devin CLI status hooks never fire on Windows — .cmd path not runnable via sh #20855
Devin CLI sessions show no agent status at all — no working spinner, no done indicator. orca worktree ps --json reports agents: [] for the worktree even while Devin is actively working.
Root cause
The managed hook command installed into %APPDATA%\devin\config.json is the Windows path C:\Users\<user>\.orca\agent-hooks\devin-hook.cmd. Devin CLI executes hook commands through a POSIX shell (Git Bash sh -c), which strips the backslashes, so every invocation fails:
sh: line 1: C:Users<user>.orcaagent-hooksdevin-hook.cmd: command not found
Devin's own log confirms all 8 events fail:
hooks discovery: ... loaded=8 ... by_provider=[devin=8]
WARN agent_ext::hooks::event_handler: Effects evaluator failed for hook None: Command exited with code 127
Verified
sh -c "C:\Users\...\devin-hook.cmd" → exit 127 (reproduces the failure)
sh -c "C:/Users/.../devin-hook.cmd" (forward slashes) → exit 0
Manually POSTing the same payload to http://127.0.0.1:$ORCA_AGENT_HOOK_PORT/hook/devin → HTTP 204, and the agent state appears in worktree ps immediately. So the listener and pipeline are fine — only the hook command path format is broken.
Workaround
Change each hook command in %APPDATA%\devin\config.json to the forward-slash form C:/Users/<user>/.orca/agent-hooks/devin-hook.cmd. Applies to sessions started after the change (hooks load at session start).
Fixed by #27713, merged October 12 (889ddcc). Devin now registers its Windows hook through the shared batch-command builder: an ordinary C:\Users\… path becomes C:/Users/… so Git Bash does not strip the separators. Reinstalling hooks replaces the old managed backslash entries while preserving user hooks. Paths needing quoting use the existing guarded launcher.
The merged PR records real Windows 11 checks for Devin through Git Bash, cmd and PowerShell 5.1: the old Git Bash command exits 127 with no post; the new command exits 0 and posts the hook payload. It also checks direct program launch. I checked the current installer path and reran the Devin hook-service and shared Windows command tests: 16 passed, with 4 platform-specific tests skipped on this Mac.
Closing the path-format failure as fixed. Please update and reinstall Orca’s managed Devin hooks, then start a new Devin session so it reloads the config. If status is still absent, please reopen with the new hook command/error.
Activity
AmethystLiang commentedon Sep 15, 2026
thanks for reporting. looking into it
nwparker commentedon Oct 18, 2026
Fixed by #27713, merged October 12 (889ddcc). Devin now registers its Windows hook through the shared batch-command builder: an ordinary C:\Users\… path becomes C:/Users/… so Git Bash does not strip the separators. Reinstalling hooks replaces the old managed backslash entries while preserving user hooks. Paths needing quoting use the existing guarded launcher.
The merged PR records real Windows 11 checks for Devin through Git Bash, cmd and PowerShell 5.1: the old Git Bash command exits 127 with no post; the new command exits 0 and posts the hook payload. It also checks direct program launch. I checked the current installer path and reran the Devin hook-service and shared Windows command tests: 16 passed, with 4 platform-specific tests skipped on this Mac.
Closing the path-format failure as fixed. Please update and reinstall Orca’s managed Devin hooks, then start a new Devin session so it reloads the config. If status is still absent, please reopen with the new hook command/error.