Skip to content

fix(terminal): keep keys typed while an agent tab connects, in order - #43787

Draft
brennanb2025 wants to merge 5 commits into
brennanb2025/launch-agent-as-terminalfrom
brennanb2025/agent-typeahead-at-connect
Draft

brennanb2025 wants to merge 5 commits into
brennanb2025/launch-agent-as-terminalfrom
brennanb2025/agent-typeahead-at-connect

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #43698 (merge that first; this PR's base is its branch).

Problem

When you open an agent tab and start typing right away, the keys you type before the terminal has connected are held and pasted into the agent once it is ready. If you keep typing after the terminal connects, that held part is dropped (with a notice) and only the later keys reach the agent: typing ademarkqz across the connect delivered only qz.

Change

With #43698, Orca's zsh wrapper runs the agent launch itself, so anything written to the terminal while the tab starts waits in the terminal's input queue and the agent reads it in order. The daemon now reports that in the spawn result, and when it holds:

  • the renderer writes the held keys (up to 512 bytes) to the terminal at the moment it connects, before any later key, so typing that spans the connect reaches the agent whole and in order;
  • the same applies to a cold-restored (--resume) tab, which also starts a new process through the wrapper;
  • if that write is refused, the held text goes to the existing recoverable notice instead of being lost.

Everything else keeps the current behavior (held and pasted when the agent is ready): longer drafts, launches that also paste a launch-time prompt, shells other than zsh, Windows/WSL, remote terminals, and reattaching to a running session.

If the shell never runs Orca's wrapper (no line editor, a profile that replaces the shell, or startup past the 15 s timeout), the daemon types the launch itself, clearing the line first with Ctrl-E then Ctrl-U so earlier keys can't turn it into command not found. It then reports that it typed the launch. The pane takes back the keys it sent at connect and runs the existing path: paste them once the agent is ready, or show the recoverable notice if more was typed after connect. Nothing typed before connect is lost silently.

Tests

  • agent-pre-ready-typed-draft.test.ts: a wrapper launch sends the held keys at bind, ahead of later typing.
  • agent-pre-ready-typed-draft.test.ts: when the host reports it typed the launch, keys sent at bind are pasted again, or offered in the notice if typing followed.
  • terminal-host-startup-type-ahead.node-pty.test.ts: with a real zsh that has no line editor, the host types the launch once and reports it once for that process.

Known limits

  • Keys typed before bind now reach the agent as raw keys, the same way keys typed after bind already did with fix(terminal): send keystrokes typed while an agent tab starts to the agent, not the shell #43698. An agent that opens a selection menu at startup sees them as menu keys.
  • In that fallback, if the user typed before connect and then moved the cursor left in vi-insert mode, the typed launch fails with command not found; the typed text is offered back in the notice. No line-clear prefix fixes vi-insert safely.
  • In that fallback, keys typed after connect (while the shell is still starting) are cleared by the line clear before the typed launch, with no notice. Without the clear they would prefix the launch and break it (command not found).
  • In that fallback, a read in a startup file can consume the keys sent at connect, and the agent also gets them through the paste.
  • "Refused" covers the renderer's enqueue only. A host-side refusal after that (a PTY whose input already closed) isn't reported back, the same as the existing paste path.

…later typing

When Orca's zsh wrapper runs the launch, the daemon reports it in the spawn result and the renderer writes a short pre-connect draft to the PTY at bind, so typing that spans the connect reaches the agent in order. Longer drafts, launch-time prompts and typed launches keep the existing paste-when-ready path, and the daemon's typed fallback clears the line before the launch.
@brennanb2025

Copy link
Copy Markdown
Contributor Author

Perf scan: #43787 (head 2ba091d76ca)

Scope: git diff origin/brennanb2025/launch-agent-as-terminal...HEAD (16 files, +121/−6). I treated #43698's diff only as context. I read the code and ran nothing: no builds, typecheck, tests or benchmarks.

Findings

None. The diff adds no P0 or P1 perf regression.

Work the diff adds

