orca icon indicating copy to clipboard operation
orca copied to clipboard

[Bug]: The status of Kiro CLIs has not yet been determined.

Open doanbactam opened this issue 4 months ago • 4 comments

Operating system

Windows

Orca version

1.4.126.0

Details

I encountered a problem where the job progress status wasn't displayed in a progress bar like in other CLIs. I've tested it with Kiro CLI V2 and V3. -> open-agents is the version I'm running with Kiro.

Image

doanbactam avatar Jul 07 '26 06:07 doanbactam

Agent reproduction package (Windows orchestration 2026-07-16)

Host context: Windows 11 / Orca 1.4.143.0 / repo path used: docs/bug-reproductions/
Labels applied: see issue labels (has_repro or cannot_repro).
Security: Do not run user-uploaded binaries from issue attachments. Recreate fixtures from the steps/scripts below.


Issue 7693 — Kiro CLI status undetermined

Status: needs_setup
Host: Windows 11 10.0.26200, Orca 1.4.143.0
Label: (none — Kiro CLI not installed)
Issue: https://github.com/stablyai/orca/issues/7693

Summary

Reporter: Kiro CLI (v2/v3 / open-agents) does not show progress/status like other CLIs. This host cannot run Kiro.

Environment

Item Value
kiro / kiro-cli on PATH NOT FOUND
Orca config Kiro is a first-class TuiAgent

Config (source)

// src/shared/tui-agent-config.ts
kiro: {
  detectCmd: 'kiro-cli',          // not `kiro`
  launchCmd: 'kiro-cli chat --tui',
  expectedProcess: 'kiro-cli',
  promptInjectionMode: 'stdin-after-start'
}
  • Catalog includes kiro with faviconDomain: 'kiro.dev'.
  • Hooks list from orca agent hooks status has no dedicated kiro entry (unlike claude/codex/grok/cursor/…). Status may depend more on process/title heuristics than hooks.

Evidence

  • Host tool inventory: kiro absent
  • docs/bug-reproductions/issues/7693.json
  • docs/bug-reproductions/evidence/8302-agent-catalog-ids.txt — kiro listed in catalog

Repro when installed

# After installing https://cli.kiro.dev/install (binary name kiro-cli):
Get-Command kiro-cli
orca terminal create --worktree path:C:/Users/neil/orca/orca --command "kiro-cli chat --tui" --json
# run a long task; watch sidebar for working/done vs undetermined
orca worktree ps --json

Notes

  • Misconfig risk: users launching kiro (wrong name) would never match kiro-cli detection.
  • Issue labels already include agent-workflow, P1.

Conclusion

needs_setup — no Kiro binary; cannot confirm undetermined status live. Config documents real CLI name kiro-cli.


How another agent should use this

  1. Read this comment fully (status, expected vs actual, blockers).
  2. If a script is included above, copy it to a temp file and run it on a Windows 11 host with Orca installed (prefer production install under %LOCALAPPDATA%\Programs\orca).
  3. Capture evidence (CLI --json, screenshots, logs) under a local folder; optionally comment results back here.
  4. If status is cannot_repro / needs_setup, satisfy the listed prerequisites first, then re-attempt and flip labels: remove cannot_repro, add has_repro when conclusive.

OrcaWin avatar Jul 17 '26 00:07 OrcaWin

Still reproducing on macOS with current builds — adding corroboration and the likely root cause.

Environment

  • Orca 1.4.218
  • Kiro CLI 2.27.0 (V3, chat --tui --trust-all-tools --v3)
  • macOS 27.0.1 (Apple Silicon / arm64)

Symptom: A kiro-cli pane shows a static green (idle) dot even while the agent is actively working a turn. Other agents (OpenCode/Pi) correctly flip to the yellow working spinner.

Root cause (confirmed by local inspection): Orca drives the dot from agent-hook events — per #15416, resolvePaneAgentActivity() promotes a pane to working only when there is a fresh hook entry (source:"hook", confidence:"authoritative"), otherwise it falls back to terminal-title detection. kiro-cli never POSTs to the ORCA_AGENT_HOOK_* endpoint. Instead it only writes a turn-marker file at ~/Library/Application Support/kiro-cli/run/turn-markers/-.json (fields pid, turn_started_at_ms, last_alive_at_ms, owner_started_at_s) for the duration of a turn, which Orca's status resolver doesn't consume. With no hook entry and no title match, the pane is never promoted to working, so the dot stays green. Verified live: an active turn had a fresh, heartbeating marker for the pane's host PID while the dot remained green.

Suggested fix (either side):

  • Orca: watch kiro-cli/run/turn-markers/ and correlate marker PID → pane to set working/idle, as a source:"turn-marker" activity source; or
  • kiro-cli: emit agent_start / tool_execution_start / agent_end to the ORCA_AGENT_HOOK_* endpoint like the OMP/pi extension does.

This is the same missing-status piece referenced by the Kiro orchestration-worker request #12093.

mingisme avatar Oct 02 '26 15:10 mingisme

#33660 (merged) adds status for Kiro's V3 engine, including the built-in default agent. Please retest on kiro-cli ≥2.31 with V3 enabled (or after Kiro CLI 3.0). On V2 you still need a custom default agent (kiro-cli agent create + set-default).

nwparker avatar Oct 25 '26 23:10 nwparker

Closing as a duplicate of #24177 so Kiro status is tracked in one place. Short version: the Kiro V3 default agent already reports status (#33660), and we're waiting for Kiro CLI v3's general release, which has better support, before adding the rest. Please follow #24177 for updates.

nwparker avatar Oct 27 '26 05:10 nwparker