Skip to content

feat(kiro): report Kiro agent status and list Kiro sessions in history - #26695

Merged
nwparker merged 9 commits into
stablyai:mainfrom
w-felipe360:feat/kiro-agent-status
Oct 9, 2026
Merged

nwparker merged 9 commits into
stablyai:mainfrom
w-felipe360:feat/kiro-agent-status

Conversation

@w-felipe360

@w-felipe360 w-felipe360 commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Orca knows what a coding agent is doing because the agent "pings" Orca at key moments: prompt sent, tool running, turn finished. Kiro never pinged Orca, so Orca could launch Kiro but never knew when it was working or done. Orca also builds its session history by reading the files each agent saves, and it never read Kiro's. This PR teaches Orca both.

What Changed

Before:

  • In a Kiro pane the pet never reacted.
  • The sidebar never showed Kiro as working.
  • No "agent finished" notification fired.
  • Agent session history had no Kiro conversations.

Other agents behaved normally.

After:

  • Kiro shows as working while it runs and flips to done when the turn ends. The pet reacts and the completion notification fires, the same as for other agents.
  • Kiro conversations appear in Agent session history with title, project, model and preview, and resume with one click.

Mechanism:

  1. Status hooks (src/main/kiro/). Kiro has no global hook file; hooks live inside each agent config.
    • Orca adds one managed hook per event (agentSpawn, userPromptSubmit, preToolUse, postToolUse, stop) to every agent in $KIRO_HOME/agents/*.json (default ~/.kiro). The user's own hooks are left untouched, and uninstall removes only Orca's entries.
    • The hook script posts to the existing hook server at /hook/kiro. Kiro runs hooks through PowerShell on Windows and sh elsewhere, so the existing wrappers are reused.
    • SSH hosts get the same install, under the remote host's own KIRO_HOME (read from its login shell, like GROK_HOME).
  2. Event normalizer (providers/kiro-events.ts). Kiro's payload has the same fields as Claude's (session_id, prompt, tool_name, tool_input, assistant_response), only with camelCase event names, so it reuses the existing Claude tool-field extraction.
  3. Resume after restart. The hook reports Kiro's session_id, so a restored pane can reopen the same conversation with kiro-cli chat --tui --resume-id <id>, gated on a new host capability (see Notes).
  4. Session history (session-scanner-kiro-parser.ts).
    • Reads $KIRO_HOME/sessions/cli/<id>.json (metadata) plus <id>.jsonl (transcript). The transcript is streamed, because tool outputs make these files megabytes.
    • Subagent child sessions (parent_session_id) are left out, the same way Claude's subagents are.
    • Works locally, under WSL and over SSH. The history row resumes with the same kiro-cli chat --tui --resume-id <id>.

Why

Hooks feed the one status store every other agent already uses (the hook server's). Pets, sidebar, notifications and mobile pick Kiro up with no reader-side changes. History plugs Kiro into the existing session scanner the same way, as one more agent source with its own parser.

Alternatives considered:

  • Reading Kiro's terminal screen. Its title is a static kiro and never reflects working or idle, so there is nothing reliable to match.
  • Launching Kiro with an Orca-owned --agent. This would override the user's chosen default agent and drop their tools and permissions.
  • Overriding the built-in kiro_default agent file. We can't reproduce its built-in config faithfully.

Known limit: a user who only uses the built-in kiro_default agent has no file to patch. The hook status names the agents directory and points them to kiro-cli agent create.

Status and history ship together because together they fix the issue as users report it: Kiro looks invisible in Orca. They touch separate files (hooks vs. session scanner), so each half can be reviewed on its own commit.

Linked Issue

Fixes #26694
Fixes #11743

Related PRs

#24937 and #24938, by @LDH1103, add Kiro status and history for the V3 engine (kiro-cli chat --tui --v3). They install a standalone hook file in ~/.kiro/hooks/ and read ~/.kiro/sessions/<hash>/sess_*/session.json. This PR covers the V2 engine that Orca launches by default, which #24937 describes as not firing those standalone hooks. Here the hooks go into each agent file in ~/.kiro/agents/, and history comes from ~/.kiro/sessions/cli/. Both PRs add src/main/kiro/hook-service.ts, so they conflict; I offered in #24937 to rebase this one onto theirs as a V2 fallback.

Visual Proof

Before → after: the current Orca release (no pet reaction, no notification, no Kiro rows in Agent session history), then this branch with the same prompt.

orca-kiro-pr-26695.mp4

Testing

Maintainer validation and adversarial fixes are documented in this review: 3,531 tests passed, full typecheck and changed-code quality passed, and authenticated Kiro CLI 2.29.0 was exercised in a hidden macOS Electron app through prompt, tool, completion, history listing, and successful history resume. Repairs preserve unsupported user hook configs, detect missing launchers, keep KIRO_HOME in history workers, use the remote execution host's history path, and prevent duplicated resume command arguments.

The following is the original contributor's Windows validation:

Tested on Windows 11 with kiro-cli 2.28:

  • Real payloads. Captured Kiro's hook payloads in the --tui mode Orca launches. All five events fire. Subagents do not fire the parent's hooks.
  • End to end. Installed the real managed hooks into a throwaway home and ran Kiro against a local capture server. userPromptSubmit → preToolUse → postToolUse → stop arrived on /hook/kiro with the right token and pane key. Kiro's answer was unchanged, which confirms the hook writes nothing into the model context.
  • Real history. Parsed 452 real local Kiro sessions: 420 listed, 32 subagent children skipped, 0 failures, about 7 s cold for about 1.1 GB of transcripts.
  • Resume. Verified that kiro-cli chat --tui --resume-id <id> restores the conversation.
  • Not manually tested: macOS, Linux and SSH hosts. These are covered by unit tests and the remote installer registry.

Automated:

  • New tests: src/main/kiro/hook-service.test.ts (local, KIRO_HOME, SSH with detected and default home, uninstall), providers/kiro-events.test.ts, src/shared/kiro-home.test.ts, the remote KIRO_HOME probe in managed-hook-runtime.test.ts, and session-scanner-kiro-parser.test.ts. Kiro is added to the hook registry coverage, resume-capability and every-agent vault fixture tests.

  • Checks: pnpm tc passes. The Kiro, hook-registry, hook-listener, resume and Kiro parser tests pass.

  • Pre-existing Windows failures: some src/main/agent-hooks tests (spool, installer-utils, hook-script-outside-orca, local-tmux-managed-pty) and AI Vault scanner/search tests fail on Windows. They fail the same way on main without this change.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

AI Disclosure

Implemented with Claude Code (Claude Opus 5.5), directed and reviewed by me.

Review

AI agent review summary:

  • Cross-platform: the Windows hook is a .cmd launched through Kiro's PowerShell wrapper; macOS/Linux get a POSIX sh script. Paths use path.join locally and path.posix for SSH.
  • SSH / remote / local: SSH hosts are installed over SFTP (or the host-local adapter) under the remote KIRO_HOME. Hook events reach the host's own hook server, so status stays owned by the execution host.
  • Agent and integration compatibility: only Orca's own hook entries are added or removed; user hooks and other agent fields are preserved. No other agent's hook path changes.
  • Performance: the hooks are fire-and-forget POSTs with the shared managed-hook timeout; installs read a handful of small JSON files. Kiro transcripts are streamed line by line within the shared per-record byte budget, and parses are cached by the .json and .jsonl stats.
  • Security: agent files are written atomically with a rolling .bak; files that don't parse are reported and left alone. Hook stdout stays silent, because Kiro injects agentSpawn/userPromptSubmit output into the model context.
  • UI: no new UI; existing pets, sidebar, notifications and the history list show Kiro.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

  • Remote compatibility: adding kiro to the resumable agents widens terminal.ensureAgentSession's enum, so Kiro resume is gated on a new agent-session.kiro-resume.v1 runtime capability and older hosts fall back instead of failing. An older relay ignores /hook/kiro, and older clients filter out unknown agents, so they drop Kiro rows from a newer host's session list.
  • Approval pauses have no Kiro hook, so they read as working (the agent is mid-tool).
  • Mobile: reads the same status store, so no change needed.

Author

X: @felipesf360

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

Kiro keeps hooks inside each agent config, so Orca installs one managed
hook per event into $KIRO_HOME/agents/*.json (locally and on SSH hosts
under the remote KIRO_HOME) and normalizes the payloads on /hook/kiro.
Pets, sidebar, notifications and mobile now see Kiro working and done.
Kiro resume is gated on a new agent-session.kiro-resume.v1 capability.
@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 7 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4e63dc34-bb9d-4925-a38f-49aa5b6aa74b

📥 Commits

Reviewing files that changed from the base of the PR and between 0ec31b6 and 385e922.


📒 Files selected for processing (52)
  • config/tsconfig.cli.json
  • src/main/agent-hooks/installer-utils-remote.ts
  • src/main/agent-hooks/managed-agent-hook-registry.ts
  • src/main/agent-hooks/managed-hook-command-contract.test.ts
  • src/main/agent-hooks/managed-hook-local-filesystem.ts
  • src/main/agent-hooks/managed-hook-runtime.test.ts
  • src/main/agent-hooks/managed-hook-runtime.ts
  • src/main/agent-hooks/remote-hook-service-registry-coverage.test.ts
  • src/main/agent-hooks/remote-managed-hook-installers.ts
  • src/main/agent-hooks/server-retired-pane-new-turn.test.ts
  • src/main/ai-vault-search/session-search-agent-compatibility.test.ts
  • src/main/ai-vault/remote-session-scanner-kiro-source.ts
  • src/main/ai-vault/remote-session-scanner-kiro.test.ts
  • src/main/ai-vault/remote-session-scanner-sources.ts
  • src/main/ai-vault/remote-session-scanner.ts
  • src/main/ai-vault/session-scanner-agent-parser.ts
  • src/main/ai-vault/session-scanner-agent-sources.ts
  • src/main/ai-vault/session-scanner-every-agent-fixture.ts
  • src/main/ai-vault/session-scanner-kiro-fixtures.ts
  • src/main/ai-vault/session-scanner-kiro-parser.test.ts
  • src/main/ai-vault/session-scanner-kiro-parser.ts
  • src/main/ai-vault/session-scanner-opencode-sqlite-coexistence.test.ts
  • src/main/ai-vault/session-scanner-parse-cache.ts
  • src/main/ai-vault/session-scanner-service-env.test.ts
  • src/main/ai-vault/session-scanner-service-env.ts
  • src/main/ai-vault/session-scanner-test-fixtures.ts
  • src/main/ai-vault/session-scanner-types.ts
  • src/main/ai-vault/session-scanner.test.ts
  • src/main/kiro/hook-service.test.ts
  • src/main/kiro/hook-service.ts
  • src/main/kiro/hook-settings.ts
  • src/main/runtime/rpc/methods/ai-vault-search.test.ts
  • src/relay/ai-vault-service-entry.ts
  • src/relay/session-search-transport.test.ts
  • src/renderer/src/runtime/agent-resume-host-authority-capability.test.ts
  • src/renderer/src/runtime/agent-resume-host-authority-capability.ts
  • src/shared/agent-hook-listener/provider-dispatch.ts
  • src/shared/agent-hook-listener/provider-event-routing.ts
  • src/shared/agent-hook-listener/providers/kiro-events.test.ts
  • src/shared/agent-hook-listener/providers/kiro-events.ts
  • src/shared/agent-hook-listener/providers/kiro-tool-fields.ts
  • src/shared/agent-hook-listener/source-routing.ts
  • src/shared/agent-hook-relay.ts
  • src/shared/agent-hook-types.ts
  • src/shared/agent-resume-argv.ts
  • src/shared/agent-session-resume-runtime-capabilities.ts
  • src/shared/agent-session-resume.ts
  • src/shared/ai-vault-resume-command.ts
  • src/shared/ai-vault-types.ts
  • src/shared/kiro-home.test.ts
  • src/shared/kiro-home.ts
  • src/shared/tui-agent-startup-kiro-resume.test.ts


No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7eab91e2-a340-4743-9aad-ebc8ff4464b8

📥 Commits

Reviewing files that changed from the base of the PR and between bd88d5c and 0ec31b6.


📒 Files selected for processing (2)
  • src/main/ai-vault/session-scanner-kiro-parser.test.ts
  • src/main/ai-vault/session-scanner-kiro-parser.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.



📝 Walkthrough

Walkthrough

The change adds managed Kiro hooks to local and remote agent configurations and routes Kiro hook events into status normalization. It adds Kiro session scanning, session-ID extraction, and resume command support. Kiro resume support is gated by a runtime capability.


Priority: ➖ Normal

Severity of issue fixed: Medium

Merge Risk: ⚪ Minimal · up to 0ec31

Kiro history resumes use the validated session filename, so mismatched metadata cannot change the resume target. No actionable merge risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 31.34% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 67 functions across 42 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check Passed The PR meets the coding requirements in directly linked issues [#26694] and [#11743]. Kiro hooks cover all five required events, preserve user hooks, and send events to /hook/kiro, which enables exi…
Out of Scope Changes check Passed The changes stay within issues [#26694] and [#11743]. Registry updates, home resolution, remote installation, event normalization, parser streaming, fixture changes, and capability gating support Kiro…
Title check Passed The title clearly and concisely summarizes the two primary changes: Kiro status reporting and session history support.
Description check Passed The description is complete and detailed. It covers the user impact, implementation, rationale, linked issues, testing, platform considerations, security, performance, and checklist status.


  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 64355089-a6b7-4566-88d8-65a8dda5a801
📥 Commits

Reviewing files that changed from the base of the PR and between 59b9bde and f94267c.

📒 Files selected for processing (28)
  • config/tsconfig.cli.json
  • src/main/agent-hooks/installer-utils-remote.ts
  • src/main/agent-hooks/managed-agent-hook-registry.ts
  • src/main/agent-hooks/managed-hook-command-contract.test.ts
  • src/main/agent-hooks/managed-hook-local-filesystem.ts
  • src/main/agent-hooks/managed-hook-runtime.test.ts
  • src/main/agent-hooks/managed-hook-runtime.ts
  • src/main/agent-hooks/remote-hook-service-registry-coverage.test.ts
  • src/main/agent-hooks/remote-managed-hook-installers.ts
  • src/main/agent-hooks/server-retired-pane-new-turn.test.ts
  • src/main/kiro/hook-service.test.ts
  • src/main/kiro/hook-service.ts
  • src/main/kiro/hook-settings.ts
  • src/renderer/src/runtime/agent-resume-host-authority-capability.test.ts
  • src/renderer/src/runtime/agent-resume-host-authority-capability.ts
  • src/shared/agent-hook-listener/provider-dispatch.ts
  • src/shared/agent-hook-listener/provider-event-routing.ts
  • src/shared/agent-hook-listener/providers/kiro-events.test.ts
  • src/shared/agent-hook-listener/providers/kiro-events.ts
  • src/shared/agent-hook-listener/providers/kiro-tool-fields.ts
  • src/shared/agent-hook-listener/source-routing.ts
  • src/shared/agent-hook-relay.ts
  • src/shared/agent-hook-types.ts
  • src/shared/agent-resume-argv.ts
  • src/shared/agent-session-resume-runtime-capabilities.ts
  • src/shared/agent-session-resume.ts
  • src/shared/kiro-home.test.ts
  • src/shared/kiro-home.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Comment thread src/main/kiro/hook-service.ts Resolved
Reads $KIRO_HOME/sessions/cli/<id>.json metadata plus the streamed
<id>.jsonl transcript locally, under WSL and over SSH, skips subagent
child sessions, and resumes with kiro-cli chat --tui --resume-id <id>.
@w-felipe360 w-felipe360 changed the title feat(kiro): report Kiro agent status through managed hooks feat(kiro): report Kiro agent status and list Kiro sessions in history Oct 9, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
src/main/ai-vault/session-scanner-kiro-parser.ts (1)

102-110: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Validate that metadata.session_id matches the file name.

A non-UUID session_id in the metadata would override the file's basename. The resume command would then use that value. This is unlikely for real Kiro metadata. If the field is wrong, resume fails for that row.

Prefer the validated basename as the resume ID. Use session_id only as a fallback.


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 033793f6-f994-4eee-80b7-872d8f3d34e6
📥 Commits

Reviewing files that changed from the base of the PR and between f94267c and d57a797.

📒 Files selected for processing (15)
  • src/main/ai-vault/remote-session-scanner-kiro-source.ts
  • src/main/ai-vault/remote-session-scanner-sources.ts
  • src/main/ai-vault/session-scanner-agent-parser.ts
  • src/main/ai-vault/session-scanner-agent-sources.ts
  • src/main/ai-vault/session-scanner-every-agent-fixture.ts
  • src/main/ai-vault/session-scanner-kiro-fixtures.ts
  • src/main/ai-vault/session-scanner-kiro-parser.test.ts
  • src/main/ai-vault/session-scanner-kiro-parser.ts
  • src/main/ai-vault/session-scanner-opencode-sqlite-coexistence.test.ts
  • src/main/ai-vault/session-scanner-parse-cache.ts
  • src/main/ai-vault/session-scanner-test-fixtures.ts
  • src/main/ai-vault/session-scanner-types.ts
  • src/main/ai-vault/session-scanner.test.ts
  • src/shared/ai-vault-resume-command.ts
  • src/shared/ai-vault-types.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@w-felipe360

Copy link
Copy Markdown
Contributor Author

Applied the CodeRabbit nitpick on session-scanner-kiro-parser.ts in 0ec31b6. History rows now resume by the session file name, which the scanner already validates as a UUID, so a wrong session_id in Kiro's metadata can no longer change the resume id. Added a test for that case.

@nwparker

nwparker commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Maintainer review: I did not accept the original head as-is. Fixed these defects before approval:

  • Restored panes appended chat --tui twice. Resume arguments now contain only the session selector; regression tests cover POSIX, PowerShell, cmd.exe, and captured remote launches.
  • Installation overwrote unsupported user hook structures. Local and remote installers now preserve those files and report them. Missing managed scripts and unreadable configurations also produce accurate installation status.
  • The history worker dropped KIRO_HOME, and remote history ignored the execution host's override. Desktop and relay workers now retain it; remote scanning uses the host's path, with default-home and Windows-path regression coverage.
  • Older-peer search tests now explicitly exclude the new agent, and an untyped filesystem test callback is replaced with a typed call.

Validation on macOS with authenticated Kiro CLI 2.29.0, in a hidden Electron app built from this branch: installed real hooks; submitted a prompt; approved and ran a harmless shell tool; observed real working and done events with the provider session ID; listed the saved conversation in Agent Session History; clicked Resume in New Tab; verified the resumed agent recalled its earlier answer; ran another real tool turn successfully. No status events were injected.

Before the history environment fix, this same custom home showed no Kiro rows:

Before: missing history

After: real history, successful resume, and completed tool turn:

After: resumed real Kiro session

Local checks: 3,531 tests passed (23 skipped), all pnpm tc projects passed, and changed-code quality passed. Additional focused tests passed after the callback fix. CI remains the merge gate. Live Linux/Windows/SSH Kiro runs and physical OS notification banners were not exercised on this desktop. Tool approval pauses remain working, since Kiro V2 supplies no approval hook. Built-in-only agents need a user agent config before hooks can be installed.

Compared #24937 and #24938: they implement the opt-in V3 engine and do not replace this default V2 integration. They remain separate work; I am not merging them as part of this issue.

@nwparker nwparker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the default V2 integration against the existing V3 proposals. Blocking resume, user-config preservation, installation-status, and custom-home history defects have been fixed with regression tests. Authenticated Kiro 2.29.0 was exercised in a hidden macOS Electron app through real hooks, tool execution, history, and successful conversation resume; evidence and remaining validation limits are in the maintainer review comment. Approval applies to 10a6940; merge remains contingent on green CI.

@nwparker

nwparker commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Additional live validation: the bundled pet has a fixed animation, so I used a temporary test sprite with distinct working and done rows in an isolated app profile. A real Kiro prompt and shell tool drove both the tab indicator and the pet from working to done. Only the visual test asset was supplied; status was received from the real managed hooks, without injected events.

Real hook drives working row

Real stop hook drives done row

The existing pet renderer emits a React shorthand-style warning when switching sprite rows; the correct rows render. This PR does not change that component. Physical OS notification banners remain unverified, as noted above.

@nwparker nwparker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed 385e922 after updating the remaining older-peer test expectations and resolving the new OpenCode 2 resume overlap from main. All 73 focused resume and transport tests pass. Production Kiro behavior is unchanged from the real CLI validation and attached screenshots. Waiting for the final head CI before merge.

@nwparker

nwparker commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Final-head update (385e9227cb06f4e7c1b8a58dd5a02768b1be56e3): the full CI suite found two more older-client search expectations that incorrectly included Kiro. Reproduced the four failures locally, corrected the expectations, and passed 35 focused compatibility tests. Updated from main and resolved its OpenCode 2 resume overlap by retaining both agents' full history-launch commands; all 73 focused resume/transport tests pass. Full local typecheck and changed-code quality also pass after that merge. Waiting for final-head CI before merge.

Remote scope clarification: the existing SSH session policy skips POSIX managed-hook installation on Windows hosts. This adds Kiro to local native installation and POSIX remote installation; it does not change that Windows SSH policy. Remote history honors the execution host's path, including Windows paths. Actual Windows SSH Kiro status remains outside the live validation described above.

@nwparker
nwparker merged commit 150bf49 into stablyai:main Oct 9, 2026
61 checks passed
brennanb2025 added a commit that referenced this pull request Oct 9, 2026
…gents (#27002)

#26695 added Kiro to the history-search agent catalog and updated the
unit tests, but the cross-version wire tests still built their expected
older-host agent list as 'everything except the agents added later',
which now included Kiro. Older hosts never accepted Kiro, and the
client correctly withholds it, so those 7 tests failed on main.
nwparker pushed a commit that referenced this pull request Oct 10, 2026
…gents

#26695 added Kiro to the history-search agent catalog and updated the
unit tests, but the cross-version wire tests still built their expected
older-host agent list as 'everything except the agents added later',
which now included Kiro. Older hosts never accepted Kiro, and the
client correctly withholds it, so those 7 tests failed on main.

(cherry picked from commit 5eac4a6)
LDH1103 added a commit to LDH1103/orca that referenced this pull request Oct 10, 2026
…sessions

Takes main's Kiro session history (stablyai#26695) for every file both sides
touched: agent registration, search negotiation, resume command, parse
cache and the kiro parser. The V3 store is re-applied on top in the next
commit.
LDH1103 added a commit to LDH1103/orca that referenced this pull request Oct 10, 2026
stablyai#26695 lists the default engine's $KIRO_HOME/sessions/cli store. Sessions
from the opt-in V3 engine (--v3) live in a separate store,
~/.kiro/sessions/<workspace-hash>/sess_<uuid>/session.json with a sibling
messages.jsonl, so they never showed up in Agent Session History.

Add that store as a second root of the same kiro source, locally, under WSL
and over SSH, with its own parser. Rows stay agent 'kiro', so search
negotiation and resume need no change: kiro-cli --resume-id reopens a sess_
id on the engine it was created with.

- The V3 root is the home's .kiro, not KIRO_HOME: kiro-cli 2.27.1 V3 ignores
  KIRO_HOME and always writes ~/.kiro/sessions.
- With KIRO_HOME unset the cli/ root sits inside the V3 root, so the V3 walk
  skips cli/, UUID and dot directories and only enters sess_<uuid> dirs.
- The session id is the validated sess_<uuid> directory name, as stablyai#26695 does
  with the V2 file name.
- A manifest without messages.jsonl lists as a session with no messages.
LDH1103 added a commit to LDH1103/orca that referenced this pull request Oct 10, 2026
Takes main's default-engine Kiro integration (stablyai#26695) for every file both
sides added: hook registry, remote installers, resume argv and capability,
and the /hook/kiro event routing. The V3 standalone hooks are re-applied on
top in the next commit.
LDH1103 added a commit to LDH1103/orca that referenced this pull request Oct 10, 2026
… file

Kiro's opt-in V3 engine (--v3) refuses default-engine agent configs and
loads ~/.kiro/hooks/*.json instead, so the hooks stablyai#26695 installs into each
agent never fire there. Install one Orca-owned standalone hooks file next to
them, locally and over SSH, and normalize V3's PascalCase events on the same
/hook/kiro route.

- The file always lives under the home's .kiro, not KIRO_HOME: kiro-cli
  2.27.1 V3 ignores KIRO_HOME for both hooks and sessions.
- It is installed even with no custom agent, since V3 applies it to the
  built-in default agent too.
- A same-named file Orca did not write (other entries, unknown fields, a
  non-v1 version, unparsable JSON) is left untouched and reported as an
  error, matching the default-engine installer.
- SessionStart is ignored: V3 fires it lazily right before the first prompt.
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.

[Feature]: Kiro CLI agent-status hooks and session history [Feature]: Agent session history support for Kiro CLI

2 participants