Repository navigation
Conversation
Kiro sets OSC titles only before its first paint (its executable path, a static 'kiro', then 'Windows PowerShell' under ConPTY) and none through a turn, so once a Kiro hook row ages past the 30-minute freshness window nothing on the terminal says an agent is still there: the pane drops out of 'Send notes to' as 'Agent status is stale'. Kiro now joins the hook-driven synthetic title agents, writing 'Kiro', 'Kiro ready' and 'Kiro - action required' for every state, as ZCode does. The captured Kiro 2.27.1 V3 transcript pins the missing title.
The synthetic 'Kiro ready' title alone did not bring an idle Kiro pane back into 'Send notes to'. The title classifiers only know the agents in AGENT_NAMES, so 'Kiro ready' resolved to no agent and the stale hook row stayed disabled as 'Agent status is stale'. Kiro now joins AGENT_NAMES and the title label maps, the same way Jcode did, and a notes-target test pins the stale-pane promotion reproduced in stablyai#24937.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
ELI5
"Send notes to" lists an idle agent pane only while its hook status is fresh (30 minutes) or while a live terminal title proves the agent is still there. Kiro never sets a terminal title during a turn, so after 30 idle minutes a Kiro pane drops out as "Agent status is stale". Now that Kiro reports hook status (#26695), Orca writes Kiro's titles itself, the same way it already does for ZCode.
What Changed
Before: a Kiro pane idle for more than 30 minutes is disabled in "Send notes to" with "Agent status is stale". @ryoupr reproduced this with real Kiro panes in #24937 (screenshot).
After: Kiro's hook events drive
Kiro,Kiro readyandKiro - action requiredtitles, and the title classifiers read them as Kiro. A stale but live Kiro pane is promoted back to sendable through the same live-title path Codex already uses.Mechanism:
synthetic-agent-title.ts: Kiro joinsSYNTHETIC_AGENT_TITLE_AGENTSwith a profile that synthesizes every state, like ZCode.agent-name-token-match.ts:kirojoinsAGENT_NAMES, so the title classifiers token-match it.agent-title-identity.ts,terminal-title-agent-type.ts,title-derived-pane-agent-identity.ts: map theKirolabel tokiro, the same three places Jcode was added.getTuiAgentRestSignal('kiro')now derives tosynthetic-title.Why
#24178 tried the synthetic-title route on 2026-09-30 and was closed for three reasons. Here is where each one stands now:
agentSpawn,userPromptSubmit,preToolUse,postToolUse,stop), andmain-window-agent-status.tsdrives synthetic titles from hook events.agentSpawnmaps todone, so a default-engine pane getsKiro readyat launch.synthetic-title, which closes the quiet-foreground lane.tui-idle-evidence.test.ts(rest signal agrees with the lanes that can settle a wait) requires this once an agent has a synthetic title, so I did not carve out an exception. The cost for panes with no hooks is listed under known limits.kiro-cli,.kiro,orca-kiro-hooksand paths don't match. A title that is exactlykirodoes, which is the same exposuredevin,zcodeandjcodealready have.Kiro's titles, measured on Windows ConPTY:
--tui --v3), committed askiro-2-27-1-v3-turn.txtkiro,Windows PowerShell). None from working to idle.chat --tui, Orca's default launch)#24177 reports the same for 2.23.0 on Linux.
Linked Issue
Fixes #42058
Refs #24177. This is the synthetic-title fix proposed there, now that #26695 provides the producer.
Visual Proof
N/A for the after state. This changes which panes "Send notes to" can select, and it is pinned by a unit test with the exact stale-row shape from the screenshot above. I did not check it in a running build: this machine can't build Orca's native modules (no VC++ toolset).
Testing
Automated (Windows 11):
notes-send-agent-targets.test.tscase: a stale Kiro hook row, aKiro readypane title and a live PTY make the pane eligible. It fails with only the synthetic-title commit, becauseKiro readyresolved to no agent, and passes with the identity change.synthetic-agent-title.test.ts: Kiro titles for every hook state.kiro-title-transcript.test.ts: the 2.27.1 V3 transcript sets OSC titles only before its first paint.tui-agent-rest-signal.test.tsandtui-idle-evidence.test.ts: Kiro's rest signal and the lane-consistency check.run-typecheck-projects-in-parallelexit 0.oxlintandoxfmt --checkpass on the changed files.mainon this machine. They are Windows path and temp-dir permission failures insession-scanner.test.tsandai-vault-search.test.ts, and the missing Rust toolchain inwindows-hook-payload-delivery.test.ts.Not tested: a running app, macOS, Linux and SSH.
AI Disclosure
Implemented with Claude Opus 5.5 (Anthropic) through Claude Code at my direction. The kiro-cli title behavior above was measured on real installs, not taken from docs.
Review
agentSpawngives aKiro readytitle at launch, sotui-idlewaits settle on the synthetic-title lane instead of a quiet foreground.Known limits:
tui-idlewait on a quiet foreground. That covers V3 onmaintoday, V3 before its first prompt even with feat(kiro): report V3 engine (--v3) status through a global standalone hooks file #24937 (V3 fires nothing until then), and agent configs the installer refuses.kiro, such as a shell in a folder namedkiro, reads as Kiro.Agent skill upstream boundary
Notes
Follow-up to @ryoupr's macOS testing on #24937. This PR is based on
mainand works with #26695's default-engine hooks on its own. With #24937, V3 panes get the same titles.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)