Skip to content

Support OSC 7501 agent-status reporting for herdr-app/herdr-core #5320

Closed

Description

@YousefHadder

Feature request

Please add native OSC 7501 (Program Status Protocol) reporting to Copilot CLI so terminals such as the new Herdr app can display Copilot sessions and track their activity.

Current behavior

Copilot CLI launches and works inside a Herdr-managed terminal, but does not appear in the Agents sidebar.

For the running Copilot terminal, hc get <terminal> reports:

{
  "reported": false,
  "status": null
}

Codex running in the same Herdr instance appears in the sidebar and reports:

{
  "reported": true,
  "status": {
    "app": "codex",
    "state": "idle"
  }
}

This remains reproducible when launching Copilot manually from a Herdr terminal or through Herdr’s agent-launch menu.

Expected behavior

Copilot reports its identity and lifecycle state through OSC 7501, allowing Herdr to distinguish:

  • Idle and ready for input
  • Working
  • Waiting for permission or user input
  • Finished or errored

Status reporting should be observational only and should not change permission handling.

Steps to reproduce

  1. Open the new Herdr desktop app backed by herdr-core.
  2. Launch copilot inside a Herdr terminal.
  3. Observe that Copilot runs but is absent from the Agents sidebar.
  4. Run hc get <terminal> and observe that reported is false and status is null.
  5. Launch Codex in another Herdr terminal and observe that it reports status and appears in the sidebar.

Environment

  • OS: macOS, Apple Silicon
  • Copilot CLI: 1.0.106-2
  • herdr-core: 0.1.16

Context

This concerns the new herdr-app / herdr-core, not the older Herdr TUI. The new core relies on program-emitted OSC 7501 reports rather than screen scraping.

Herdr’s protocol overview:
https://herdr.dev/core/#status-from-the-source

Activity

  1. luccahuguet commented on Nov 4, 2026

    @luccahuguet

    very important

  2. mberrishdev commented on Nov 5, 2026

    @mberrishdev

    I can reproduce this on Windows too.

    • Copilot CLI: 1.0.105
    • herdr-core: 0.1.18
    • Shell: PowerShell 7
      Copilot runs normally inside the new Herdr desktop app but doesn’t appear in the Agents sidebar. The process tree is herdr-core.exe → pwsh.exe → copilot.exe, while hc ls displays pwsh.exe.

    Copilot detection works in the older Herdr TUI (0.9.5). Installing herdr integration install copilot succeeds, but doesn’t resolve detection in the new desktop app.

    Is there a recommended hook adapter or workaround until native OSC 7501 support is available?

  3. TimShilov commented on Nov 8, 2026

    @TimShilov

    This issue seems like a duplicate of #5112 which is closed as completed.

  4. YousefHadder commented on Nov 9, 2026

    @YousefHadder
    Author

    True I've noticed the fix in herdr-app, thanks for pointing it out.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions