Skip to content

Typecheck terminal waits - #27602

Merged
nwparker merged 1 commit into
mainfrom
nwparker/runtime-terminal-waits
Oct 14, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/runtime-terminal-waits

Conversation

@nwparker

@nwparker nwparker commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​331 $\color{#cf222e}{\Huge{\mathbf{−}}}$​25 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​306
Prod 25 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​276 $\color{#cf222e}{\Huge{\mathbf{−}}}$​147 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​129

ELI5

Type errors now surface in terminal waits. Users keep the same behavior.

What Changed

Removes 4 unchecked-file baseline entries. Replaces unchecked assumptions with types from the existing producers and installed services. Moves include src/main/runtime/runtime-terminal-idle-polls.ts → src/main/runtime/terminal/wait/terminal-idle-polls.ts, src/main/runtime/orca-runtime-get-terminal-interactive-wait.ts → src/main/runtime/terminal/wait/terminal-interactive-wait.ts.

Why

Keep contracts tied to the code that implements them, without a broad assertion on the runtime or a duplicate host model.

Linked Issue

N/A — maintainer restructuring.

Visual Proof

N/A — no visual or interaction change.

Testing

All 32 runtime stages passed the main/runtime typecheck. Four compiler projects and 2,029 affected tests under each runner passed (one existing skip); the packaging prerequisite leaves those TypeScript inputs unchanged.

The cumulative stack at 5c731f58 passed the full five-shard unit run: 116,625 tests passed, with no unhandled errors. Actual macOS arm64 and Windows packages passed CLI checks; macOS also covered folder workspaces, measured terminal sizing and an older managed SSH peer, and Windows covered ConPTY cleanup and packaged/standalone host commands. The actual Linux AppImage passed the canonical Ubuntu 20.04 runtime-floor check.

Separate full mobile verification also passed. The complete hosted run also passed: changed E2E, managed SSH (38 passed, two explicit skips), layout (21 passed) and terminal sizing (18 passed). In one matched CI pair, preflight took 179 seconds before and 192 seconds after; the slowest unit job took 620 and 613 seconds. The baseline’s unchanged 1ms-sensitive assertion passed one targeted retry. Queue and retry time remain separate; no overall speedup is claimed. Individual PR checks are tracked separately from this cumulative evidence.

Review

Merge 10/33, after nwparker/runtime-terminal-identity. Human review and merge only; no auto-merge.

Agent skill upstream boundary

  • Not applicable; no upstream skill source is copied.

Notes

Execution-host ownership and mixed-peer behavior are preserved. Final validation includes Windows, SSH and folder workspaces.

Checklist

  • Explained the behavior, mechanism and approach.
  • No visual change; relevant local checks pass.
  • Reviewed initialization, compatibility and execution ownership.
  • Final-stack macOS, Windows and Linux runtime-floor checks complete.
  • Full-stack hosted CI passed; individual PR results are available in the Checks tab.

@nwparker nwparker mentioned this pull request Oct 11, 2026
6 tasks done
@nwparker
nwparker force-pushed the nwparker/runtime-terminal-waits branch from 18e333f to c2bc152 Compare October 13, 2026 18:36
@nwparker nwparker changed the title refactor(runtime): give terminal waits checked ownership Typecheck terminal waits Oct 13, 2026
@nwparker
nwparker force-pushed the nwparker/runtime-terminal-identity branch from 1f88708 to 4cc82ca Compare October 13, 2026 20:53
@nwparker
nwparker force-pushed the nwparker/runtime-terminal-waits branch from c2bc152 to 42af810 Compare October 13, 2026 20:53
@nwparker
nwparker marked this pull request as ready for review October 13, 2026 23:31
@nwparker
nwparker force-pushed the nwparker/runtime-terminal-waits branch from 42af810 to 9e47a03 Compare October 14, 2026 01:37
@nwparker

Copy link
Copy Markdown
Contributor Author

Rebased the stack onto current main (after #28416 merged). Main had changed some files this PR moves, so I carried main's changes into the moved file:

@nwparker
nwparker force-pushed the nwparker/runtime-terminal-waits branch from 9e47a03 to 4aa2043 Compare October 14, 2026 07:58
@nwparker
nwparker force-pushed the nwparker/runtime-terminal-identity branch 2 times, most recently from 08cdfa3 to f5e23d3 Compare October 14, 2026 08:08
@nwparker
nwparker changed the base branch from nwparker/runtime-terminal-identity to main October 14, 2026 08:09
@nwparker
nwparker force-pushed the nwparker/runtime-terminal-waits branch from 4aa2043 to cc253e0 Compare October 14, 2026 08:09
@coderabbitai

coderabbitai Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

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 3 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: 5267f99e-0fb6-493b-bc13-4e21d9e7867d
📥 Commits

Reviewing files that changed from the base of the PR and between 16c4999 and 4aa2043.

📒 Files selected for processing: 181
  • config/main-layout-writer-baseline.txt
  • config/scripts/ci-shard-timings.json
  • config/scripts/mobile-file-ranking-benchmark.mjs
  • config/scripts/pr-e2e-gate-contract.test.mjs
  • config/scripts/pr-e2e-layout-oracle-routing.test.mjs
  • config/scripts/pr-e2e-source-routing.mjs
  • config/ts-nocheck-baseline.txt
  • mobile/src/transport/mobile-relay-browser-cancel-budget.test.ts
  • src/main/browser/cdp-bridge-integration.test.ts
  • src/main/host/electron-browser-commands.ts
  • src/main/native-chat/agent-session-attachments/agent-session-attachment-store.ts
  • src/main/orcad/electron-serve-browser-process.test.ts
  • src/main/orcad/electron-serve-browser-process.ts
  • src/main/orcad/external-chromium-browser-process.ts
  • src/main/orcad/external-chromium-tab-registry.ts
  • src/main/orcad/orcad-browser-startup.test.ts
  • src/main/orcad/orcad-browser-startup.ts
  • src/main/persistence/terminal-topology/terminal-stale-pane-tree-client.test.ts
  • src/main/runtime/browser-dialog-settlement.test.ts
  • src/main/runtime/browser-dialog-settlement.ts
  • src/main/runtime/browser-screencast-renderer-throttle-lease.test.ts
  • src/main/runtime/browser-screencast-subscriber-frame-delivery.ts
  • src/main/runtime/browser-tab-create-caller-navigation.test.ts
  • src/main/runtime/browser-tab-create-folder-workspace.test.ts
  • src/main/runtime/browser-tab-create-publication.test.ts
  • src/main/runtime/browser/browser-capture.ts
  • src/main/runtime/browser/browser-command-contracts.ts
  • src/main/runtime/browser/browser-command-targets.ts
  • src/main/runtime/browser/browser-commands.ts
  • src/main/runtime/browser/browser-dialogs.ts
  • src/main/runtime/browser/browser-element-actions.ts
  • src/main/runtime/browser/browser-navigation.ts
  • src/main/runtime/browser/browser-network.ts
  • src/main/runtime/browser/browser-pointer-input.ts
  • src/main/runtime/browser/browser-profiles.ts
  • src/main/runtime/browser/browser-screencast-budget.ts
  • src/main/runtime/browser/browser-screencast-contracts.ts
  • src/main/runtime/browser/browser-screencasts.test.ts
  • src/main/runtime/browser/browser-screencasts.ts
  • src/main/runtime/browser/browser-storage.ts
  • src/main/runtime/browser/browser-tab-catalog.ts
  • src/main/runtime/browser/browser-tab-close.ts
  • src/main/runtime/browser/browser-tab-creation.ts
  • src/main/runtime/browser/browser-tab-queries.ts
  • src/main/runtime/browser/browser-tab-renderer-create.ts
  • src/main/runtime/files/file-access.ts
  • src/main/runtime/files/file-command-host.ts
  • src/main/runtime/files/file-mutation-expectation.ts
  • src/main/runtime/files/file-mutations.ts
  • src/main/runtime/files/file-path-existence.ts
  • src/main/runtime/files/file-paths.ts
  • src/main/runtime/files/file-preview-budget.ts
  • src/main/runtime/files/file-reads.ts
  • src/main/runtime/files/file-target.ts
  • src/main/runtime/files/mobile-file-kind.ts
  • src/main/runtime/files/search/file-search.test.ts
  • src/main/runtime/files/search/file-search.ts
  • src/main/runtime/files/search/mobile-path-search-expiry.test.ts
  • src/main/runtime/files/search/mobile-path-search.test.ts
  • src/main/runtime/files/search/mobile-path-search.ts
  • src/main/runtime/files/watch/file-watcher-leases.ts
  • src/main/runtime/files/watch/file-watches.ts
  • src/main/runtime/files/watch/windows-file-watch.ts
  • src/main/runtime/orca-runtime-agent-prompt-request-correlation.ts
  • src/main/runtime/orca-runtime-browser-client-hosted.test.ts
  • src/main/runtime/orca-runtime-browser-ghost-session-row-close.test.ts
  • src/main/runtime/orca-runtime-browser-headless.test.ts
  • src/main/runtime/orca-runtime-browser-screencast-e2ee-backlog.test.ts
  • src/main/runtime/orca-runtime-browser-screencast-fanout.test.ts
  • src/main/runtime/orca-runtime-browser-screencast-pending-frame-retry.test.ts
  • src/main/runtime/orca-runtime-browser.test.ts
  • src/main/runtime/orca-runtime-browser.ts
  • src/main/runtime/orca-runtime-build-headless-mobile-session-browser-tabs.ts
  • src/main/runtime/orca-runtime-build-pty-terminal-summary.ts
  • src/main/runtime/orca-runtime-core.ts
  • src/main/runtime/orca-runtime-create-agent-prompt-render-gate.ts
  • src/main/runtime/orca-runtime-create-terminal.ts
  • src/main/runtime/orca-runtime-deliver-pending-messages.ts
  • src/main/runtime/orca-runtime-emit-daemon-pty-transient-fact.ts
  • src/main/runtime/orca-runtime-exact-worker-provider-session.test.ts
  • src/main/runtime/orca-runtime-file-commands.ts
  • src/main/runtime/orca-runtime-files-artifact-facade.test.ts
  • src/main/runtime/orca-runtime-files-preview-budget.test.ts
  • src/main/runtime/orca-runtime-files-terminal-artifact-io.test.ts
  • src/main/runtime/orca-runtime-files-test-harness.ts
  • src/main/runtime/orca-runtime-files-watch-host-scope.test.ts
  • src/main/runtime/orca-runtime-files-watch.test.ts
  • src/main/runtime/orca-runtime-files.ts
  • src/main/runtime/orca-runtime-fit-override-listeners.ts
  • src/main/runtime/orca-runtime-get-status.ts
  • src/main/runtime/orca-runtime-get-worktree-ps.ts
  • src/main/runtime/orca-runtime-handle-mobile-subscribe-internal.ts
  • src/main/runtime/orca-runtime-hydrate-headless-mobile-session-tabs-from-workspace-session.ts
  • src/main/runtime/orca-runtime-migration-catalog.ts
  • src/main/runtime/orca-runtime-persist-headless-terminal-title.ts
  • src/main/runtime/orca-runtime-postlude.ts
  • src/main/runtime/orca-runtime-preserved-branch-cleanup.ts
  • src/main/runtime/orca-runtime-reconcile-headless-mobile-session-browser-tabs.ts
  • src/main/runtime/orca-runtime-refresh-pty-worktree-records-from-controller.ts
  • src/main/runtime/orca-runtime-resolve-mobile-session-terminal-command.ts
  • src/main/runtime/orca-runtime-resolve-terminal-pane.ts
  • src/main/runtime/orca-runtime-resolve-waiter.ts
  • src/main/runtime/orca-runtime-restore-structured-agent-session-tabs-once.ts
  • src/main/runtime/orca-runtime-runtime-id.ts
  • src/main/runtime/orca-runtime-stop-requested-pty-ids.ts
  • src/main/runtime/orca-runtime-test-mocks/imported-values.spec.ts
  • src/main/runtime/orca-runtime-visible-snapshot-preview.ts
  • src/main/runtime/orca-runtime-write-terminal-agent-prompt.ts
  • src/main/runtime/orcad-migration-catalog-import.ts
  • src/main/runtime/orchestration/structured-session-mail-target.test.ts
  • src/main/runtime/orchestration/structured-worker-direct-mailbox-target.test.ts
  • src/main/runtime/repo-worktree-row-resolution.test.ts
  • src/main/runtime/repo-worktree-row-resolution.ts
  • src/main/runtime/rpc/methods/orchestration/worker/worker-worktree-creation.ts
  • src/main/runtime/rpc/methods/session-tabs-inventory-rpc.test.ts
  • src/main/runtime/runtime-browser-commands-browser-clear.ts
  • src/main/runtime/runtime-browser-commands-browser-click.ts
  • src/main/runtime/runtime-browser-commands-browser-command-target-params.ts
  • src/main/runtime/runtime-browser-commands-browser-network-log.ts
  • src/main/runtime/runtime-browser-commands-browser-profile-import-from-browser.ts
  • src/main/runtime/runtime-browser-commands-browser-set-headers.ts
  • src/main/runtime/runtime-browser-commands-factory.ts
  • src/main/runtime/runtime-browser-commands-state.ts
  • src/main/runtime/runtime-browser-screencast-controller.ts
  • src/main/runtime/runtime-edge-command-controller.ts
  • src/main/runtime/runtime-file-command-host.ts
  • src/main/runtime/runtime-file-commands-create-file-explorer-dir-no-clobber.ts
  • src/main/runtime/runtime-file-commands-mobile-file-list-limit.ts
  • src/main/runtime/runtime-file-commands-read-mobile-file.ts
  • src/main/runtime/runtime-file-commands-resolve-allowed-terminal-artifact-path.ts
  • src/main/runtime/runtime-file-commands-revoke-terminal-file-grants-for-client.ts
  • src/main/runtime/runtime-file-commands-terminal-file-paths.ts
  • src/main/runtime/runtime-file-commands-write-file-explorer-file.ts
  • src/main/runtime/runtime-file-commands-write-terminal-artifact-file.ts
  • src/main/runtime/runtime-file-upload-decode.test.ts
  • src/main/runtime/runtime-hook-agent-row-selection.ts
  • src/main/runtime/runtime-migration-catalog-capabilities.test.ts
  • src/main/runtime/runtime-store-contract.ts
  • src/main/runtime/runtime-terminal-idle-polls.test.ts
  • src/main/runtime/session-tabs-inventory-publication.test.ts
  • src/main/runtime/session-tabs/headless-browser-group-persistence.test.ts
  • src/main/runtime/session-tabs/headless-tab-group-moves.ts
  • src/main/runtime/session-tabs/headless-tab-properties.ts
  • src/main/runtime/session-tabs/session-tab-prototype-dispatch.test.ts
  • src/main/runtime/session-tabs/session-tabs-inventory-publication.test.ts
  • src/main/runtime/session-tabs/session-tabs-inventory-publication.ts
  • src/main/runtime/session-tabs/session-tabs-inventory-test-fixture.ts
  • src/main/runtime/single-page-browser-commands-host-test-double.ts
  • src/main/runtime/terminal-interactive-wait-visibility.test.ts
  • src/main/runtime/terminal-list-surface-lost-orphan.test.ts
  • src/main/runtime/terminal-pty-exit-waiter.test.ts
  • src/main/runtime/terminal-wait-name-only-idle.test.ts
  • src/main/runtime/terminal/artifacts/artifact-integrity.ts
  • src/main/runtime/terminal/artifacts/artifact-stat.ts
  • src/main/runtime/terminal/artifacts/artifact-write.ts
  • src/main/runtime/terminal/artifacts/file-grants.test.ts
  • src/main/runtime/terminal/artifacts/file-grants.ts
  • src/main/runtime/terminal/artifacts/local-artifact-read.ts
  • src/main/runtime/terminal/artifacts/terminal-artifacts.ts
  • src/main/runtime/terminal/identity/pty-worktree-record.ts
  • src/main/runtime/terminal/identity/terminal-handle-bindings.ts
  • src/main/runtime/terminal/launch/agent-teams-launch-plan.ts
  • src/main/runtime/terminal/terminal-file-path.ts
  • src/main/runtime/terminal/terminal-path-resolver.ts
  • src/main/runtime/terminal/wait/terminal-idle-polls.ts
  • src/main/runtime/terminal/wait/terminal-interactive-wait.ts
  • src/main/runtime/terminal/wait/terminal-wait-blocked-checks.ts
  • src/main/runtime/terminal/wait/terminal-wait-permission.ts
  • src/main/runtime/terminal/wait/terminal-wait-settlements.ts
  • src/main/runtime/terminal/wait/terminal-wait-visible-probe.ts
  • src/main/runtime/terminal/wait/terminal-wait.ts
  • src/main/runtime/terminal/wait/terminal-waiter-registry.ts
  • src/main/runtime/wait-blocked-keyword-carry-retention.test.ts
  • src/main/runtime/workspaces/workspace-catalog.ts
  • src/main/runtime/workspaces/workspace-query-prototype.test.ts
  • src/main/runtime/workspaces/workspace-repo-scan-refresh.ts
  • src/main/runtime/workspaces/workspace-selectors.ts
  • src/main/startup/main-process-quit-pending-writer.test.ts
  • src/main/startup/main-process-quit-update-veto.test.ts
  • src/main/startup/main-process-quit.ts
  • src/main/worktree-lineage-pruning.ts
  • Autofix · 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.

@nwparker
nwparker merged commit 8d88c44 into main Oct 14, 2026
5 checks passed
trs-80 added a commit to trs-80/orca that referenced this pull request Oct 15, 2026
…ime module

Main (stablyai#27602) moved orca-runtime-get-terminal-interactive-wait.ts under
runtime/terminal/wait/; the validation test's import follows it.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
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