Each line reads: trigger → owner / process → work per event → bound.

  1. Daemon spawnAndPublishSession (terminal-host-session-publish.ts:125, :263)
    • Trigger: once per new session whose launch the shell wrapper runs.
    • Owner / process: terminal-host daemon.
    • Work: one \x15 byte is put ahead of the wrapper submission string. One optional boolean is spread into the create-or-attach result.
    • Bound: O(1) per spawn. No new I/O, timer or subprocess.
  2. Main DaemonPtySpawnResult (daemon-pty-spawn-result.ts:39)
    • Trigger: once per spawn reply.
    • Owner / process: Electron main.
    • Work: one conditional spread of a literal.
    • Bound: O(1). This object was already built for every spawn.
  3. IPC pty:spawn response and renderer projection (ipc-pty-connect-result.ts:19, ipc-pty-connect.ts:127)
    • Trigger: once per spawn.
    • Work: one extra optional boolean in the existing response, and one small { shellWrapperLaunch } object passed to onPtySpawn.
    • Bound: O(1). No new channel, invoke or send.
  4. Renderer onPtySpawn and the cold-restore bind (active-pane-pty-binding.ts:137, fresh-spawn-start.ts:239-243)
    • Trigger: once per fresh spawn or cold restore of a pane.
    • Work: a field is assigned on the per-pane session bag, plus one boolean option on the existing bindActivePanePty call. The bind count is unchanged; the only addition is the || options.newProcess === true term in its freshSpawn argument.
    • Bound: O(1) per bind.
  5. Renderer onAgentPreReadyDraftPtyBound wrapper fast path (agent-pre-ready-typed-draft.ts:129-144)
    • Trigger: the pane's first bind, and only when its phase is capturing and it holds a non-empty draft. Every exit moves the phase to closed, so this runs at most once per pane lifetime.
    • Population: agent panes that are local and not paired (resolveAgent() excludes runtimeEnvironmentId and bufferInputUntilConnect panes) and that had keys typed before connect.
    • Work:
      • One TextEncoder.encode(draft). The draft is capped by PTY_PRECONNECT_INPUT_MAX_CODE_UNITS, which is 1 Mi code units.
      • Then either one transport.sendInput of ≤512 bytes (TYPED_STARTUP_LINE_PROMPT_BUDGET_BYTES), or fallback to the existing path.
      • If the send fails, the draft is dropped through the existing dropDraft notice. There is no retry loop.
    • Bound: once per pane, O(draft) for the encode, and one PTY write.
    • This path does less than the existing route. It skips waitForAgentDraftInputReady, which waits up to the agent's paste-ready timeout, and it skips the bracketed-paste write.

Subscriptions and publications

The diff adds or changes none:

  • no store selector, subscribe, IPC listener, event emitter or notify;
  • no new store write (dropDraft was already there and fires once on failure).

Listener census: no change. Send rate: 0/s idle and 0/s under load. The only new transmission is one ≤512-byte PTY write per qualifying pane bind.

Regression classes touched

  • Hot-path rescans: the regex matched the TextEncoder.encode over the draft, and I disproved it. The encode runs once per pane lifetime, behind the phase === 'capturing' gate, not per chunk or keystroke.
    • Worst case is one encode of a 1 Mi-code-unit preconnect paste at a pane's first bind, which is a one-time constant.
    • Optional improvement, not a finding: a draft.length > 512 pre-check could skip the encode, because UTF-8 bytes ≥ UTF-16 code units.
  • Eager startup imports: new value import of shared/agent-launch/startup/startup-line-prompt-carry. Disproved: it is already value-imported by about 9 renderer modules (new-workspace.ts, quick-startup-plan.ts, the folder-workspace startup modules, and others), and its own imports (tui-agent-config, tui-agent-startup) are already on this file's graph. The eager module set does not grow.
  • Per-entity state outlives the entity: session.spawnShellWrapperLaunch lives on the per-pane session bag and is released with the session. There is no global Map or Set. Disproved.
  • Update published when nothing changed / whole snapshot published: no publish sites. No matching code.
  • All other classes: no matching code (no timers, polls, subprocesses, sync fs or SQLite, fan-out, or streaming re-processing).

Six questions

  1. Unused work before the skip gate. Reviewed. The phase and draft === '' gates run before the encode, so panes without a draft pay nothing.
  2. Ownership multiplication. Reviewed. Everything is per pane and once per bind. At the reference fleet of a few hundred terminals and 100+ agents, the cost scales only with how many panes actually spawn, at O(1) each.
  3. Thread and storage. Reviewed. Daemon and main see an O(1) object spread per spawn. The renderer main thread does one bounded encode per qualifying pane. No SQLite or fs.
  4. Growth and progress. Reviewed. The draft is capped at 1 Mi code units. A failed send drops and closes, so nothing is retained or retried.
  5. Execution host. Reviewed. Remote and paired panes are excluded by resolveAgent(). Older hosts omit the flag, which falls back to the existing paste path at no extra cost. Platform: the change is a byte prefix and a flag, with no new probes. Not measured on Windows, WSL or SSH.
  6. Obsolete work stops. Reviewed. The fast path closes phase synchronously, so no promise waiter, timer or listener is left behind. Disposed panes return early in bindActivePanePty.

