Skip to content

[Bug] Devin CLI status hooks never fire on Windows — .cmd path not runnable via sh #20855

Closed

Description

@dxzcsd123

Version

Orca 1.4.203 on Windows 11

Symptom

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).

Related: #8737 (Windows hook spawn regression), #5731 (Devin SessionStart false Running), #9040 (missing processing indicators).

Activity

  1. AmethystLiang commented on Sep 15, 2026

    @AmethystLiang
    Contributor

    thanks for reporting. looking into it

  2. added theissue type on Sep 19, 2026
  3. nwparker commented on Oct 18, 2026

    @nwparker
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions