Skip to content

Add Copilot agent hook status support - #2027

Merged
brennanb2025 merged 4 commits into
mainfrom
brennanb2025/github-copilot-hooks
May 17, 2026
Merged

brennanb2025 merged 4 commits into
mainfrom
brennanb2025/github-copilot-hooks

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented May 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add managed GitHub Copilot hook install/status support alongside the existing agent hooks
  • normalize current Copilot hook events into Orca agent status updates, including blocked/tool/done states
  • read Copilot transcript assistant messages for the sidebar last response, including non-blocking retry after Stop + SessionEnd races
  • keep Copilot hooks installed by default with the other managed agents and respect Copilot hook config details like version and disableAllHooks
  • prevent child PTYs from inheriting parent Orca pane identity env
  • preserve local and SSH relay parity for Copilot hook forwarding

Review Notes

  • Copilot is already a supported TUI agent on main; this PR adds Orca-managed Copilot hooks.
  • Hook config path remains ~/.copilot/hooks/orca.json, matching current GitHub Copilot CLI hook docs.
  • A final Electron pass found and fixed a Stop -> SessionEnd transcript retry race in e606d5ce6.

Validation

  • pnpm run typecheck:node
  • pnpm run typecheck:web
  • pnpm exec vitest run src/main/agent-hooks/server.test.ts src/main/copilot/hook-service.test.ts src/main/agent-hooks/installer-utils.test.ts src/main/daemon/pty-subprocess.test.ts src/main/providers/local-pty-provider.test.ts src/main/ipc/pty.test.ts src/relay/agent-hook-server.test.ts src/main/ipc/register-core-handlers.test.ts src/main/codex-accounts/runtime-home-service.test.ts src/main/codex-accounts/service.test.ts src/shared/agent-hook-listener.test.ts
  • Electron smoke with isolated dev userData: live Copilot CLI run from an Orca PTY showed working -> done and populated lastAssistantMessage exactly matching terminal output.

Made with Orca 🐋

brennanb2025 and others added 4 commits May 15, 2026 19:37
…opilot-hooks

# Conflicts:
#	src/main/agent-hooks/remote-hook-service-installers.test.ts
#	src/main/index.ts
#	src/main/ipc/agent-hooks.ts
#	src/main/ipc/register-core-handlers.test.ts
#	src/preload/api-types.ts
#	src/preload/index.ts
#	src/renderer/src/web/web-preload-api.ts
#	src/shared/agent-hook-listener.ts
#	src/shared/agent-hook-relay.ts
#	src/shared/agent-hook-types.ts
@brennanb2025
brennanb2025 merged commit e671606 into main May 17, 2026
1 check passed
@brennanb2025
brennanb2025 deleted the brennanb2025/github-copilot-hooks branch May 17, 2026 20:05
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant