Commit Graph
20 Commits
Author SHA1 Message Date
Ogulcan Celik 6b9b092228 fix: preserve opencode working state
refs #351
2026-05-30 00:51:01 +03:00
Ogulcan Celik b56eeb991e fix: release opencode integration on dispose
refs #314
2026-05-27 18:06:20 +03:00
bfb9e756a0 feat: add Qoder CLI integration (#309)
* feat: add qodercli agent integration

Recognize qodercli as an agent in herdr panes, with basic Idle/Working/
Blocked screen-state detection mirroring the existing claude / codex
patterns. Adds an IntegrationTarget::Qodercli variant, install_target
wiring for shell hooks under src/integration/assets/qodercli/, the
herdr integration install qodercli CLI surface, and sound-override
coverage so qodercli notifications follow the same routing rules as
other agents.

refs #308

* fix: detect qodercli permission required as blocked

refs #308

* fix: detect qodercli ask-user prompt as blocked

refs #308

* refactor: extract has_qodercli_blocked_prompt helper aligning detect_claude

refs #308

* fix: tighten qodercli working state detection

Combine spinner-row strictness and explicit cancel-hint matching, and
stop matching the bare word 'working'. This avoids false positives when
narrative output (logs, commit messages, Markdown) contains the word
'working' or when a stale braille glyph is sitting in the scrollback
from a previous frame.

- has_qodercli_spinner_row: require row-start braille glyph + space +
  alphabetic char so only an active spinner row triggers Working.
- has_qodercli_working_hint: match '(esc to cancel,' as a positive
  signal that survives spinner masking (e.g. when a hook icon replaces
  the spinner glyph).

refs #308

* fix: short-circuit qodercli press-again banners to idle

refs #308

* fix: detect qodercli AskUser dialog by its 'Asking User' title

refs #308

* feat: recognize qodercli, qoderclicn, qoder, qodercn process names

Map qodercli, qoderclicn, qoder, and qodercn process names all to the
Qodercli agent. Covers both international (qodercli/qoder) and CN
(qoderclicn/qodercn) Qoder CLI binary names.

refs #308

* feat: register qodercli hook in qoder settings.json with stdin payload

Address the integration-layer feedback on #308:

- `herdr integration install qodercli` now writes the bundled hook into
  ~/.qoder/hooks/herdr-agent-state.sh AND registers it in
  ~/.qoder/settings.json under the schema documented at
  https://docs.qoder.com/zh/cli/hooks (and confirmed against the
  packages/core/src/hooks/types.ts type definitions in qodercli's own
  source tree). The hooks object is keyed by event name —
  SessionStart / UserPromptSubmit / PreToolUse / PermissionRequest /
  Stop / SessionEnd — with each entry holding a matcher and a list of
  `{ type: "command", command, timeout }` invocations, mirroring how
  install_claude already wires claude code's settings.json.
- The bundled assets/qodercli/herdr-agent-state.sh now reads the hook
  payload from stdin (per HookInput in qodercli's types.ts:
  session_id, transcript_path, cwd, hook_event_name, agent_id, ...).
  No environment variable is consulted to identify the event;
  SubagentStop and subagent release events return early so a recap or
  away-summary frame cannot revive an idle pane, mirroring
  assets/claude/herdr-agent-state.sh.
- uninstall_qodercli reverses the same set of entries while preserving
  any foreign hook entries the user may have configured by hand.
- Tests cover write / idempotency / uninstall-preserves-others and
  lock the stdin contract via a bundled-asset assertion.

refs #308

---------

Co-authored-by: coderwayne <jlu1318079810@163.com>
Co-authored-by: Can Celik <ogulcancelik@gmail.com>
2026-05-27 17:42:26 +03:00
Ogulcan Celik 3750e0bae2 feat: add pane metadata reporting
refs #36
2026-05-26 17:10:28 +03:00
Ogulcan Celik db67e9d74f feat: restore agent sessions
refs #233
2026-05-23 21:37:05 +03:00
Ogulcan Celik ed11779fca feat: add omp integration 2026-05-23 15:19:36 +03:00
Ogulcan Celik f7b26a9117 fix: stop claude subagent completion reviving working
refs #198
2026-05-20 20:42:14 +03:00
Ogulcan Celik fb93e37475 feat: surface agent integrations in onboarding 2026-05-20 00:00:16 +03:00
Ogulcan Celik 104295f492 fix: report codex permission hooks as blocked
refs #198
2026-05-19 22:10:15 +03:00
Ogulcan Celik 2939030cec fix: stop claude post-tool hooks pinning working
refs #198
2026-05-19 21:07:52 +03:00
Ogulcan Celik e7f94a3f35 feat: support hermes agent integration
refs #144
2026-05-19 00:26:05 +03:00
Ogulcan Celik 170d567487 fix: respect integration config dirs
refs #121
2026-05-16 18:31:35 +03:00
Ogulcan Celik bdac7143f6 fix: update codex hooks feature flag
fixes #108
2026-05-14 16:32:07 +03:00
Ogulcan Celik 55cdf2e8f8 fix: stabilize integration agent state reports 2026-05-11 16:13:17 +03:00
Ogulcan Celik c950670dca fix: run integration commands without server 2026-04-29 23:24:36 +03:00
Ogulcan Celik 0ef94cdbc1 fix: improve claude subagent hook lifecycle
fixes #58
2026-04-27 21:13:14 +03:00
Ogulcan Celik fb4e5a73ff fix: ignore claude subagent hook reports
fixes #58
2026-04-27 17:48:08 +03:00
mspiegel31 f3c1c4f386 feat(opencode): report blocked state when question tool fires (#51)
* feat(opencode): report blocked state on question.asked event

* docs: add question.asked/replied/rejected to opencode plugin mapping
2026-04-25 03:25:10 +03:00
Can Celik 28fb23cdaf feat: add claude, codex, and opencode integrations 2026-04-01 23:05:34 +03:00
Can Celik ca4270b31f feat: add authoritative pi hook integration 2026-04-01 19:32:26 +03:00