mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
* fix(runtime): recognize hand-typed native Claude at its startup dialogs A shell-typed claude emits no title at the trust dialog, so nothing asked which process owned the pane, and native Claude's process name is its version (2.1.310). agentWait now identifies a title-less, unowned pane from its foreground process, confirming an unfamiliar name with one process scan whose verdict is kept while that name stays in the foreground. * fix(runtime): scan only native Claude's version-named binary, only when a dialog is on screen Review follow-ups: an untitled, unowned pane earns a foreground read only when its live screen shows a blocked dialog, so plain shells answer without a round-trip; the process scan runs only for a semver-shaped foreground name (native Claude's versions/<semver> binary), never on win32, and only an answered scan is cached. * fix(runtime): don't persist a titleless pane's scanned identity A hand-typed native Claude identified for an interactive-wait query was stored as the pane's foregroundAgent. If the user declined the trust dialog before Claude set a title, no title transition fired, so the shell stayed labelled Claude until the next inventory refresh. The identity now answers only the current query; the per-pty scan cache (keyed by foreground name) keeps repeat queries cheap. Concurrent queries share one in-flight identify, and the version-name match is anchored. * fix(runtime): keep scanned identity out of background refresh; null for disconnected panes - load() matches main again; only identify() consults the confirm-scan cache - disconnected/unreadable panes answer null so the tail path still answers; only timeout is unknown - check pane ownership before projecting the screen - cache only recognized agents, so a not-an-agent verdict is rescanned Co-Authored-By: Claude <noreply@anthropic.com> * fix(runtime): drop a titleless identity read if the pane rebinds; trim tautological tests --------- Co-authored-by: Claude <noreply@anthropic.com>