Paths examined

  • Daemon create-or-attach publish
  • Main daemon spawn-result adapter
  • Preload pty:spawn typing
  • Renderer IPC connect and projection
  • Fresh-spawn adoption / cold restore
  • Active-pane bind
  • The pre-ready typed-draft module, including the existing paste fallback and dropDraft

Hosts: local daemon, reasoned from source. Remote and SSH panes were checked only for exclusion.

Residual gaps

  • No runtime evidence. The impact above is stated as source-proven counts, not timings.

…aunch itself

When the shell wrapper never claims the launch, the daemon types it with an
erase prefix that also wipes keys the renderer sent at bind. The daemon now
reports that typed launch per incarnation; main tracks and forwards it, and
the pane re-runs its paste-or-notice path with the keys it sent. The prefix
becomes Ctrl-E then Ctrl-U so it clears the whole line in more shells.
@brennanb2025

Copy link
Copy Markdown
Contributor Author

Perf scan — #43787 @ be0953e03ee (stacked on #43698)

Verdict: no perf findings (no P0/P1). Scope: git diff origin/brennanb2025/launch-agent-as-terminal...HEAD (32 files, +509/−92). This scan follows the repair commit be0953e03ee. The earlier perf comment graded 2ba091d76ca. I read the code only. I ran no builds, tests or benchmarks, so this report makes no timing claims. Every cost below is a source-proven count with its trigger.

Work added (trigger → owner/thread → work → bound)

