Files
orca/config/tsconfig.node.json
T
Brennan Benson 3441d2d24b Make chat wait check the chat's work state instead of reading its history every second (#41129)
* fix(cli): chat wait checks the chat's work state instead of reading its history every second

`orca chat wait` and `orca chat send --wait` polled `agentSession.history` once a second only to
learn whether the chat was still working. Each poll made the host build a transcript page, scan
every retained item twice for the running turn, and send the newest reply's full text, all
ignored by the waiter.

The host now answers `agentSession.workState` with just the facts a wait decides from (working,
a waiting question or approval, queued ids, the next queued send, the fence), and the journal's
running turn comes from its existing per-row turn index instead of a scan. The CLI polls that
read and falls back to history pages on hosts without it. The final transcript read is unchanged.

* test(cli): type the chat wait host test without assertions

* docs(cli): say what a work-state check skips, not that it does no history work

* test(cli): pin the chat wait's exact final reply and its single history read

* docs(cli): name the scan a work-state check skips

* ci: typecheck the chat wait host test with the cross-process test project

(cherry picked from commit 9a10464bec)
2026-11-11 10:54:20 -08:00

50 lines
2.6 KiB
JSON

{
"extends": "@electron-toolkit/tsconfig/tsconfig.node.json",
"include": [
"../electron.vite.config.*",
"./vitest.config.ts",
"./build-plugins/**/*",
"./scripts/test-runtime/environment/vitest-host-ports-setup.ts",
"./scripts/test-runtime/environment/vitest-caller-identity-env-setup.ts",
"./scripts/test-runtime/environment/vitest-inherited-git-env-setup.ts",
"./scripts/test-runtime/environment/vitest-real-agent-home-write-guard.ts",
"./scripts/test-runtime/environment/vitest-real-agent-cli-guard.ts",
"./scripts/test-runtime/environment/vitest-bun-node-builtins.ts",
"./scripts/test-runtime/dom/vitest-dom-setup.ts",
"./scripts/test-runtime/dom/happy-dom-offscreen-canvas.ts",
"./scripts/test-runtime/dom/happy-dom-mutation-observer-retention.ts",
"./scripts/test-runtime/dom/happy-dom-animation-cancel.ts",
"./scripts/test-runtime/node-worker/vitest-node-runtime-pool.ts",
"./scripts/test-runtime/module-cache/vitest-module-cache-resolution-key.ts",
"../src/main/**/*",
"../src/cli/runtime/transport.ts",
"../src/cli/runtime/envelope-schema.ts",
"../src/cli/runtime/types.ts",
"../src/cli/runtime/runtime-access-denied.ts",
"../src/cli/runtime/runtime-pid-liveness.ts",
"../src/renderer/src/store/slices/worktrees/create/worktree-create-payload.ts",
"../src/renderer/src/runtime/repo-hooks/orca-hook-trust.ts",
"../src/renderer/src/components/native-chat/native-chat-resolution-receipt.ts",
"../src/renderer/src/components/native-chat/structured-agent-question-projection.ts",
"../src/renderer/src/components/native-chat/subagents/native-chat-subagent-delegation.ts",
"../src/renderer/src/components/native-chat/session/structured/delivery/structured-agent-session-pending-sends.ts",
"../src/renderer/src/components/native-chat/queue/structured-agent-session-queue-request.ts",
"../src/renderer/src/components/native-chat/native-chat-composer-primary-action.ts",
"../src/renderer/src/components/terminal-pane/pty-transport/legacy-relay/legacy-relay-bridge-panes.ts",
"../src/preload/**/*",
"../src/shared/**/*",
"../src/packages/process-host/src/__fixtures__/**/*",
"../src/wsl-guest/**/*",
"../src/types/**/*"
],
"exclude": [
"../src/main/runtime/orchestration/terminal-authority/structured-sessions/structured-chat-coordinator-mail.test.ts",
"../src/main/runtime/rpc/methods/orchestration/orchestration-check-ambiguous-caller.test.ts",
"../src/main/runtime/agent-session/structured-agent-session-chat-wait-work-state.test.ts"
],
"compilerOptions": {
"composite": true,
"types": ["electron-vite/node"]
}
}