# Work Trigger / rate Owner · thread Work per event Bound / cleanup
1 Daemon types the fallback launch with a \x05\x15 prefix, then calls fallback.onTyped() → markSessionStartupLaunchTyped (session-shell-ready-barrier.ts:214-219, session-input-path.ts:48) Only on the onShellReadyTimeout path, after the claim proves the wrapper never ran. startupCommandFallback is nulled before the claim, so it runs at most once per session incarnation daemon · per Session 1 WeakMap-keyed lookup, 1 bool write, 1 viewer callback Once per incarnation. The path is keyed by Session, so it goes away with the session
2 startupLaunchTyped stream event (daemon-terminal-admission.ts:200-213) Same as #1. Sent only when a viewer is attached daemon → main socket 1 control event plus 1 flush(clientId). This is the same shape as the existing inputClosed ≤1 per incarnation per attached client
3 isSessionStartupLaunchTyped on reattach/create results (terminal-host-session-create.ts:84, -publish.ts:265 shellWrapperLaunch) Per createOrAttach daemon 1 map lookup. 1 optional field on the reply Constant
4 DaemonPtyIncarnationFlags (daemon-pty-incarnation-flags.ts): a second per-session Map<sessionId, Set<incarnationId>> that sits next to inputClosed record per event (#2). sync per spawn reply, now 2 flags × O(1) Electron main · adapter singleton O(1) Map/Set ops sync collapses each set to ≤1 live incarnation. delete(sessionId) runs in the same teardown as activeSessionIds.delete (daemon-pty-runtime-state.ts:185). record() returns false on a duplicate, so main never re-emits the same fact
5 Main forwards the fact → pty:startupLaunchTyped (daemon-pty-event-subscriptions.ts:52-66, bind-listeners.ts:75-81) Only when #4 record() is new Electron main 1 emit over the existing backgroundStreamListeners, then 1 webContents.send with {id, incarnationId} ≤1 per incarnation
6 Hot write path write/writeWithSettlement/prepareWrite (daemon-pty-session-input.ts) Per keystroke / PTY write Electron main Unchanged: the isClosed → inputClosed.has rename adds one property hop. startupLaunchTyped is not consulted on the write path Constant
7 Renderer pre-handler buffer preHandlerLaunchTyped (pty-pre-handler-buffer.ts:189-205) A fact that arrives with no watcher. This is the common case for timed-out launches with no typed-ahead keys renderer · module singleton 1 Map set + sequence increment Capped at PRE_HANDLER_PTY_EXIT_MAX_PTYS = 64 by evictOldestPtyIfAtCap. Cleared by take on watch, the prior-incarnation fence in ipc-pty-connect.ts:123, clearPreHandlerPtyState on exit/shutdown, and the discarded-state gate. Worst case is 64 tiny {incarnationId, sequence} entries, which stays the same at 10× fleet
8 Watcher registry launchTypedWatchers (pty-startup-launch-typed.ts) One registration per bind that sent held keys (fresh spawn + wrapper launch + non-empty draft ≤512 B) renderer · module singleton, ≤1 entry per PTY Map get/set. The closure keeps text (≤512 B) and the pane session Removed when the fact fires, by forgetPtyLaunchTyped on every exit (pty-dispatcher.ts:192), by discardAgentPreReadyDraft on pane dispose() (pane-pty-binding.ts:180), and on rebind to a different PTY (forgetSentAtBind). When the wrapper claims the launch (the success path), the entry stays until exit or dispose. That is ≤1 entry per live PTY, with no growth over time or history
9 encoder.encode(draft).byteLength budget check (agent-pre-ready-typed-draft.ts:152) Once per bind while capturing renderer O(draft bytes) once One-time per bind. It does not run per keystroke
10 onPtySpawn / cold-restore bind carry shellWrapperLaunch + incarnationId (ipc-pty-connect.ts, fresh-spawn-start.ts, active-pane-pty-binding.ts) Per spawn / bind renderer 2 field writes Constant

Subscription / publication census

  • New IPC channel pty:startupLaunchTyped. It has 1 ipcRenderer.on listener per renderer window, installed once in attachPtySecondaryPushListeners next to onWriteUnavailable, with its unsubscribe pushed onto the same list. Dispatch is one Map.get(id) over a registry with ≤1 entry per PTY. It does not fan out per pane.
  • Main: no new listener. The event rides the existing single onBackgroundStream subscriber in bindProviderListeners as a new kind branch. liveRendererContents() is a pure extraction of the existing destroyed-window guard.
  • Daemon: no new subscription. It adds the optional onStartupLaunchTyped callback to the existing per-viewer stream client.
  • Send rates. Idle: 0/s, because no timer, poll or cadence was added. Under load: ≤1 event per new PTY incarnation whose shell-ready barrier timed out and whose fallback claim won. That is bounded by the terminal spawn rate, not by fleet size. At the reference fleet (a few hundred terminals, 100+ agents), a mass restore of N agents sends at most N events in total, each O(1) on main and renderer. Hook-status, PTY-chunk and keystroke rates have no effect on it.

Regression classes touched

Class Disposition
Per-entity state outlives the entity Matched, disproved. The main flag map is deleted in the same teardown as activeSessionIds. The renderer pre-handler map is capped at 64 and cleared on exit, shutdown and the fence. The watcher map is cleared on fire, exit, dispose and rebind (#4, #7, #8)
Update published when nothing changed Matched, disproved. record() dedups by incarnation before main emits. The daemon source fires at most once because startupCommandFallback is nulled before the claim
Hot-path rescans Matched, disproved. The only scan is the one-time TextEncoder pass over a draft of ≤ budget size per bind. Nothing was added per chunk or per keystroke
Sync fs/SQLite on Electron main No matching code. The claim file read stays in the daemon, as before
Fixed-cadence poll / subprocess per item / unbounded fan-out / eager imports No matching code. There is no new timer, no spawn and no Promise.all. The only new import is a local module

Six questions

  1. Unused work before the skip gate. Reviewed. Main emits only after record() returns new. The renderer buffers a 2-field record only when no watcher exists. Nothing is serialized or parsed beyond {id, incarnationId}.
  2. Ownership multiplication. Reviewed. There is one IPC listener per window and one main subscriber. Per-PTY state is ≤1 entry and does not multiply per pane or per mount.
  3. Thread / storage. Reviewed. All new work on main and the renderer is O(1) Map work with no sync I/O. The daemon writes one launch line, which it already wrote before this change; the change only adds 2 bytes.
  4. Growth / progress. Reviewed. Nothing scales with worktrees, history or uptime. The buffer is capped, and each watcher is one-shot.
  5. Execution host. Reviewed by code only. The event is produced by the local daemon terminal host. SSH and relay providers do not emit it, so they add no cost; whether they need the event is a correctness question, not a perf one. Windows, WSL and Linux follow the same barrier path with no host-specific probes. I did not verify this on those hosts.
  6. Obsolete work stops. Reviewed. Pane dispose and rebind drop the watcher. A late fact for a disposed or rebound pane is rejected by session.disposed || getPtyId() !== ptyId before deliverAfterAgentReady. Exit drops the watcher (incarnation-fenced) and pre-handler state. A late fact for a discarded PTY is not buffered (discardedPreHandlerPtyStates gate).

Paths examined: daemon barrier/session-input-path/terminal-admission/host create+publish; main adapter incarnation flags, spawn-result sync, event subscriptions, bind-listeners; preload bridge; renderer dispatcher, pre-handler buffer, launch-typed registry, typed-draft bind, connect/fresh-spawn/active-pane binding. Host: macOS code reading only.

Residual gaps: no runtime evidence (no builds/benchmarks per reviewer constraint); Windows/WSL/Linux and SSH-relay behaviour not exercised.

…don't resend keys after an early typed launch

The daemon's create-or-attach reply dropped shellWrapperLaunch, so the renderer never took the bind-time path. A launch the host typed before the pane bound now keeps the held keys on the paste-when-ready path instead of writing them raw and pasting them again, and a typed-launch fact first learned from an attach reply is forwarded like the stream event.
@brennanb2025

Copy link
Copy Markdown
Contributor Author

Perf scan — #43787 @ 4aa8805 (stacked on #43698)

Range: origin/brennanb2025/launch-agent-as-terminal...HEAD, and the repair be0953e03ee..HEAD (sync()-driven startupLaunchTyped emission, pre-bind buffered-fact check). I only read code. Per reviewer constraint I ran no builds, tests or benchmarks.

Findings: none. Every piece of new work runs at most once per spawn or attach, on paths that already do far more. Nothing runs per keystroke, per PTY chunk or per status update, and nothing scales with the fleet.

Work added (trigger → owner/thread → work × consumers → bound)

Work Trigger / rate Cost & bound
Daemon fallback.onTyped() → markSessionStartupLaunchTyped → viewer.onStartupLaunchTyped → sendIncarnationEvent (enqueue + flush(clientId)) Once per session, and only when the host fallback wins claim() (the wrapper didn't claim the launch) 1 Map.get + 1 control frame of about 80 B + 1 flush. One viewer per input path. Same shape as the existing inputClosed
\x05\x15 prefix on the fallback launch line Same as above 2 extra bytes in one write
shellWrapperLaunch / startupLaunchTyped fields on createOrAttach / spawn result / renderer connect result Once per spawn or attach reply Constant boolean spreads. isSessionStartupLaunchTyped is 1 WeakMap-style lookup
Main DaemonPtyIncarnationFlags.sync() now syncs two flags instead of one Once per spawn or attach reply Two O(1) Map/Set operations. record() dedupes per incarnation, so onRecorded fires at most once per incarnation even when both the stream event and a later attach reply report it (the repair's goal)
Main startupLaunchTyped emit to backgroundStreamListeners → bind-listeners → webContents.send('pty:startupLaunchTyped') At most once per incarnation 1 listener (see census). 1 IPC message of about 60 B to the single owning window
Renderer deliverPtyLaunchTyped Per IPC message (≤ 1 per incarnation) 1 Map.get. Then it either fires the one-shot watcher or buffers into preHandlerLaunchTyped
Renderer bind gate in onAgentPreReadyDraftPtyBound: encoder.encode(draft) + takePreHandlerPtyLaunchTyped + one sendInput Once per pane bind while the pane is capturing Encodes a draft that is only typed-ahead text, so it is small. 1 Map get+delete. 1 IPC write
watchPtyLaunchTyped one-shot watcher Only when keys were sent at bind ≤ 1 entry per ptyId (overwrite by key)
Existing input-path checks incarnationFlags.inputClosed.has(...) (renamed from inputClosedIncarnations.isClosed) Per write (hot) Unchanged cost: same Map+Set lookup

Subscription / publication census

  • Daemon → main stream event startupLaunchTyped: one producer per session (the single path.viewer). Idle rate is 0. Under load it is ≤ 1 per spawn that falls back to host-typed launch. Spawn bursts are already bounded by spawn admission. 100+ agents restoring at once means ≤ 100 one-off frames, each riding a flush that the spawn reply already pays.
  • Main backgroundStreamListeners: census is 1, the bindProviderListeners subscription. bindProviderListeners unsubscribes its prior handle before rebinding, so the count does not grow. The new kind is handled in the existing callback, so no new subscription was added.
  • Main → renderer pty:startupLaunchTyped: a new IPC channel. Census is 1 ipcRenderer.on per window. It is installed in attachPtySecondaryPushListeners, which runs once from the latched ensurePtyDispatcher. Watchdog reattach pushes its unsubscribe into pushListenerUnsubscribes alongside the others, so it does not leak. Send rate: idle 0, load ≤ 1 per incarnation. It goes only to the owning window, not broadcast.
  • Renderer watchers: at most 1 per pty that sent keys at bind. launchTypedWatchers is keyed by ptyId.

Retention / teardown (Q6)

  • Main startupLaunchTyped flag Set: sync() collapses it to {currentIncarnation} or deletes it on each reply. It is deleted with its siblings in the session-removal path (incarnationFlags.delete, daemon-pty-runtime-state.ts). Bound: ≤ 1 id per live session between replies.
  • Daemon SessionInputPath.startupLaunchTyped: a boolean on the existing per-Session entry. The entry is keyed by Session, so it dies with the generation.
  • Renderer preHandlerLaunchTyped: capped at PRE_HANDLER_PTY_EXIT_MAX_PTYS = 64 through evictOldestPtyIfAtCap. Entries are removed by bind's take, clearPreHandlerPtyState (exit delivery, shutdown, discard TTL) and the prior-incarnation fence, and are skipped for ptys already discarded. A fact for a pane that never watches stays until pty clear or eviction, so the worst case is a constant 64 tiny entries.
  • Renderer launchTypedWatchers: removed on fire, on pty exit (forgetPtyLaunchTyped in the exit handler), and on pane dispose (dispose → discardAgentPreReadyDraft → forgetSentAtBind). Rebinding to a different ptyId also drops the old watcher.

Regression classes touched

Class Disposition
Update published when nothing changed Matched and disproved. record() returns early for an already-flagged incarnation, so the emit happens only on first record. The daemon side fires from one onTyped, after the one claim() win
Per-entity state outlives the entity Matched and disproved. All three new maps have deletes in the same teardown as their siblings, or a cap (above)
Hot-path rescans No matching code. Write-path checks are unchanged O(1)
Fixed-cadence poll / loop No matching code. There are no timers. waitForAgentDraftInputReady was only extracted into deliverAfterAgentReady, and its existing timeout bound is unchanged
Subprocess per item / sync fs or SQLite on main No matching code
Unbounded fan-out No matching code. Only one-shot sends
Eager startup imports Matched and disproved. The new imports are local modules plus one shared constant; no SDKs

Six questions

  1. Unused work before the gate: Reviewed. The renderer bind gate puts the cheap boolean checks before encoder.encode. Main forwards the fact without building any payload beyond {id, incarnationId}.
  2. Ownership multiplication: Reviewed. There is one IPC listener per window and one main listener. Each pane/pty has at most one watcher.
  3. Thread / storage: Reviewed. Daemon, Electron main and renderer each pay O(1) per event. No sync fs or SQLite is involved.
  4. Growth / progress: Reviewed. Nothing grows with history or fleet. The one-shot watcher has no retry loop.
  5. Execution host: Reviewed statically. The event is produced by the local daemon host path. Other providers simply never emit it (zero cost). Windows/WSL/SSH were not exercised.
  6. Obsolete work stops: Reviewed. Watchers are cleared on dispose, exit and rebind. The pre-handler fact is fenced by incarnation and capped.

Paths examined: daemon session-shell-ready-barrier → terminal-host-session-publish → session-input-path → daemon-terminal-admission; main daemon-pty-adapter / -event-subscriptions / -incarnation-flags / -runtime-state / -spawn-result / -session-input → bind-listeners; preload pty-bridge-session-control; renderer pty-dispatcher, pty-pre-handler-buffer, pty-startup-launch-typed, agent-pre-ready-typed-draft (perf-surface-detect target), active-pane-pty-binding, fresh-spawn-start, ipc-pty-connect(-result). For context, #43698's diff was not re-graded here.

Residual gaps: no runtime evidence (no builds or benchmarks, per reviewer constraint). Windows/WSL/Linux and SSH-relay behaviour were not exercised.

This branch has not been deployed

No deployments
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.

1 participant