mirror of
https://github.com/stablyai/orca.git
synced 2026-11-18 11:54:46 +00:00
refactor(e2e): group journeys by feature and repair browser recovery (#43628)
* refactor(e2e): group journeys and fixtures by feature ownership * refactor(e2e): consolidate remaining Playwright owner imports * test(ci): stop copying retired route modules into fixtures * fix(browser): preserve one-shot follow intent across equal snapshots * refactor(settings): colocate commit message defaults with source control * test(browser): await page registration and focus the concrete page * fix(browser): keep viewport recovery progressing during incompatible frames * fix(browser): wait for stale helper exit before replacement commands
This commit is contained in:
@@ -48,12 +48,12 @@ on:
|
||||
- 'src/main/runtime/rpc/responses/rpc-response.ts'
|
||||
- 'src/main/runtime/rpc/methods/computer/computer*.ts'
|
||||
- 'src/shared/computer/computer-use-*.ts'
|
||||
- 'tests/e2e/computer-linux.e2e.ts'
|
||||
- 'tests/e2e/computer-windows.e2e.ts'
|
||||
- 'tests/e2e/computer-windows-background.e2e.ts'
|
||||
- 'tests/e2e/helpers/windows-semantic-controls-fixture.*'
|
||||
- 'tests/e2e/helpers/computer-cli-driver.ts'
|
||||
- 'tests/e2e/helpers/computer-driver.ts'
|
||||
- 'tests/e2e/desktop/computer-use/computer-linux.e2e.ts'
|
||||
- 'tests/e2e/desktop/computer-use/computer-windows.e2e.ts'
|
||||
- 'tests/e2e/desktop/computer-use/computer-windows-background.e2e.ts'
|
||||
- 'tests/e2e/desktop/computer-use/windows-semantic-controls-fixture.*'
|
||||
- 'tests/e2e/desktop/computer-use/computer-cli-driver.ts'
|
||||
- 'tests/e2e/desktop/computer-use/computer-driver.ts'
|
||||
- 'tests/e2e/vitest.config.ts'
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
@@ -127,7 +127,7 @@ jobs:
|
||||
- run: pnpm verify:computer-native
|
||||
- run: pnpm build:cli
|
||||
- run: pnpm run build:electron-vite:parallel
|
||||
- run: xvfb-run --auto-servernum dbus-run-session -- pnpm test:e2e:computer --reporter=verbose tests/e2e/computer-linux.e2e.ts
|
||||
- run: xvfb-run --auto-servernum dbus-run-session -- pnpm test:e2e:computer --reporter=verbose tests/e2e/desktop/computer-use/computer-linux.e2e.ts
|
||||
|
||||
windows:
|
||||
if: github.event_name != 'pull_request'
|
||||
@@ -145,4 +145,4 @@ jobs:
|
||||
- run: pnpm verify:computer-native
|
||||
- run: pnpm build:cli
|
||||
- run: pnpm run build:electron-vite:parallel
|
||||
- run: pnpm test:e2e:computer --reporter=verbose tests/e2e/computer-windows.e2e.ts tests/e2e/computer-windows-background.e2e.ts
|
||||
- run: pnpm test:e2e:computer --reporter=verbose tests/e2e/desktop/computer-use/computer-windows.e2e.ts tests/e2e/desktop/computer-use/computer-windows-background.e2e.ts
|
||||
|
||||
+22
-71
@@ -410,15 +410,12 @@ jobs:
|
||||
printf '%s\n' "$TEST_FILES_JSON" | node "$E2E_SELECTION_SCRIPT" > "$RUNNER_TEMP/general-e2e-specs"
|
||||
else
|
||||
# Dispatching an older ref retains its existing dedicated-owner exclusions.
|
||||
jq -r '.[] | select(
|
||||
. != "tests/e2e/ssh-browser-network-execution-route.docker.unit.test.ts" and
|
||||
. != "tests/e2e/terminal-ibus-hangul-native.spec.ts" and
|
||||
. != "tests/e2e/orcad-serve-mode-switch.spec.ts" and
|
||||
. != "tests/e2e/workspace-layout-oracle-headless.spec.ts" and
|
||||
. != "tests/e2e/windows-missing-appdata-startup.spec.ts" and
|
||||
. != "tests/e2e/file-explorer-copy-file-windows.spec.ts" and
|
||||
(startswith("tests/e2e/ssh-orcad-") | not)
|
||||
)' <<<"$TEST_FILES_JSON" > "$RUNNER_TEMP/general-e2e-specs"
|
||||
jq -r --argjson dedicated '["tests/e2e/ssh-browser-network-execution-route.docker.unit.test.ts","tests/e2e/remote/ssh-hosts/ssh-browser-network-execution-route.docker.unit.test.ts","tests/e2e/terminal-ibus-hangul-native.spec.ts","tests/e2e/terminal/ime/terminal-ibus-hangul-native.spec.ts","tests/e2e/orcad-serve-mode-switch.spec.ts","tests/e2e/remote/managed-ssh/host-lifecycle/orcad-serve-mode-switch.spec.ts","tests/e2e/windows-missing-appdata-startup.spec.ts","tests/e2e/desktop/startup-recovery/windows-missing-appdata-startup.spec.ts","tests/e2e/file-explorer-copy-file-windows.spec.ts","tests/e2e/editor/file-explorer/file-explorer-copy-file-windows.spec.ts"]' --argjson managed '["tests/e2e/remote/managed-ssh/file-lifecycle/ssh-orcad-editor-watch-recovery.spec.ts","tests/e2e/remote/managed-ssh/file-lifecycle/ssh-orcad-explorer-watch-recovery.spec.ts","tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-idle-exit.spec.ts","tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-pairing-repair.spec.ts","tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-shared-home-machines.spec.ts","tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-unbindable-tunnel-port.spec.ts","tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-update-anyway.spec.ts"]' '
|
||||
.[] | select(. as $spec |
|
||||
(($dedicated | index($spec)) == null) and
|
||||
(($managed | index($spec)) == null) and
|
||||
(startswith("tests/e2e/ssh-orcad-") | not)
|
||||
)' <<<"$TEST_FILES_JSON" > "$RUNNER_TEMP/general-e2e-specs"
|
||||
fi
|
||||
mapfile -t TEST_FILES < "$RUNNER_TEMP/general-e2e-specs"
|
||||
if [ "${#TEST_FILES[@]}" -eq 0 ]; then
|
||||
@@ -426,9 +423,6 @@ jobs:
|
||||
exit 0
|
||||
fi
|
||||
E2E_ENV=(SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1 ORCA_E2E_WEB_CLIENT=1)
|
||||
if printf '%s\n' "${TEST_FILES[@]}" | grep -Fxq 'tests/e2e/browser-image-link-focus.spec.ts'; then
|
||||
E2E_ENV+=(ORCA_BACKGROUND_LAUNCH=1 ORCA_E2E_BROWSER_NATIVE_XVFB=1)
|
||||
fi
|
||||
E2E_PROJECT_ARGS=()
|
||||
if [ -n "$LAYOUT_OWNER" ]; then
|
||||
test -f out/main/ORCA_LAYOUT_OWNER_MAIN
|
||||
@@ -494,15 +488,6 @@ jobs:
|
||||
retention-days: 14
|
||||
if-no-files-found: warn
|
||||
|
||||
- name: Upload parked split visual proof
|
||||
if: always() && contains(inputs.test_files, 'tests/e2e/terminal-parked-cli-split.spec.ts')
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: parked-split-proof-${{ strategy.job-index }}${{ inputs.artifact_suffix }}-attempt-${{ github.run_attempt }}
|
||||
path: test-results/**/parked-cli-split-*.png
|
||||
retention-days: 7
|
||||
if-no-files-found: ignore
|
||||
|
||||
- name: Upload Playwright traces
|
||||
if: failure() || cancelled()
|
||||
uses: actions/upload-artifact@v7
|
||||
@@ -514,7 +499,7 @@ jobs:
|
||||
|
||||
ssh-browser-network-route:
|
||||
name: ssh browser network route
|
||||
if: inputs.test_files == '' || contains(inputs.test_files, 'tests/e2e/ssh-browser-network-execution-route.docker.unit.test.ts')
|
||||
if: inputs.test_files == '' || contains(inputs.test_files, 'tests/e2e/remote/ssh-hosts/ssh-browser-network-execution-route.docker.unit.test.ts')
|
||||
runs-on: ${{ inputs.fast_runners && 'blacksmith-4vcpu-ubuntu-2404' || 'ubuntu-24.04' }}
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
@@ -530,15 +515,14 @@ jobs:
|
||||
env:
|
||||
ORCA_BACKGROUND_LAUNCH: '1'
|
||||
ORCA_RUN_DOCKER_SSH_BROWSER_E2E: '1'
|
||||
run: node_modules/.bin/vitest run --config config/vitest.config.ts tests/e2e/ssh-browser-network-execution-route.docker.unit.test.ts
|
||||
run: node_modules/.bin/vitest run --config config/vitest.config.ts tests/e2e/remote/ssh-hosts/ssh-browser-network-execution-route.docker.unit.test.ts
|
||||
|
||||
orcad-serve-mode-switch:
|
||||
name: orca serve Electron/orcad mode switch (D7)
|
||||
needs: [build]
|
||||
if: >-
|
||||
inputs.test_files == '' ||
|
||||
contains(inputs.test_files, 'tests/e2e/orcad-serve-mode-switch.spec.ts') ||
|
||||
contains(inputs.test_files, 'tests/e2e/workspace-layout-oracle-headless.spec.ts')
|
||||
contains(inputs.test_files, 'tests/e2e/remote/managed-ssh/host-lifecycle/orcad-serve-mode-switch.spec.ts')
|
||||
runs-on: ${{ inputs.fast_runners && 'blacksmith-4vcpu-ubuntu-2404' || 'ubuntu-24.04' }}
|
||||
timeout-minutes: 45
|
||||
env:
|
||||
@@ -583,53 +567,21 @@ jobs:
|
||||
node "$(if [ -f config/scripts/orcad-distribution/template/build-orcad-template.mjs ]; then printf %s config/scripts/orcad-distribution/template/build-orcad-template.mjs; else printf %s config/scripts/build-orcad-template.mjs; fi)" --targets "$slot"
|
||||
fi
|
||||
- name: Switch serve hosts on one profile
|
||||
if: inputs.test_files == '' || contains(inputs.test_files, 'tests/e2e/orcad-serve-mode-switch.spec.ts')
|
||||
if: inputs.test_files == '' || contains(inputs.test_files, 'tests/e2e/remote/managed-ssh/host-lifecycle/orcad-serve-mode-switch.spec.ts')
|
||||
env:
|
||||
SKIP_BUILD: '1'
|
||||
ORCA_E2E_ORCAD_SERVE: '1'
|
||||
ORCA_E2E_FORWARD_APP_LOGS: '1'
|
||||
run: xvfb-run --auto-servernum bash .github/scripts/e2e-with-window-manager.sh pnpm exec playwright test --config tests/playwright.config.ts tests/e2e/orcad-serve-mode-switch.spec.ts --project=electron-headless --workers=1
|
||||
run: xvfb-run --auto-servernum bash .github/scripts/e2e-with-window-manager.sh pnpm exec playwright test --config tests/playwright.config.ts tests/e2e/remote/managed-ssh/host-lifecycle/orcad-serve-mode-switch.spec.ts --project=electron-headless --workers=1
|
||||
# Only this job builds out/orcad, so the spec's orcad case runs here; the e2e shards run its Electron case.
|
||||
- name: Phone Markdown on headless orcad serve
|
||||
if: >-
|
||||
!cancelled() &&
|
||||
(inputs.test_files == '' || contains(inputs.test_files, 'tests/e2e/headless-serve-mobile-markdown.spec.ts'))
|
||||
(inputs.test_files == '' || contains(inputs.test_files, 'tests/e2e/remote/mobile-mirror/headless-serve-mobile-markdown.spec.ts'))
|
||||
env:
|
||||
SKIP_BUILD: '1'
|
||||
ORCA_E2E_FORWARD_APP_LOGS: '1'
|
||||
run: xvfb-run --auto-servernum bash .github/scripts/e2e-with-window-manager.sh pnpm exec playwright test --config tests/playwright.config.ts tests/e2e/headless-serve-mobile-markdown.spec.ts --grep "headless orcad server" --project=electron-headless --workers=1
|
||||
# The layout oracle's headless scenarios run on both serve hosts, so they need this job's orcad.
|
||||
- name: Layout oracle on headless serve (orcad and Electron)
|
||||
if: >-
|
||||
!cancelled() &&
|
||||
(inputs.test_files == '' || contains(inputs.test_files, 'tests/e2e/workspace-layout-oracle-headless.spec.ts'))
|
||||
env:
|
||||
SKIP_BUILD: '1'
|
||||
ORCA_E2E_FORWARD_APP_LOGS: '1'
|
||||
LAYOUT_OWNER: ${{ inputs.layout_owner }}
|
||||
run: |
|
||||
REPORT_ARGS=()
|
||||
if [ -n "$LAYOUT_OWNER" ]; then
|
||||
test -f out/main/ORCA_LAYOUT_OWNER_MAIN
|
||||
mkdir -p layout-divergence
|
||||
export ORCA_LAYOUT_SAVE_DIVERGENCE_LOG="$PWD/layout-divergence/headless-oracle.jsonl"
|
||||
export PLAYWRIGHT_JSON_OUTPUT_FILE="$PWD/layout-divergence/headless-oracle-results.json"
|
||||
REPORT_ARGS=('--reporter=list,json')
|
||||
fi
|
||||
xvfb-run --auto-servernum bash .github/scripts/e2e-with-window-manager.sh pnpm exec playwright test --config tests/playwright.config.ts tests/e2e/workspace-layout-oracle-headless.spec.ts --project=electron-headless --workers=1 "${REPORT_ARGS[@]}"
|
||||
- name: Summarize layout save divergence
|
||||
if: always() && inputs.layout_owner == 'main'
|
||||
continue-on-error: true
|
||||
run: *summarize_layout_divergence
|
||||
- name: Upload layout save divergence report
|
||||
if: always() && inputs.layout_owner == 'main'
|
||||
continue-on-error: true
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: layout-divergence-headless${{ inputs.artifact_suffix }}-attempt-${{ github.run_attempt }}
|
||||
path: layout-divergence/
|
||||
retention-days: 14
|
||||
if-no-files-found: warn
|
||||
run: xvfb-run --auto-servernum bash .github/scripts/e2e-with-window-manager.sh pnpm exec playwright test --config tests/playwright.config.ts tests/e2e/remote/mobile-mirror/headless-serve-mobile-markdown.spec.ts --grep "headless orcad server" --project=electron-headless --workers=1
|
||||
- uses: actions/upload-artifact@v7
|
||||
if: failure()
|
||||
with:
|
||||
@@ -643,7 +595,7 @@ jobs:
|
||||
orcad-ssh-docker:
|
||||
name: ssh on managed orcad (Docker ${{ matrix.shard }})
|
||||
needs: [build]
|
||||
if: inputs.test_files == '' || contains(inputs.test_files, 'tests/e2e/ssh-orcad-')
|
||||
if: inputs.test_files == '' || contains(inputs.test_files, 'tests/e2e/remote/managed-ssh/file-lifecycle/ssh-orcad-editor-watch-recovery.spec.ts') || contains(inputs.test_files, 'tests/e2e/remote/managed-ssh/file-lifecycle/ssh-orcad-explorer-watch-recovery.spec.ts') || contains(inputs.test_files, 'tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-idle-exit.spec.ts') || contains(inputs.test_files, 'tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-pairing-repair.spec.ts') || contains(inputs.test_files, 'tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-shared-home-machines.spec.ts') || contains(inputs.test_files, 'tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-unbindable-tunnel-port.spec.ts') || contains(inputs.test_files, 'tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-update-anyway.spec.ts')
|
||||
runs-on: ${{ inputs.fast_runners && 'blacksmith-4vcpu-ubuntu-2404' || 'ubuntu-24.04' }}
|
||||
timeout-minutes: 60
|
||||
strategy:
|
||||
@@ -684,7 +636,6 @@ jobs:
|
||||
node "$(if [ -f config/scripts/orcad-distribution/template/build-orcad-template.mjs ]; then printf %s config/scripts/orcad-distribution/template/build-orcad-template.mjs; else printf %s config/scripts/build-orcad-template.mjs; fi)" --targets linux-x64-glibc
|
||||
fi
|
||||
mv out/orcad-template "$RUNNER_TEMP/orcad-convert-template"
|
||||
# The Windows CLI matrix collects here too and skips: it needs a Windows host descriptor.
|
||||
- name: Run managed SSH specs on a Docker host
|
||||
env:
|
||||
TEST_FILES_JSON: ${{ inputs.test_files }}
|
||||
@@ -706,7 +657,7 @@ jobs:
|
||||
// Older checkout refs retain their full-suite behavior.
|
||||
const specs = selection.selectManagedSshE2eSpecs
|
||||
? selection.selectManagedSshE2eSpecs(process.env.TEST_FILES_JSON)
|
||||
: ['tests/e2e/ssh-orcad-']
|
||||
: ["tests/e2e/ssh-orcad-","tests/e2e/remote/managed-ssh/file-lifecycle/ssh-orcad-editor-watch-recovery.spec.ts","tests/e2e/remote/managed-ssh/file-lifecycle/ssh-orcad-explorer-watch-recovery.spec.ts","tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-idle-exit.spec.ts","tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-pairing-repair.spec.ts","tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-shared-home-machines.spec.ts","tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-unbindable-tunnel-port.spec.ts","tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-update-anyway.spec.ts"]
|
||||
for (const spec of specs) {
|
||||
console.log(spec.endsWith('.spec.ts') ? spec.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') + '$' : spec)
|
||||
}
|
||||
@@ -748,7 +699,7 @@ jobs:
|
||||
# missing-AppData startup check and the explorer file-copy check, which need the same Windows e2e build.
|
||||
orcad-serve-mode-switch-windows:
|
||||
name: orca serve on Windows (D7 mode switch, missing AppData)
|
||||
if: inputs.test_files == '' || contains(inputs.test_files, 'tests/e2e/orcad-serve-mode-switch.spec.ts') || contains(inputs.test_files, 'tests/e2e/windows-missing-appdata-startup.spec.ts') || contains(inputs.test_files, 'tests/e2e/file-explorer-copy-file-windows.spec.ts')
|
||||
if: inputs.test_files == '' || contains(inputs.test_files, 'tests/e2e/remote/managed-ssh/host-lifecycle/orcad-serve-mode-switch.spec.ts') || contains(inputs.test_files, 'tests/e2e/desktop/startup-recovery/windows-missing-appdata-startup.spec.ts') || contains(inputs.test_files, 'tests/e2e/editor/file-explorer/file-explorer-copy-file-windows.spec.ts')
|
||||
runs-on: windows-2022
|
||||
timeout-minutes: 45
|
||||
env:
|
||||
@@ -783,26 +734,26 @@ jobs:
|
||||
node "$(if [ -f config/scripts/orcad-distribution/template/build-orcad-template.mjs ]; then printf %s config/scripts/orcad-distribution/template/build-orcad-template.mjs; else printf %s config/scripts/build-orcad-template.mjs; fi)" --targets win32-x64
|
||||
# A profile-less Windows session has no roaming AppData; Electron 43 used to crash natively there.
|
||||
- name: Start serve with no AppData folder
|
||||
if: inputs.test_files == '' || contains(inputs.test_files, 'tests/e2e/windows-missing-appdata-startup.spec.ts')
|
||||
if: inputs.test_files == '' || contains(inputs.test_files, 'tests/e2e/desktop/startup-recovery/windows-missing-appdata-startup.spec.ts')
|
||||
env:
|
||||
SKIP_BUILD: '1'
|
||||
ORCA_E2E_FORWARD_APP_LOGS: '1'
|
||||
run: pnpm exec playwright test --config tests/playwright.config.ts tests/e2e/windows-missing-appdata-startup.spec.ts --project=electron-headless --workers=1
|
||||
run: pnpm exec playwright test --config tests/playwright.config.ts tests/e2e/desktop/startup-recovery/windows-missing-appdata-startup.spec.ts --project=electron-headless --workers=1
|
||||
# Explorer pastes only a real CF_HDROP, which needs the Windows clipboard and shell.
|
||||
- name: Copy a file from the explorer
|
||||
if: ${{ !cancelled() && (inputs.test_files == '' || contains(inputs.test_files, 'tests/e2e/file-explorer-copy-file-windows.spec.ts')) }}
|
||||
if: ${{ !cancelled() && (inputs.test_files == '' || contains(inputs.test_files, 'tests/e2e/editor/file-explorer/file-explorer-copy-file-windows.spec.ts')) }}
|
||||
env:
|
||||
SKIP_BUILD: '1'
|
||||
ORCA_E2E_FORWARD_APP_LOGS: '1'
|
||||
run: pnpm exec playwright test --config tests/playwright.config.ts tests/e2e/file-explorer-copy-file-windows.spec.ts --project=electron-headless --workers=1
|
||||
run: pnpm exec playwright test --config tests/playwright.config.ts tests/e2e/editor/file-explorer/file-explorer-copy-file-windows.spec.ts --project=electron-headless --workers=1
|
||||
- name: Switch serve hosts on one profile
|
||||
if: ${{ !cancelled() && (inputs.test_files == '' || contains(inputs.test_files, 'tests/e2e/orcad-serve-mode-switch.spec.ts')) }}
|
||||
if: ${{ !cancelled() && (inputs.test_files == '' || contains(inputs.test_files, 'tests/e2e/remote/managed-ssh/host-lifecycle/orcad-serve-mode-switch.spec.ts')) }}
|
||||
env:
|
||||
SKIP_BUILD: '1'
|
||||
ORCA_E2E_ORCAD_SERVE: '1'
|
||||
ORCA_E2E_FORWARD_APP_LOGS: '1'
|
||||
ORCA_E2E_PRESERVE_PROFILE_LOGS_DIR: ${{ github.workspace }}\test-results\profile-logs
|
||||
run: pnpm exec playwright test --config tests/playwright.config.ts tests/e2e/orcad-serve-mode-switch.spec.ts --project=electron-headless --workers=1
|
||||
run: pnpm exec playwright test --config tests/playwright.config.ts tests/e2e/remote/managed-ssh/host-lifecycle/orcad-serve-mode-switch.spec.ts --project=electron-headless --workers=1
|
||||
- uses: actions/upload-artifact@v7
|
||||
if: failure()
|
||||
with:
|
||||
|
||||
@@ -71,10 +71,9 @@ jobs:
|
||||
if: runner.os == 'Linux'
|
||||
run: |
|
||||
xvfb-run --auto-servernum env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1 pnpm run --if-present test:e2e:workspace-session-golden
|
||||
if [ -f tests/e2e/golden-fresh-profile-terminal.spec.ts ]; then
|
||||
xvfb-run --auto-servernum env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1 pnpm run test:e2e tests/e2e/golden-fresh-profile-terminal.spec.ts tests/e2e/golden-shell-command.spec.ts
|
||||
if [ -f tests/e2e/golden-journeys/golden-fresh-profile-terminal.spec.ts ]; then
|
||||
xvfb-run --auto-servernum env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1 pnpm run test:e2e tests/e2e/golden-journeys/golden-fresh-profile-terminal.spec.ts tests/e2e/golden-journeys/golden-shell-command.spec.ts
|
||||
fi
|
||||
xvfb-run --auto-servernum env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1 pnpm run test:e2e:terminal-rendering-golden
|
||||
xvfb-run --auto-servernum env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1 pnpm run --if-present test:e2e:posix-profile-index-golden
|
||||
xvfb-run --auto-servernum env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1 pnpm run --if-present test:e2e:agent-tui-golden
|
||||
xvfb-run --auto-servernum env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1 pnpm run --if-present test:e2e:tab-bar-agent-launch-golden
|
||||
@@ -84,10 +83,9 @@ jobs:
|
||||
if: runner.os == 'macOS'
|
||||
run: |
|
||||
env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1 pnpm run --if-present test:e2e:workspace-session-golden
|
||||
if [ -f tests/e2e/golden-fresh-profile-terminal.spec.ts ]; then
|
||||
env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1 pnpm run test:e2e tests/e2e/golden-fresh-profile-terminal.spec.ts tests/e2e/golden-shell-command.spec.ts
|
||||
if [ -f tests/e2e/golden-journeys/golden-fresh-profile-terminal.spec.ts ]; then
|
||||
env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1 pnpm run test:e2e tests/e2e/golden-journeys/golden-fresh-profile-terminal.spec.ts tests/e2e/golden-journeys/golden-shell-command.spec.ts
|
||||
fi
|
||||
env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1 pnpm run test:e2e:terminal-rendering-golden
|
||||
env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1 pnpm run --if-present test:e2e:posix-profile-index-golden
|
||||
env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1 pnpm run --if-present test:e2e:agent-tui-golden
|
||||
env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1 pnpm run --if-present test:e2e:tab-bar-agent-launch-golden
|
||||
@@ -103,8 +101,8 @@ jobs:
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
pnpm run --if-present test:e2e:tab-bar-agent-launch-golden
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
if (Test-Path tests/e2e/golden-fresh-profile-terminal.spec.ts) {
|
||||
pnpm run test:e2e tests/e2e/golden-fresh-profile-terminal.spec.ts tests/e2e/golden-shell-command.spec.ts
|
||||
if (Test-Path tests/e2e/golden-journeys/golden-fresh-profile-terminal.spec.ts) {
|
||||
pnpm run test:e2e tests/e2e/golden-journeys/golden-fresh-profile-terminal.spec.ts tests/e2e/golden-journeys/golden-shell-command.spec.ts
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
}
|
||||
pnpm run --if-present test:e2e:source-control-golden
|
||||
|
||||
@@ -12,20 +12,20 @@ on:
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
# This experiment costs about an hour of runner time; keep one suite active repository-wide.
|
||||
# Reduced original journey selection; retired layout-oracle coverage is not claimed.
|
||||
concurrency:
|
||||
group: layout-owner-e2e
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
layout_owner_switch_on:
|
||||
name: layout owner (switch on)
|
||||
name: surviving layout-owner journeys (switch on)
|
||||
permissions:
|
||||
contents: read
|
||||
uses: ./.github/workflows/e2e.yml
|
||||
with:
|
||||
ref: ${{ inputs.ref || github.sha }}
|
||||
test_files: '["tests/e2e/workspace-layout-oracle-headless.spec.ts","tests/e2e/workspace-layout-oracle.spec.ts","tests/e2e/cli-file-open-position.spec.ts","tests/e2e/relaunch-first-terminal.spec.ts","tests/e2e/relaunch-sleeping-agents-resume-on-view.spec.ts","tests/e2e/cli-first-worktree-single-terminal.spec.ts","tests/e2e/unopened-workspace-agent-single-resume.spec.ts","tests/e2e/terminal-pane-close-layout-consistency.spec.ts","tests/e2e/golden-file-open-edit-save.spec.ts","tests/e2e/golden-source-control-open-diff.spec.ts","tests/e2e/paired-cli-terminal-graph-sync-tab-retention.spec.ts","tests/e2e/editor-model-host-isolation.spec.ts","tests/e2e/editor-tab-selection-restore.spec.ts","tests/e2e/finished-agent-ghost-resume.spec.ts","tests/e2e/workspace-back-forward-navigation.spec.ts","tests/e2e/worktree-lineage-toggle-shortcut.spec.ts","tests/e2e/local-cli-terminal-retention.spec.ts","tests/e2e/default-tabs-mark-crash-relaunch.spec.ts","tests/e2e/terminal-cli-split-closed-before-mount.spec.ts","tests/e2e/layout-stream-loss-reopen.spec.ts","tests/e2e/terminal-tab-close-restart-persistence.spec.ts","tests/e2e/artificial-opencode-terminal-load.spec.ts","tests/e2e/headless-paired-remote-terminal-retention-memory.spec.ts","tests/e2e/headless-paired-remote-terminal-reveal-grid.spec.ts","tests/e2e/headless-paired-remote-terminal-stall-recovery.spec.ts","tests/e2e/headless-paired-remote-terminal-viewer-size.spec.ts","tests/e2e/headless-serve-browser-tab-restart.spec.ts","tests/e2e/headless-serve-cli-terminal-retention-parity.spec.ts","tests/e2e/headless-serve-desktop-activation.spec.ts","tests/e2e/headless-serve-mobile-native-chat-identity.spec.ts","tests/e2e/layout-compat-old-phone-on-new-server.spec.ts","tests/e2e/layout-compat-serve-restart-keeps-at-at-terminals.spec.ts","tests/e2e/paired-mobile-serve-restart-terminal-tabs.spec.ts","tests/e2e/paired-mobile-desktop-tab-composition.spec.ts","tests/e2e/paired-remote-terminal-serve-restart-binding.spec.ts","tests/e2e/ssh-orcad-"]'
|
||||
test_files: '["tests/e2e/golden-journeys/golden-file-open-edit-save.spec.ts","tests/e2e/golden-journeys/golden-source-control-open-diff.spec.ts","tests/e2e/editor/file-lifecycle/editor-model-host-isolation.spec.ts","tests/e2e/terminal/remote-layout/headless-paired-remote-terminal-reveal-grid.spec.ts","tests/e2e/terminal/remote-input/headless-paired-remote-terminal-stall-recovery.spec.ts","tests/e2e/terminal/remote-layout/headless-paired-remote-terminal-viewer-size.spec.ts","tests/e2e/browser/remote-hosted/headless-serve-browser-tab-restart.spec.ts","tests/e2e/remote/paired-runtime/workspace-routing/headless-serve-desktop-activation.spec.ts","tests/e2e/remote/mobile-mirror/headless-serve-mobile-native-chat-identity.spec.ts","tests/e2e/remote/mobile-mirror/paired-mobile-serve-restart-terminal-tabs.spec.ts","tests/e2e/remote/managed-ssh/file-lifecycle/ssh-orcad-editor-watch-recovery.spec.ts","tests/e2e/remote/managed-ssh/file-lifecycle/ssh-orcad-explorer-watch-recovery.spec.ts","tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-idle-exit.spec.ts","tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-pairing-repair.spec.ts","tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-shared-home-machines.spec.ts","tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-unbindable-tunnel-port.spec.ts","tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-update-anyway.spec.ts"]'
|
||||
run_changed_e2e: true
|
||||
needs_build: true
|
||||
artifact_suffix: -layout-owner-switch-on
|
||||
|
||||
@@ -122,7 +122,6 @@ on:
|
||||
- 'config/scripts/workflow/source-routing/pr-code-change-scope.mjs'
|
||||
- 'config/scripts/workflow/source-routing/pr-xterm-patch-prefixes.mjs'
|
||||
- 'config/scripts/workflow/source-routing/pr-package-test-paths.mjs'
|
||||
- 'config/scripts/workflow/source-routing/pr-layout-oracle-route.mjs'
|
||||
- 'config/scripts/workflow/source-routing/pr-shell-contract-prefixes.mjs'
|
||||
# Desktop suites do not feed mobile; keep fixtures and test/toolchain config inputs.
|
||||
- '!src/shared/**/*.test.[jt]s'
|
||||
|
||||
@@ -1,121 +0,0 @@
|
||||
name: Packaged browser compatibility
|
||||
# Both jobs pair the current build with a pinned released one. `layout-compat` holds all the layout
|
||||
# rework baselines (P3), compared with the shapes recorded on main in
|
||||
# tests/e2e/layout-compat-baselines.json; its artifact carries the observed shapes for re-recording.
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
ref:
|
||||
description: Commit SHA or ref to validate (defaults to the selected revision)
|
||||
type: string
|
||||
required: false
|
||||
schedule:
|
||||
- cron: '20 8 * * 1'
|
||||
workflow_call:
|
||||
inputs:
|
||||
ref:
|
||||
type: string
|
||||
required: false
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
# Candidate source must not write caches in the dispatch branch's scope.
|
||||
cache-mode: read
|
||||
jobs:
|
||||
compatibility:
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 25
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.ref || github.sha }}
|
||||
persist-credentials: false
|
||||
- name: Install headless tools
|
||||
run: sudo apt-get update && sudo apt-get install -y build-essential openssh-client python3 ripgrep xvfb zsh openbox x11-utils
|
||||
- uses: ./.github/actions/install-node-dependencies
|
||||
with:
|
||||
native-runtime: electron
|
||||
- name: Download pinned old release
|
||||
uses: ./.github/actions/download-pinned-orca-release
|
||||
with:
|
||||
version: 1.4.188
|
||||
sha512: uGONFUDfinYggxcT9ac72wnnlofLQaqasDDeP0HWOSqarBwTi1Ax3khmzKUY3vUnvuYOpSCEmsH4InzLZ2vg6g==
|
||||
github-token: ${{ github.token }}
|
||||
- name: Build current Electron app
|
||||
env:
|
||||
VITE_EXPOSE_STORE: 'true'
|
||||
run: |
|
||||
pnpm run build:wsl-guest
|
||||
pnpm exec electron-vite build --mode e2e
|
||||
pnpm run build:web-from-renderer
|
||||
- name: Run both mixed-version directions
|
||||
env:
|
||||
PLAYWRIGHT_JSON_OUTPUT_FILE: test-results/packaged-browser-results.json
|
||||
run: >-
|
||||
xvfb-run --auto-servernum bash .github/scripts/e2e-with-window-manager.sh
|
||||
env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1
|
||||
pnpm exec playwright test --config tests/playwright.config.ts
|
||||
tests/e2e/packaged-mixed-version-browser-placement.spec.ts
|
||||
--project=electron-headless --workers=1 --retries=0 --repeat-each=3 --reporter=list,json
|
||||
- name: Require all six compatibility executions
|
||||
if: always()
|
||||
run: node "$(if [ -f config/scripts/desktop-distribution/runtime-verification/verify-packaged-browser-participation.mjs ]; then printf %s config/scripts/desktop-distribution/runtime-verification/verify-packaged-browser-participation.mjs; else printf %s config/scripts/verify-packaged-browser-participation.mjs; fi)" test-results/packaged-browser-results.json
|
||||
- uses: actions/upload-artifact@v7
|
||||
if: always()
|
||||
with:
|
||||
name: packaged-mixed-version-audit
|
||||
path: test-results/
|
||||
retention-days: 3
|
||||
layout-compat:
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.ref || github.sha }}
|
||||
persist-credentials: false
|
||||
- name: Install headless tools
|
||||
run: sudo apt-get update && sudo apt-get install -y build-essential openssh-client python3 ripgrep xvfb zsh openbox x11-utils
|
||||
- uses: ./.github/actions/install-node-dependencies
|
||||
with:
|
||||
native-runtime: electron
|
||||
- name: Download pinned old release
|
||||
uses: ./.github/actions/download-pinned-orca-release
|
||||
with:
|
||||
version: 1.4.224
|
||||
sha512: +/VyaYSgqSAuSSWe1ySrCKRjHHJ6REXqmz58g69bxvoUdV41iH9vlobM18xdxWTkgJF2kbu/tSKFvH0jMnZ0+Q==
|
||||
github-token: ${{ github.token }}
|
||||
- name: Build current Electron app
|
||||
env:
|
||||
VITE_EXPOSE_STORE: 'true'
|
||||
run: |
|
||||
pnpm run build:wsl-guest
|
||||
pnpm exec electron-vite build --mode e2e
|
||||
pnpm run build:cli
|
||||
pnpm run build:web-from-renderer
|
||||
# The two specs without a released build ride along, so one dispatch reruns every baseline.
|
||||
- name: Run the layout baselines
|
||||
env:
|
||||
ORCA_LAYOUT_COMPAT_REPORT_DIR: test-results/layout-compat
|
||||
run: >-
|
||||
xvfb-run --auto-servernum bash .github/scripts/e2e-with-window-manager.sh
|
||||
env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1
|
||||
pnpm exec playwright test --config tests/playwright.config.ts
|
||||
tests/e2e/layout-compat-old-desktop-on-new-server.spec.ts
|
||||
tests/e2e/layout-compat-new-desktop-on-old-server.spec.ts
|
||||
tests/e2e/layout-compat-old-phone-on-new-server.spec.ts
|
||||
tests/e2e/layout-compat-serve-restart-keeps-at-at-terminals.spec.ts
|
||||
--project=electron-headless --workers=1 --retries=0 --reporter=list
|
||||
- name: Require every layout scenario to have run
|
||||
if: always()
|
||||
# A missing env skips the specs and passes; each run writes its observation first.
|
||||
run: |
|
||||
for scenario in old-desktop-on-new-server old-cli-terminal-create new-desktop-on-old-server old-phone-on-new-server serve-restart-keeps-@@-terminals; do
|
||||
test -f "test-results/layout-compat/$scenario.linux.json" || { echo "::error::$scenario did not run"; exit 1; }
|
||||
done
|
||||
- uses: actions/upload-artifact@v7
|
||||
if: always()
|
||||
with:
|
||||
name: packaged-layout-compat
|
||||
path: test-results/
|
||||
retention-days: 7
|
||||
@@ -49,7 +49,6 @@ jobs:
|
||||
package: ${{ steps.readiness.outputs.reused != 'true' && steps.filter.outputs.package }}
|
||||
windows_process_probe: ${{ steps.filter.outputs.windows_process_probe }}
|
||||
package_windows: ${{ steps.readiness.outputs.reused != 'true' && steps.filter.outputs.package_windows }}
|
||||
layout_oracle: ${{ steps.readiness.outputs.reused != 'true' && steps.filter.outputs.layout_oracle }}
|
||||
dependency_isolation: ${{ steps.readiness.outputs.reused != 'true' && steps.filter.outputs.dependency_isolation }}
|
||||
e2e_should_run: ${{ steps.e2e_filter.outputs.should_run }}
|
||||
test_files: ${{ steps.e2e_filter.outputs.test_files }}
|
||||
@@ -81,9 +80,7 @@ jobs:
|
||||
/config/scripts/workflow/source-routing/pr-shell-contract-prefixes.mjs
|
||||
/.oxfmtrc.json
|
||||
/config/scripts/workflow/source-routing/pr-package-test-paths.mjs
|
||||
/config/scripts/workflow/source-routing/pr-layout-oracle-route.mjs
|
||||
/config/scripts/workflow/source-routing/pr-e2e-source-routing.mjs
|
||||
/config/scripts/workflow/source-routing/pr-browser-e2e-source-routes.mjs
|
||||
/config/scripts/workflow/source-routing/pr-editor-preview-e2e-source-routes.mjs
|
||||
/config/scripts/workflow/source-routing/pr-feature-area-e2e-source-routes.mjs
|
||||
/config/scripts/workflow/source-routing/pr-plugin-e2e-source-routes.mjs
|
||||
@@ -879,7 +876,6 @@ jobs:
|
||||
shards: ${{ needs.unit_plan.outputs.shards }}
|
||||
download_selection_plan: ${{ needs.unit_plan.outputs.selection_planned == 'true' }}
|
||||
run_shards: ${{ needs.code_paths.outputs.mobile_ci_tools != 'true' }}
|
||||
run_relay_integration: ${{ needs.code_paths.outputs.relay_integration != 'false' || needs.code_paths.outputs.orcad_browser == 'true' }}
|
||||
|
||||
# Keep advisory evidence sibling to tests and outside verify.needs; reusable-workflow dependency otherwise added ~36s after last shard.
|
||||
unit_selection_evidence:
|
||||
@@ -1433,28 +1429,6 @@ jobs:
|
||||
needs_build: ${{ needs.code_paths.outputs.e2e_needs_build != 'false' }}
|
||||
managed_ssh_shards: ${{ needs.code_paths.outputs.e2e_ssh_shards || '["1/2","2/2"]' }}
|
||||
|
||||
# Gate the green layout oracles separately from main’s red broader E2E suite: changed-spec window plus both orcad serve hosts.
|
||||
layout_oracle:
|
||||
name: layout oracle
|
||||
needs: [code_paths]
|
||||
if: >-
|
||||
!cancelled() &&
|
||||
needs.code_paths.result == 'success' &&
|
||||
needs.code_paths.outputs.layout_oracle == 'true'
|
||||
permissions:
|
||||
contents: read
|
||||
uses: ./.github/workflows/e2e.yml
|
||||
with:
|
||||
# Why the merge commit, unlike `e2e`: a gate must test what lands on main, not a stale head.
|
||||
ref: ${{ github.sha }}
|
||||
test_files: '["tests/e2e/workspace-layout-oracle-headless.spec.ts","tests/e2e/workspace-layout-oracle.spec.ts"]'
|
||||
# Two ~3.6 min halves of the 21 window scenarios keep this gate off the PR's critical path.
|
||||
changed_e2e_test_shards: '["1/2","2/2"]'
|
||||
run_changed_e2e: true
|
||||
needs_build: true
|
||||
artifact_suffix: -layout-oracle
|
||||
|
||||
# Keep native IME advisory while PR reliability is established (nightly 20/20, 2026-08-09..29, p50 3m25s); do not hide red via continue-on-error. To gate, add verify.needs, TERMINAL_IME_NATIVE env and separate success-or-skipped validation.
|
||||
terminal_ime_native:
|
||||
name: real IME
|
||||
needs: code_paths
|
||||
@@ -1546,7 +1520,6 @@ jobs:
|
||||
- managed_hook_node18
|
||||
- package
|
||||
- package_windows
|
||||
- layout_oracle
|
||||
- dependency_isolation
|
||||
runs-on: ubuntu-slim
|
||||
timeout-minutes: 5
|
||||
@@ -1581,8 +1554,6 @@ jobs:
|
||||
PACKAGE_SHOULD_RUN: ${{ needs.code_paths.outputs.package }}
|
||||
PACKAGE_WINDOWS: ${{ needs.package_windows.result }}
|
||||
PACKAGE_WINDOWS_SHOULD_RUN: ${{ needs.code_paths.outputs.package_windows }}
|
||||
LAYOUT_ORACLE: ${{ needs.layout_oracle.result }}
|
||||
LAYOUT_ORACLE_SHOULD_RUN: ${{ needs.code_paths.outputs.layout_oracle }}
|
||||
DEPENDENCY_ISOLATION: ${{ needs.dependency_isolation.result }}
|
||||
DEPENDENCY_ISOLATION_SHOULD_RUN: ${{ needs.code_paths.outputs.dependency_isolation }}
|
||||
run: |
|
||||
@@ -1626,6 +1597,5 @@ jobs:
|
||||
check_job managed_hook_node18 "$MANAGED_HOOK_NODE18" "$MANAGED_HOOK_NODE18_SHOULD_RUN"
|
||||
check_job package "$PACKAGE" "$PACKAGE_SHOULD_RUN"
|
||||
check_job package_windows "$PACKAGE_WINDOWS" "$PACKAGE_WINDOWS_SHOULD_RUN"
|
||||
check_job layout_oracle "$LAYOUT_ORACLE" "$LAYOUT_ORACLE_SHOULD_RUN"
|
||||
check_job dependency_isolation "$DEPENDENCY_ISOLATION" "$DEPENDENCY_ISOLATION_SHOULD_RUN"
|
||||
exit "$failed"
|
||||
|
||||
@@ -737,10 +737,9 @@ jobs:
|
||||
run: |
|
||||
git fetch --no-tags --depth=1 origin "$WORKFLOW_SHA"
|
||||
git checkout "$WORKFLOW_SHA" -- \
|
||||
tests/e2e/golden-source-control-open-diff.spec.ts \
|
||||
tests/e2e/golden-terminal-file-link.spec.ts \
|
||||
tests/e2e/golden-worktree-create-switch.spec.ts \
|
||||
tests/e2e/helpers/e2e-completed-onboarding-profile.ts
|
||||
tests/e2e/golden-journeys/golden-source-control-open-diff.spec.ts \
|
||||
tests/e2e/golden-journeys/golden-worktree-create-switch.spec.ts \
|
||||
tests/e2e/desktop/electron-fixtures/e2e-completed-onboarding-profile.ts
|
||||
|
||||
- name: Install native build tools
|
||||
if: runner.os == 'Linux'
|
||||
@@ -783,7 +782,6 @@ jobs:
|
||||
if: runner.os == 'Linux'
|
||||
run: |
|
||||
xvfb-run --auto-servernum env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1 pnpm run --if-present test:e2e:workspace-session-golden
|
||||
xvfb-run --auto-servernum env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1 pnpm run test:e2e:terminal-rendering-golden
|
||||
xvfb-run --auto-servernum env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1 pnpm run --if-present test:e2e:posix-profile-index-golden
|
||||
|
||||
- name: Run source-control golden on Linux
|
||||
@@ -794,7 +792,6 @@ jobs:
|
||||
if: runner.os == 'macOS'
|
||||
run: |
|
||||
env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1 pnpm run --if-present test:e2e:workspace-session-golden
|
||||
env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1 pnpm run test:e2e:terminal-rendering-golden
|
||||
env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1 pnpm run --if-present test:e2e:posix-profile-index-golden
|
||||
|
||||
- name: Run agent TUI golden on Linux
|
||||
@@ -921,96 +918,6 @@ jobs:
|
||||
|
||||
# Why: these broader terminal rendering repros are useful release evidence,
|
||||
# but they include heavier app-like flows and must not block publishing.
|
||||
terminal-rendering-release-evidence:
|
||||
needs: cut
|
||||
if: needs.cut.outputs.should_release == 'true'
|
||||
continue-on-error: true
|
||||
name: terminal rendering release evidence ${{ matrix.platform }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
timeout-minutes: 35
|
||||
env:
|
||||
NODE_OPTIONS: --max-old-space-size=4096
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
platform: linux
|
||||
- os: macos-15
|
||||
platform: mac
|
||||
# Why: Windows release evidence currently fails on CI runner PTY
|
||||
# readiness before reaching the rendering assertions.
|
||||
# - os: windows-latest
|
||||
# platform: windows
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ref: refs/tags/${{ needs.cut.outputs.tag }}
|
||||
|
||||
- name: Install native build tools
|
||||
if: runner.os == 'Linux'
|
||||
run: sudo apt-get update && sudo apt-get install -y build-essential python3 xvfb
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/setup@v2
|
||||
with:
|
||||
install: false
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: package.json
|
||||
check-latest: true
|
||||
cache: pnpm
|
||||
|
||||
# Why: keep the non-blocking evidence lane on the same Linux native
|
||||
# install path as the blocking golden and release build jobs.
|
||||
- name: Use external node-gyp to avoid pnpm's bundled copy (Linux only)
|
||||
if: runner.os == 'Linux'
|
||||
run: |
|
||||
npm install -g node-gyp@11.5.0
|
||||
echo "npm_config_node_gyp=$(npm root -g)/node-gyp/bin/node-gyp.js" >> "$GITHUB_ENV"
|
||||
|
||||
# Same node-gyp header fetch as the blocking golden gate above.
|
||||
- name: Install dependencies
|
||||
uses: nick-fields/retry@v4
|
||||
with:
|
||||
timeout_minutes: 10
|
||||
max_attempts: 3
|
||||
retry_wait_seconds: 30
|
||||
command: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Build Electron app for terminal rendering evidence
|
||||
run: npx electron-vite build --mode e2e
|
||||
|
||||
- name: Run terminal rendering evidence on Linux
|
||||
if: runner.os == 'Linux'
|
||||
run: xvfb-run --auto-servernum env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1 pnpm run test:e2e:terminal-rendering-release-evidence
|
||||
|
||||
- name: Run terminal rendering evidence on macOS
|
||||
if: runner.os == 'macOS'
|
||||
run: env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1 pnpm run test:e2e:terminal-rendering-release-evidence
|
||||
|
||||
- name: Run terminal rendering evidence on Windows
|
||||
if: runner.os == 'Windows'
|
||||
shell: pwsh
|
||||
run: |
|
||||
$env:SKIP_BUILD = '1'
|
||||
$env:ORCA_E2E_FORWARD_APP_LOGS = '1'
|
||||
pnpm run test:e2e:terminal-rendering-release-evidence
|
||||
|
||||
- name: Upload Playwright traces
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: terminal-rendering-release-evidence-${{ matrix.platform }}-playwright-traces
|
||||
path: test-results/
|
||||
retention-days: 7
|
||||
if-no-files-found: ignore
|
||||
|
||||
# Build every target’s qualified orcad slot at the tag beside release gates; unsigned template consumes no signing quota.
|
||||
orcad-template:
|
||||
needs: cut
|
||||
if: needs.cut.outputs.should_release == 'true' && needs.cut.outputs.ships_orcad_template == 'true'
|
||||
|
||||
@@ -63,12 +63,11 @@ on:
|
||||
- 'src/shared/shell/launch/shell-argument-quoting.ts'
|
||||
- '!src/**/*.test.ts'
|
||||
- 'src/main/managed-server/host-state/orcad-windows-host-lane.test.ts'
|
||||
- 'tests/e2e/helpers/orcad-convert-host.ts'
|
||||
- 'tests/e2e/helpers/orcad-convert-flow.ts'
|
||||
- 'tests/e2e/helpers/orcad-upgrade-profile.ts'
|
||||
- 'tests/e2e/ssh-orcad-windows-cli-matrix.spec.ts'
|
||||
- 'tests/e2e/helpers/compiled-orca-cli.ts'
|
||||
- 'tests/e2e/helpers/windows-host-orcad-processes.ts'
|
||||
- 'tests/e2e/remote/managed-ssh/host-lifecycle/orcad-convert-host.ts'
|
||||
- 'tests/e2e/remote/managed-ssh/host-lifecycle/orcad-convert-flow.ts'
|
||||
- 'tests/e2e/remote/managed-ssh/host-lifecycle/orcad-upgrade-profile.ts'
|
||||
- 'tests/e2e/desktop/cli-invocation/compiled-orca-cli.ts'
|
||||
- 'tests/e2e/remote/managed-ssh/host-lifecycle/windows-host-orcad-processes.ts'
|
||||
- 'config/ci/windows-ssh-provider/**'
|
||||
- 'config/ci/windows-lifecycle-receipt.ps1'
|
||||
- '.github/workflows/ssh-windows-hosts.yml'
|
||||
@@ -78,7 +77,7 @@ on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
cells:
|
||||
description: Comma-separated cells orcad-cmd, orcad-powershell, or orcad-cli-managed; empty runs the two shell cells.
|
||||
description: Comma-separated cells orcad-cmd or orcad-powershell; empty runs both retained shell cells.
|
||||
required: false
|
||||
default: ''
|
||||
preparation_mode:
|
||||
@@ -132,9 +131,7 @@ jobs:
|
||||
'[{"arch":"arm64","runner":"windows-11-arm","server":"inbox"}]' ||
|
||||
'[{"arch":"x64","runner":"windows-2022","server":"inbox"},{"arch":"x64","runner":"windows-2022","server":"preview","archive":"OpenSSH-Win64.zip"},{"arch":"arm64","runner":"windows-11-arm","server":"inbox"},{"arch":"arm64","runner":"windows-11-arm","server":"preview","archive":"OpenSSH-ARM64.zip"}]') }}
|
||||
runs-on: ${{ matrix.runner }}
|
||||
# Installing the inbox capability alone can take several minutes on a fresh image; the CLI matrix
|
||||
# cells launch the e2e app several times each.
|
||||
timeout-minutes: ${{ contains(github.event.inputs.cells || '', 'orcad-cli') && 160 || 75 }}
|
||||
timeout-minutes: 75
|
||||
env:
|
||||
ORCA_BACKGROUND_LAUNCH: '1'
|
||||
ORCA_ISOLATED_SSH_CI: '1'
|
||||
@@ -144,7 +141,6 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
# Keep complete server/test trees; missing future imports fail the unchanged builds.
|
||||
# All of src: the managed CLI cell builds the full e2e app and bundled CLI.
|
||||
# mobile: the template ships the mobile web page, which builds from mobile/.
|
||||
# cloud: config/tsconfig.vitest-transform.json references the cloud projects, so vitest needs them.
|
||||
sparse-checkout: |
|
||||
@@ -231,7 +227,7 @@ jobs:
|
||||
Initialize-WindowsInboxSshCapability -Arch '${{ matrix.arch }}' -Receipt (Join-Path $receipts 'inbox-capability-preparation.json') -PreparationMode $env:INBOX_PREPARATION_MODE
|
||||
- name: Run the Windows host cells against a private ${{ matrix.server }} sshd
|
||||
shell: pwsh
|
||||
timeout-minutes: ${{ contains(github.event.inputs.cells || '', 'orcad-cli') && 130 || 50 }}
|
||||
timeout-minutes: 50
|
||||
env:
|
||||
CELLS: ${{ github.event.inputs.cells || '' }}
|
||||
run: |
|
||||
@@ -241,10 +237,6 @@ jobs:
|
||||
New-Item -ItemType Directory -Force -Path $receipts | Out-Null
|
||||
$cells=@($env:CELLS -split ',' | ForEach-Object {$_.Trim()} | Where-Object {$_})
|
||||
if(-not $cells.Count){$cells=@('orcad-cmd','orcad-powershell')}
|
||||
# App cells reach the managed server through an SSH local forward, which provisioning grants to the last accounts only.
|
||||
$appCellIds=@('orcad-cli-managed')
|
||||
$cells=@($cells | Where-Object {$appCellIds -notcontains $_})+@($cells | Where-Object {$appCellIds -contains $_})
|
||||
$forwarding=@($cells | Where-Object {$appCellIds -contains $_}).Count
|
||||
$archive=''
|
||||
$preparation=''
|
||||
if('${{ matrix.server }}' -eq 'inbox' -and '${{ matrix.arch }}' -eq 'arm64'){$preparation=Join-Path $receipts 'inbox-capability-preparation.json'}
|
||||
@@ -257,7 +249,7 @@ jobs:
|
||||
$callback={param($context)
|
||||
& (Join-Path $tools 'invoke-windows-host-cells.ps1') -SourceRoot $sourceRoot -Context $context -Target 'win32-${{ matrix.arch }}' -ReceiptRoot $receipts -Cells $cells
|
||||
}.GetNewClosure()
|
||||
& (Join-Path $tools 'preview-ssh/prove-preview-openssh.ps1') -Archive $archive -Arch '${{ matrix.arch }}' -Server '${{ matrix.server }}' -Receipt (Join-Path $receipts 'provider-server.json') -InboxPreparationReceipt $preparation -Accounts $cells.Count -ForwardingAccounts $forwarding -HiddenTools @('npm','npx','node-gyp','gcc','g++','cc','c++','make','cl','clang','clang++','msbuild','cmake') -HostCellProbe $callback 2>&1 | Tee-Object (Join-Path $receipts 'provision.log')
|
||||
& (Join-Path $tools 'preview-ssh/prove-preview-openssh.ps1') -Archive $archive -Arch '${{ matrix.arch }}' -Server '${{ matrix.server }}' -Receipt (Join-Path $receipts 'provider-server.json') -InboxPreparationReceipt $preparation -Accounts $cells.Count -ForwardingAccounts 0 -HiddenTools @('npm','npx','node-gyp','gcc','g++','cc','c++','make','cl','clang','clang++','msbuild','cmake') -HostCellProbe $callback 2>&1 | Tee-Object (Join-Path $receipts 'provision.log')
|
||||
- uses: actions/upload-artifact@v7
|
||||
if: always()
|
||||
with:
|
||||
|
||||
@@ -4,12 +4,6 @@ on:
|
||||
# Let pr.yml own costly real-IBus path routing; a separate pull_request trigger would run every PR.
|
||||
workflow_call:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
diagnose_wayland_input:
|
||||
description: Capture passive Wayland input diagnostics while running both native lanes
|
||||
required: false
|
||||
type: boolean
|
||||
default: false
|
||||
schedule:
|
||||
- cron: '30 9 * * *'
|
||||
|
||||
@@ -53,16 +47,7 @@ jobs:
|
||||
- name: Build Electron app for E2E
|
||||
run: pnpm exec electron-vite build --mode e2e
|
||||
|
||||
- name: Run deterministic terminal IME boundary tests
|
||||
run: >-
|
||||
xvfb-run --auto-servernum
|
||||
env SKIP_BUILD=1 ORCA_E2E_FORWARD_APP_LOGS=1
|
||||
pnpm run test:e2e
|
||||
tests/e2e/terminal-ime-exact-byte.spec.ts
|
||||
--workers=1
|
||||
|
||||
- name: Run native IBus Hangul exact-byte tests
|
||||
# Run native half despite synthetic failure: independent signals must both appear, rather than default success() hiding native evidence.
|
||||
if: '!cancelled()'
|
||||
env:
|
||||
SKIP_BUILD: '1'
|
||||
@@ -76,41 +61,3 @@ jobs:
|
||||
path: test-results/
|
||||
retention-days: 7
|
||||
if-no-files-found: ignore
|
||||
|
||||
linux-wayland:
|
||||
name: Linux Wayland Hangul terminating digit
|
||||
runs-on: ubuntu-22.04
|
||||
timeout-minutes: 25
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Install native build, nested compositor and IME tools
|
||||
run: >-
|
||||
sudo apt-get update && sudo apt-get install -y
|
||||
build-essential python3 fonts-noto-cjk dbus-x11 dconf-gsettings-backend
|
||||
ibus ibus-hangul gnome-shell gnome-settings-daemon libglib2.0-bin
|
||||
xdotool xvfb x11-utils imagemagick
|
||||
- uses: ./.github/actions/install-node-dependencies
|
||||
with:
|
||||
native-runtime: electron
|
||||
- name: Build Electron app for E2E
|
||||
env:
|
||||
VITE_EXPOSE_STORE: 'true'
|
||||
run: |
|
||||
pnpm run build:wsl-guest
|
||||
pnpm exec electron-vite build --mode e2e
|
||||
pnpm run build:web-from-renderer
|
||||
- name: Run native Wayland Hangul terminating digit
|
||||
env:
|
||||
SKIP_BUILD: '1'
|
||||
ORCA_E2E_WAYLAND_INPUT_DIAGNOSTICS: ${{ inputs.diagnose_wayland_input && '1' || '' }}
|
||||
run: node config/scripts/runtime-verification/terminal-e2e/run-terminal-ibus-hangul-e2e.mjs --nested-wayland
|
||||
- name: Upload Wayland terminal IME evidence
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: terminal-wayland-ime-evidence
|
||||
path: test-results/
|
||||
retention-days: 7
|
||||
if-no-files-found: error
|
||||
|
||||
@@ -1,198 +0,0 @@
|
||||
name: Terminal Perf
|
||||
|
||||
# On demand only; see docs/readme/terminal-perf.md.
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
ref:
|
||||
description: Ref to check out (defaults to the workflow ref)
|
||||
required: false
|
||||
type: string
|
||||
grep:
|
||||
description: Optional Playwright grep for a targeted terminal perf run
|
||||
required: false
|
||||
type: string
|
||||
report_path:
|
||||
description: Path for the generated terminal perf JSON report
|
||||
required: false
|
||||
type: string
|
||||
frame_count:
|
||||
description: Number of prompt redraw frames per typing measurement
|
||||
required: false
|
||||
type: string
|
||||
frame_interval_ms:
|
||||
description: Milliseconds between synthetic OpenCode redraw frames
|
||||
required: false
|
||||
type: string
|
||||
pressure_output_chars:
|
||||
description: Bytes/chars each ACK-backpressured real PTY should emit
|
||||
required: false
|
||||
type: string
|
||||
scale_panes:
|
||||
description: Comma-separated same-workspace pane counts
|
||||
required: false
|
||||
type: string
|
||||
scale_cross_workspace_panes:
|
||||
description: Comma-separated hidden cross-workspace pane counts
|
||||
required: false
|
||||
type: string
|
||||
scale_pressure_panes:
|
||||
description: Comma-separated active real-PTY pressure pane counts
|
||||
required: false
|
||||
type: string
|
||||
scale_hidden_pressure_panes:
|
||||
description: Comma-separated hidden real-PTY pressure pane counts
|
||||
required: false
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
# Candidate source must not write caches in the dispatch branch's scope.
|
||||
cache-mode: read
|
||||
|
||||
jobs:
|
||||
terminal-perf:
|
||||
name: terminal scale perf
|
||||
# Presented-frame measurement only accepts GitHub-hosted Xvfb displays.
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 45
|
||||
env:
|
||||
NODE_OPTIONS: --max-old-space-size=4096
|
||||
ORCA_BACKGROUND_LAUNCH: '1'
|
||||
ORCA_E2E_FORWARD_APP_LOGS: '1'
|
||||
ORCA_E2E_TERMINAL_PERF_REPORT_PATH: ${{ inputs.report_path || 'test-results/terminal-scale-perf-report.json' }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.ref || github.ref }}
|
||||
|
||||
- name: Install native build tools and xvfb
|
||||
run: sudo apt-get update && sudo apt-get install -y build-essential python3 xvfb zsh
|
||||
|
||||
- name: Select dependency preparation
|
||||
id: install-mode
|
||||
shell: bash
|
||||
env:
|
||||
RUNNER_KIND: ${{ runner.environment }}
|
||||
JOB_CONTAINER: ${{ job.container.id }}
|
||||
run: |
|
||||
node <<'NODE'
|
||||
const fs = require('node:fs')
|
||||
const manifest = JSON.parse(fs.readFileSync('package.json', 'utf8'))
|
||||
const actionPath = '.github/actions/install-node-dependencies/action.yml'
|
||||
const action = fs.existsSync(actionPath) ? fs.readFileSync(actionPath, 'utf8') : ''
|
||||
const inputs = action.split(/^inputs:[ \t]*\r?$/m)[1]?.split(/^\S/m)[0] ?? ''
|
||||
const supportedPostinstalls = [
|
||||
'node config/scripts/native-build/node-addons/rebuild-native-deps.mjs',
|
||||
'node config/scripts/rebuild-native-deps.mjs',
|
||||
'pnpm run build:packages && node config/scripts/native-build/node-addons/rebuild-native-deps.mjs',
|
||||
'pnpm run build:packages && node config/scripts/rebuild-native-deps.mjs'
|
||||
]
|
||||
const supportedRunner = process.env.RUNNER_KIND === 'github-hosted' ||
|
||||
process.env.RUNNER_NAME?.startsWith('blacksmith-')
|
||||
const shared = supportedRunner && !process.env.JOB_CONTAINER &&
|
||||
process.env.RUNNER_OS === 'Linux' && process.env.RUNNER_ARCH === 'X64' &&
|
||||
manifest.engines?.node === '24' && typeof manifest.packageManager === 'string' &&
|
||||
manifest.packageManager.split('+')[0] === 'pnpm@12.14.0' &&
|
||||
supportedPostinstalls.includes(manifest.scripts?.postinstall) &&
|
||||
/^ native-runtime:/m.test(inputs) && /^ cache-pnpm-store-lookup-only:/m.test(inputs) &&
|
||||
fs.existsSync('.github/actions/prepare-native-runtime/action.yml') &&
|
||||
(fs.existsSync('config/scripts/native-build/node-addons/ensure-native-runtime.mjs') || fs.existsSync('config/scripts/ensure-native-runtime.mjs'))
|
||||
fs.appendFileSync(process.env.GITHUB_OUTPUT, `shared=${shared}\n`)
|
||||
NODE
|
||||
|
||||
- name: Prepare current dependencies
|
||||
if: steps.install-mode.outputs.shared == 'true'
|
||||
uses: ./.github/actions/install-node-dependencies
|
||||
with:
|
||||
native-runtime: electron
|
||||
cache-electron-package: 'true'
|
||||
cache-pnpm-store-lookup-only: 'true'
|
||||
|
||||
- name: Setup pnpm
|
||||
if: steps.install-mode.outputs.shared != 'true'
|
||||
uses: pnpm/setup@v2
|
||||
with:
|
||||
install: false
|
||||
|
||||
- name: Setup Node.js
|
||||
if: steps.install-mode.outputs.shared != 'true'
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: package.json
|
||||
check-latest: true
|
||||
cache: pnpm
|
||||
|
||||
# Historical refs can lack the shared action; retain their original install path.
|
||||
- name: Use external node-gyp to avoid pnpm's bundled copy
|
||||
if: steps.install-mode.outputs.shared != 'true'
|
||||
run: |
|
||||
npm install -g node-gyp@11.5.0
|
||||
echo "npm_config_node_gyp=$(npm root -g)/node-gyp/bin/node-gyp.js" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Install dependencies
|
||||
if: steps.install-mode.outputs.shared != 'true'
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Build Electron app for terminal perf
|
||||
run: npx electron-vite build --mode e2e
|
||||
|
||||
- name: Run terminal scale perf report gate
|
||||
env:
|
||||
ORCA_TERMINAL_PERF_GREP: ${{ inputs.grep }}
|
||||
ORCA_TERMINAL_PERF_FRAME_COUNT: ${{ inputs.frame_count }}
|
||||
ORCA_TERMINAL_PERF_FRAME_INTERVAL_MS: ${{ inputs.frame_interval_ms }}
|
||||
ORCA_TERMINAL_PERF_PRESSURE_OUTPUT_CHARS: ${{ inputs.pressure_output_chars }}
|
||||
ORCA_TERMINAL_PERF_SCALE_PANES: ${{ inputs.scale_panes }}
|
||||
ORCA_TERMINAL_PERF_SCALE_CROSS_WORKSPACE_PANES: ${{ inputs.scale_cross_workspace_panes }}
|
||||
ORCA_TERMINAL_PERF_SCALE_PRESSURE_PANES: ${{ inputs.scale_pressure_panes }}
|
||||
ORCA_TERMINAL_PERF_SCALE_HIDDEN_PRESSURE_PANES: ${{ inputs.scale_hidden_pressure_panes }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
args=()
|
||||
if [ -n "${ORCA_TERMINAL_PERF_GREP:-}" ]; then
|
||||
args+=(--grep "$ORCA_TERMINAL_PERF_GREP")
|
||||
fi
|
||||
if [ -n "${ORCA_TERMINAL_PERF_FRAME_COUNT:-}" ]; then
|
||||
export ORCA_E2E_OPENCODE_FRAME_COUNT="$ORCA_TERMINAL_PERF_FRAME_COUNT"
|
||||
fi
|
||||
if [ -n "${ORCA_TERMINAL_PERF_FRAME_INTERVAL_MS:-}" ]; then
|
||||
export ORCA_E2E_OPENCODE_FRAME_INTERVAL_MS="$ORCA_TERMINAL_PERF_FRAME_INTERVAL_MS"
|
||||
fi
|
||||
if [ -n "${ORCA_TERMINAL_PERF_PRESSURE_OUTPUT_CHARS:-}" ]; then
|
||||
export ORCA_E2E_OPENCODE_PRESSURE_OUTPUT_CHARS="$ORCA_TERMINAL_PERF_PRESSURE_OUTPUT_CHARS"
|
||||
fi
|
||||
if [ -n "${ORCA_TERMINAL_PERF_SCALE_PANES:-}" ]; then
|
||||
export ORCA_E2E_OPENCODE_SCALE_PANES="$ORCA_TERMINAL_PERF_SCALE_PANES"
|
||||
fi
|
||||
if [ -n "${ORCA_TERMINAL_PERF_SCALE_CROSS_WORKSPACE_PANES:-}" ]; then
|
||||
export ORCA_E2E_OPENCODE_SCALE_CROSS_WORKSPACE_PANES="$ORCA_TERMINAL_PERF_SCALE_CROSS_WORKSPACE_PANES"
|
||||
fi
|
||||
if [ -n "${ORCA_TERMINAL_PERF_SCALE_PRESSURE_PANES:-}" ]; then
|
||||
export ORCA_E2E_OPENCODE_SCALE_PRESSURE_PANES="$ORCA_TERMINAL_PERF_SCALE_PRESSURE_PANES"
|
||||
fi
|
||||
if [ -n "${ORCA_TERMINAL_PERF_SCALE_HIDDEN_PRESSURE_PANES:-}" ]; then
|
||||
export ORCA_E2E_OPENCODE_SCALE_HIDDEN_PRESSURE_PANES="$ORCA_TERMINAL_PERF_SCALE_HIDDEN_PRESSURE_PANES"
|
||||
fi
|
||||
xvfb-run --auto-servernum env SKIP_BUILD=1 ORCA_E2E_TERMINAL_PERF_XVFB=1 pnpm run test:e2e:terminal-perf:scale:report -- "${args[@]}"
|
||||
|
||||
- name: Upload terminal perf report
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: terminal-scale-perf-report
|
||||
path: ${{ env.ORCA_E2E_TERMINAL_PERF_REPORT_PATH }}
|
||||
retention-days: 14
|
||||
if-no-files-found: warn
|
||||
|
||||
- name: Upload Playwright traces
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: terminal-scale-perf-traces
|
||||
path: test-results/
|
||||
retention-days: 7
|
||||
if-no-files-found: ignore
|
||||
@@ -19,7 +19,6 @@ jobs:
|
||||
shards: '[{"index":1,"count":5},{"index":2,"count":5},{"index":3,"count":5},{"index":4,"count":5},{"index":5,"count":5}]'
|
||||
artifact_prefix: baseline-unit
|
||||
phase_diagnostics: true
|
||||
run_relay_integration: false
|
||||
|
||||
producer:
|
||||
needs: baseline
|
||||
@@ -33,7 +32,6 @@ jobs:
|
||||
module_cache_namespace: ${{ github.run_id }}-${{ github.run_attempt }}
|
||||
module_cache_seed: true
|
||||
phase_diagnostics: true
|
||||
run_relay_integration: false
|
||||
|
||||
warm:
|
||||
needs: producer
|
||||
@@ -46,4 +44,3 @@ jobs:
|
||||
module_cache: warm
|
||||
module_cache_namespace: ${{ github.run_id }}-${{ github.run_attempt }}
|
||||
phase_diagnostics: true
|
||||
run_relay_integration: false
|
||||
|
||||
@@ -27,4 +27,3 @@ jobs:
|
||||
shards: ${{ needs.unit_plan.outputs.shards }}
|
||||
module_cache: cold
|
||||
artifact_prefix: cache-producer-unit
|
||||
run_relay_integration: false
|
||||
|
||||
@@ -54,11 +54,6 @@ on:
|
||||
default: unit
|
||||
type: string
|
||||
|
||||
run_relay_integration:
|
||||
description: Run relay contracts alongside normal unit checks.
|
||||
default: true
|
||||
type: boolean
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
@@ -194,47 +189,3 @@ jobs:
|
||||
path: ci-shards/
|
||||
retention-days: 14
|
||||
if-no-files-found: warn
|
||||
|
||||
relay_integration:
|
||||
if: inputs.run_relay_integration
|
||||
name: relay integration node ${{ matrix.node }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
node: ${{ fromJSON(inputs.node_versions) }}
|
||||
# Free hosted runner: ~1.2 min of work finishes well inside the ~7 min unit shards it runs beside.
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 60
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- uses: ./.github/actions/install-node-dependencies
|
||||
id: root_dependencies
|
||||
with:
|
||||
native-runtime: none
|
||||
node-version: ${{ matrix.node }}
|
||||
cache-dependency-path: |
|
||||
pnpm-lock.yaml
|
||||
cloud/pnpm-lock.yaml
|
||||
|
||||
# This test imports the cloud relay workspace directly. Its dedicated job avoids
|
||||
# installing and building the same workspace once per unit-test shard.
|
||||
- name: Install relay integration dependencies
|
||||
id: relay_dependencies
|
||||
if: ${{ !cancelled() && steps.root_dependencies.outcome == 'success' }}
|
||||
working-directory: cloud
|
||||
run: |
|
||||
pnpm --filter '@orca-cloud/relay...' install --frozen-lockfile --ignore-scripts
|
||||
pnpm --filter '@orca-cloud/relay^...' build
|
||||
|
||||
- name: Test relay integration contracts
|
||||
if: ${{ !cancelled() && steps.relay_dependencies.outcome == 'success' }}
|
||||
env:
|
||||
ORCA_BACKGROUND_LAUNCH: '1'
|
||||
run: >-
|
||||
pnpm exec vitest run --config config/vitest.config.ts
|
||||
tests/e2e/relay-region-correction.unit.test.ts
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
name: Windows browser agent focus E2E
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
ref:
|
||||
description: Ref to check out
|
||||
required: false
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
# Candidate source must not write caches in the dispatch branch's scope.
|
||||
cache-mode: read
|
||||
|
||||
concurrency:
|
||||
group: windows-browser-focus-e2e-${{ inputs.ref || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
windows-browser-focus:
|
||||
name: Agent browser input leaves Orca behind the user's app
|
||||
runs-on: windows-2022
|
||||
timeout-minutes: 30
|
||||
env:
|
||||
NODE_OPTIONS: --max-old-space-size=4096
|
||||
ORCA_BACKGROUND_LAUNCH: '1'
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ref: ${{ inputs.ref || github.ref }}
|
||||
persist-credentials: false
|
||||
|
||||
# Why: pnpm must exist before setup-node resolves its dependency cache.
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/setup@v2
|
||||
with:
|
||||
install: false
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: package.json
|
||||
check-latest: true
|
||||
cache: pnpm
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Build Electron app for Windows E2E
|
||||
run: pnpm exec electron-vite build --mode e2e
|
||||
|
||||
# Why: the hosted Windows desktop has a real foreground, so it can see an agent press activate Orca.
|
||||
- name: Run agent focus checks on the Windows desktop
|
||||
env:
|
||||
SKIP_BUILD: '1'
|
||||
ORCA_E2E_FORWARD_APP_LOGS: '1'
|
||||
run: >-
|
||||
pnpm exec playwright test
|
||||
tests/e2e/browser-agent-input-focus-isolation-native.spec.ts
|
||||
--config tests/playwright.config.ts
|
||||
--project=electron-headful
|
||||
--workers=1
|
||||
|
||||
- name: Upload Playwright traces
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: windows-browser-focus-playwright-traces
|
||||
path: test-results/
|
||||
retention-days: 7
|
||||
if-no-files-found: ignore
|
||||
@@ -59,9 +59,8 @@ jobs:
|
||||
# grep and worker flags positional filters instead of CLI options.
|
||||
run: >-
|
||||
pnpm run test:e2e
|
||||
tests/e2e/restart-restore-terminal-input.spec.ts
|
||||
tests/e2e/terminal-restart-persistence.spec.ts
|
||||
--grep "clean restart with a live daemon session|cold-restored pane accepts typing|daemon snapshot relaunch preserves"
|
||||
tests/e2e/desktop/startup-recovery/restart-restore-terminal-input.spec.ts
|
||||
--grep "clean restart with a live daemon session|cold-restored pane accepts typing"
|
||||
--workers=1
|
||||
|
||||
- name: Upload Playwright traces
|
||||
|
||||
@@ -26,7 +26,7 @@ concurrency:
|
||||
jobs:
|
||||
wsl-terminal:
|
||||
runs-on: windows-2022
|
||||
# The E9 guard adds three ~2-5 minute runs to the launch, paste and image checks.
|
||||
# Retain the original WSL launch and both stopped-distro guards; paste and image alarms are retired.
|
||||
timeout-minutes: 50
|
||||
env:
|
||||
NODE_OPTIONS: --max-old-space-size=4096
|
||||
@@ -52,30 +52,16 @@ jobs:
|
||||
PLAYWRIGHT_JSON_OUTPUT_FILE: test-results/wsl-results.json
|
||||
run: >-
|
||||
pnpm exec playwright test
|
||||
tests/e2e/golden-tab-bar-agent-launch.spec.ts
|
||||
tests/e2e/terminal-windows-shell-paste-ownership.spec.ts
|
||||
tests/e2e/golden-journeys/golden-tab-bar-agent-launch.spec.ts
|
||||
--config tests/playwright.config.ts
|
||||
--project=electron-headless
|
||||
--grep "WSL"
|
||||
--repeat-each=3
|
||||
--workers=1
|
||||
--reporter=list,json
|
||||
- name: Require all nine WSL executions
|
||||
- name: Require all three retained WSL launch executions
|
||||
if: always()
|
||||
run: node config/scripts/runtime-verification/participation/verify-wsl-e2e-participation.mjs test-results/wsl-results.json
|
||||
- name: Verify native Windows and WSL file-backed terminal images
|
||||
env:
|
||||
SKIP_BUILD: '1'
|
||||
ORCA_BACKGROUND_LAUNCH: '1'
|
||||
ORCA_E2E_FORWARD_APP_LOGS: '1'
|
||||
run: >-
|
||||
pnpm exec playwright test
|
||||
tests/e2e/terminal-inline-images-windows.spec.ts
|
||||
--config tests/playwright.config.ts
|
||||
--project=electron-headful
|
||||
--output=test-results/terminal-images
|
||||
--repeat-each=3
|
||||
--workers=1
|
||||
- name: Guard that background work never starts the stopped WSL distro
|
||||
env:
|
||||
SKIP_BUILD: '1'
|
||||
@@ -86,26 +72,16 @@ jobs:
|
||||
PLAYWRIGHT_JSON_OUTPUT_FILE: test-results/wsl-no-background-boot-results.json
|
||||
run: >-
|
||||
pnpm exec playwright test
|
||||
tests/e2e/wsl-bridge-no-background-boot.spec.ts
|
||||
tests/e2e/remote/wsl-hosts/wsl-bridge-no-background-boot.spec.ts
|
||||
--config tests/playwright.config.ts
|
||||
--project=electron-headless
|
||||
--output=test-results/wsl-no-background-boot
|
||||
--repeat-each=3
|
||||
--workers=1
|
||||
--reporter=list,json
|
||||
- name: Require all three E9 guard executions
|
||||
- name: Require all six retained E9 guard executions
|
||||
if: always()
|
||||
run: node config/scripts/runtime-verification/participation/verify-wsl-no-background-boot-participation.mjs test-results/wsl-no-background-boot-results.json
|
||||
- name: Upload terminal image proof
|
||||
uses: actions/upload-artifact@v7
|
||||
if: always()
|
||||
with:
|
||||
name: windows-wsl-terminal-image-proof
|
||||
path: |
|
||||
test-results/**/windows-inline-*.png
|
||||
test-results/**/windows-file-placeholders.png
|
||||
retention-days: 7
|
||||
if-no-files-found: error
|
||||
- name: Upload WSL participation report
|
||||
uses: actions/upload-artifact@v7
|
||||
if: always()
|
||||
|
||||
@@ -4,17 +4,12 @@ param(
|
||||
[Parameter(Mandatory=$true)][hashtable]$Context,
|
||||
[Parameter(Mandatory=$true)][ValidateSet('win32-arm64','win32-x64')][string]$Target,
|
||||
[Parameter(Mandatory=$true)][string]$ReceiptRoot,
|
||||
[ValidateSet('orcad-cmd','orcad-powershell','orcad-cli-managed')][string[]]$Cells=@('orcad-cmd','orcad-powershell')
|
||||
[ValidateSet('orcad-cmd','orcad-powershell')][string[]]$Cells=@('orcad-cmd','orcad-powershell')
|
||||
)
|
||||
$ErrorActionPreference='Stop'
|
||||
if($env:GITHUB_ACTIONS -ne 'true' -or $env:ORCA_ISOLATED_SSH_CI -ne '1'){throw 'Disposable CI only'}
|
||||
$shells=@{'orcad-cmd'='cmd';'orcad-powershell'='powershell';'orcad-cli-managed'='cmd'}
|
||||
# App-level cells drive the e2e build (and the bundled CLI) against the host; each greps one tagged test.
|
||||
$appCells=@{'orcad-cli-managed'=@('tests/e2e/ssh-orcad-windows-cli-matrix.spec.ts','@orcad-cli-managed')}
|
||||
$electronBuilt=$false
|
||||
$shells=@{'orcad-cmd'='cmd';'orcad-powershell'='powershell'}
|
||||
if($Context.accounts.Count -lt $Cells.Count){throw 'Each cell needs its own private account'}
|
||||
$seenApp=$false
|
||||
foreach($id in $Cells){if($appCells.ContainsKey($id)){$seenApp=$true}elseif($seenApp){throw 'App cells must run last: they switch native modules to Electron'}}
|
||||
if(-not $Context.forbiddenToolLog){throw 'Run the provisioning with -HiddenTools so toolchain calls are logged'}
|
||||
$openSshKey='HKLM:\SOFTWARE\OpenSSH'
|
||||
$windowsPowerShell=Join-Path $env:WINDIR 'System32\WindowsPowerShell\v1.0\powershell.exe'
|
||||
@@ -53,36 +48,6 @@ function Test-PrivateWmiLaunch([string]$Account) {
|
||||
if($match.Success){return $match.Groups[1].Value}else{return 'no-output'}
|
||||
}
|
||||
|
||||
# Run app-level cells last: the e2e build switches natives to Electron’s ABI, which vitest cannot load.
|
||||
function Invoke-AppCell($Account,[string]$Descriptor,[string]$Log,[string]$Spec,[string]$Grep) {
|
||||
$ready=Invoke-PrivateSsh $Account.name 'git init -q orca-convert-repo && git -C orca-convert-repo -c user.name=orca -c user.email=orca@example.invalid commit -q --allow-empty -m init && echo ORCA_REPO_READY'
|
||||
if($ready -notmatch 'ORCA_REPO_READY'){throw 'Could not create the convert cell repository as the account'}
|
||||
# Out of the app's default lookup, so the relay phase runs without a template.
|
||||
$template=Join-Path $env:RUNNER_TEMP 'orcad-convert-template'
|
||||
# Why guarded: Copy-Item into an existing folder nests the copy instead of replacing it.
|
||||
if(-not (Test-Path -LiteralPath $template)){Copy-Item -LiteralPath 'out\orcad-template' -Destination $template -Recurse -Force}
|
||||
Rename-Item -LiteralPath 'out\orcad-template' -NewName 'orcad-template.convert-hidden'
|
||||
try {
|
||||
if(-not $script:electronBuilt){
|
||||
& node config/scripts/native-build/node-addons/ensure-native-runtime.mjs --runtime=electron 2>&1 | Tee-Object -FilePath $Log | Out-Host
|
||||
if($global:LASTEXITCODE -ne 0){Write-Host 'Switching native modules to Electron failed';return $global:LASTEXITCODE}
|
||||
& pnpm exec electron-vite build --mode e2e 2>&1 | Tee-Object -FilePath $Log -Append | Out-Host
|
||||
if($global:LASTEXITCODE -ne 0){Write-Host 'The e2e app build failed';return $global:LASTEXITCODE}
|
||||
$script:electronBuilt=$true
|
||||
}
|
||||
$env:ORCA_E2E_ORCAD_CONVERT_HOST=$Descriptor;$env:ORCA_E2E_ORCAD_CONVERT_TEMPLATE=$template;$env:SKIP_BUILD='1'
|
||||
$grepArgs=if($Grep){@('--grep',$Grep)}else{@()}
|
||||
& pnpm exec playwright test --config tests/playwright.config.ts $Spec @grepArgs --project=electron-headless --workers=1 2>&1 | Tee-Object -FilePath $Log -Append | Out-Host
|
||||
# Functions return uncaptured output, so only the exit code may reach the caller.
|
||||
return $global:LASTEXITCODE
|
||||
} finally {
|
||||
# Screenshots, traces and error context: Playwright clears test-results on the next cell's run.
|
||||
if(Test-Path -LiteralPath 'test-results'){Copy-Item -LiteralPath 'test-results' -Destination ($Log -replace '\.log$','.test-results') -Recurse -Force}
|
||||
Remove-Item Env:ORCA_E2E_ORCAD_CONVERT_HOST,Env:ORCA_E2E_ORCAD_CONVERT_TEMPLATE,Env:SKIP_BUILD -ErrorAction SilentlyContinue
|
||||
Rename-Item -LiteralPath 'out\orcad-template.convert-hidden' -NewName 'orcad-template'
|
||||
}
|
||||
}
|
||||
|
||||
New-Item -ItemType Directory -Force -Path $ReceiptRoot | Out-Null
|
||||
Push-Location $SourceRoot
|
||||
try {
|
||||
@@ -107,15 +72,12 @@ try {
|
||||
@{cell=$cell;target=$Target;host='127.0.0.1';port=[int]$Context.port;username=$account.name;identityFile=$Context.identityFile;home=$account.home;forbiddenToolLog=$Context.forbiddenToolLog;receipt=(Join-Path $ReceiptRoot "$cell.json")} | ConvertTo-Json | Set-Content -LiteralPath $descriptor -Encoding utf8NoBOM
|
||||
$env:ORCA_RUN_SSH_WINDOWS_HOST='1';$env:ORCA_SSH_WINDOWS_HOST_CELL=$descriptor
|
||||
Write-Host "Windows host cell $cell ($Target, DefaultShell $shell, account $($account.name))"
|
||||
if($appCells.ContainsKey($cell)){
|
||||
$code=Invoke-AppCell $account $descriptor (Join-Path $ReceiptRoot "$cell.log") $appCells[$cell][0] $appCells[$cell][1]
|
||||
} else {
|
||||
if(-not $cell.StartsWith('orcad-')){throw "Unknown Windows host cell $cell"}
|
||||
$lane='src/main/managed-server/host-state/orcad-windows-host-lane.test.ts'
|
||||
& node node_modules/vitest/vitest.mjs run --config config/vitest.config.ts $lane --reporter=verbose 2>&1 | Tee-Object -FilePath (Join-Path $ReceiptRoot "$cell.log")
|
||||
# Why global: under the workflow's GetNewClosure callback, bare $LASTEXITCODE reads a stale captured copy.
|
||||
$code=$global:LASTEXITCODE
|
||||
}
|
||||
|
||||
if(-not $cell.StartsWith('orcad-')){throw "Unknown Windows host cell $cell"}
|
||||
$lane='src/main/managed-server/host-state/orcad-windows-host-lane.test.ts'
|
||||
& node node_modules/vitest/vitest.mjs run --config config/vitest.config.ts $lane --reporter=verbose 2>&1 | Tee-Object -FilePath (Join-Path $ReceiptRoot "$cell.log")
|
||||
# Why global: under the workflow's GetNewClosure callback, bare $LASTEXITCODE reads a stale captured copy.
|
||||
$code=$global:LASTEXITCODE
|
||||
# orcad.log holds only the last launch on Windows; orcad.log.1 is the one before a restart.
|
||||
foreach($log in @(Get-ChildItem -Path (Join-Path $account.home '.orca-remote\orcad-*\orcad.log'),(Join-Path $account.home '.orca-remote\orcad-*\orcad.log.1') -File -ErrorAction SilentlyContinue)){Copy-Item -LiteralPath $log.FullName -Destination (Join-Path $ReceiptRoot "$cell.$($log.Directory.Name).$($log.Name)")}
|
||||
if(Test-Path -LiteralPath $Context.forbiddenToolLog){Copy-Item -LiteralPath $Context.forbiddenToolLog -Destination (Join-Path $ReceiptRoot "$cell.forbidden-tool-calls.log")}
|
||||
|
||||
@@ -40,64 +40,44 @@
|
||||
1 test-no-polling-loop:src/shared/process-observation/darwin/darwin-terminal-names-real-ps.test.ts
|
||||
1 test-no-polling-loop:src/shared/shell/launch/startup-command-staging.node-pty.test.ts
|
||||
1 test-no-polling-loop:src/shared/terminal/pty/ingress/pty-reply-echo-shapes.node-pty.test.ts
|
||||
1 test-no-polling-loop:tests/e2e/agent-session-live-force-exit-resume.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/agent-session-log-tail-stability.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/artificial-opencode-pane-interactions.ts
|
||||
1 test-no-polling-loop:tests/e2e/artificial-opencode-revisit-pressure-scenario.ts
|
||||
1 test-no-polling-loop:tests/e2e/browser-guest-crash-recovery.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/browser-tab.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/chinese-ime-chat-input-repro.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/terminal/performance/artificial-opencode-pane-interactions.ts
|
||||
1 test-no-polling-loop:tests/e2e/terminal/performance/artificial-opencode-revisit-pressure-scenario.ts
|
||||
1 test-no-polling-loop:tests/e2e/cross-version-wire/relay/released-relay-daemon.ts
|
||||
1 test-no-polling-loop:tests/e2e/cross-version-wire/relay/released-relay-transport.ts
|
||||
1 test-no-polling-loop:tests/e2e/daemon-lifecycle-retirement.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/desktop/daemon-lifecycle/daemon-lifecycle-retirement.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/fixtures/daemon-generation-legacy-close-client.ts
|
||||
1 test-no-polling-loop:tests/e2e/fixtures/daemon-generation-reconnect-client.ts
|
||||
2 test-no-polling-loop:tests/e2e/floating-workspace-reopen-webgl-recovery.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/floating-workspace-shared-glyph-atlas.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/helpers/computer-cli-driver.ts
|
||||
2 test-no-polling-loop:tests/e2e/helpers/computer-driver.ts
|
||||
1 test-no-polling-loop:tests/e2e/helpers/daemon-generation-processes.ts
|
||||
1 test-no-polling-loop:tests/e2e/helpers/electron-process-shutdown.ts
|
||||
1 test-no-polling-loop:tests/e2e/helpers/headless-layout-oracle-hosts.ts
|
||||
1 test-no-polling-loop:tests/e2e/helpers/hold-window-graph-publication.ts
|
||||
2 test-no-polling-loop:tests/e2e/helpers/layout-compat-baseline.ts
|
||||
2 test-no-polling-loop:tests/e2e/helpers/legacy-relay-docker-host.ts
|
||||
1 test-no-polling-loop:tests/e2e/helpers/orca-app.ts
|
||||
1 test-no-polling-loop:tests/e2e/helpers/orca-restart.ts
|
||||
1 test-no-polling-loop:tests/e2e/helpers/orca-serve-cli-host.ts
|
||||
1 test-no-polling-loop:tests/e2e/helpers/packaged-old-orca.ts
|
||||
1 test-no-polling-loop:tests/e2e/helpers/paired-client-window-reveal.ts
|
||||
1 test-no-polling-loop:tests/e2e/helpers/paired-electron-client.ts
|
||||
1 test-no-polling-loop:tests/e2e/helpers/paired-host-terminal.ts
|
||||
1 test-no-polling-loop:tests/e2e/helpers/restored-terminal-input-readiness.ts
|
||||
1 test-no-polling-loop:tests/e2e/helpers/terminal-typing-benchmark.ts
|
||||
1 test-no-polling-loop:tests/e2e/helpers/workspace-layout-oracle-markers.ts
|
||||
1 test-no-polling-loop:tests/e2e/helpers/workspace-layout-oracle.ts
|
||||
3 test-no-polling-loop:tests/e2e/host-parked-pane-remote-viewer.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/large-file-count-fixtures.ts
|
||||
1 test-no-polling-loop:tests/e2e/orchestration-idle-mail-delivery.spec.ts
|
||||
5 test-no-polling-loop:tests/e2e/paced-terminal-typing.ts
|
||||
1 test-no-polling-loop:tests/e2e/paired-instant-browser-tab.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/paired-remote-browser-ghost-subscriber-rejoin.spec.ts
|
||||
3 test-no-polling-loop:tests/e2e/paired-remote-terminal-client-restart-survival.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/paired-remote-terminal-materialization-reconnect.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/paired-remote-terminal-parked-reveal-interactivity.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/paired-remote-terminal-parked-scrollback-restart.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/paired-two-client-emptied-workspace-reseed.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/project-group-manual-sort.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/slept-workspace-remount-wake.spec.ts
|
||||
2 test-no-polling-loop:tests/e2e/terminal-column-desync-repro.spec.ts
|
||||
2 test-no-polling-loop:tests/e2e/terminal-column-probes.ts
|
||||
1 test-no-polling-loop:tests/e2e/terminal-hidden-view-parking.spec.ts
|
||||
4 test-no-polling-loop:tests/e2e/terminal-inline-tui-reveal-convergence.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/terminal-opencode-emoji-table-rendering.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/terminal-pane-close-layout-consistency.spec.ts
|
||||
2 test-no-polling-loop:tests/e2e/terminal-pty-readiness.ts
|
||||
1 test-no-polling-loop:tests/e2e/terminal-tab-screenshot.ts
|
||||
1 test-no-polling-loop:tests/e2e/terminal-tab-switch-visual-restore.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/terminal-tui-wheel-reports.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/workspace-sleep-in-main.spec.ts
|
||||
2 test-no-polling-loop:tests/e2e/worktree-card-downward-drag.spec.ts
|
||||
2 test-no-polling-loop:tests/e2e/layout/window-tabs/floating-workspace-reopen-webgl-recovery.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/layout/window-tabs/floating-workspace-shared-glyph-atlas.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/desktop/computer-use/computer-cli-driver.ts
|
||||
2 test-no-polling-loop:tests/e2e/desktop/computer-use/computer-driver.ts
|
||||
1 test-no-polling-loop:tests/e2e/desktop/daemon-lifecycle/daemon-generation-processes.ts
|
||||
1 test-no-polling-loop:tests/e2e/desktop/electron-fixtures/electron-process-shutdown.ts
|
||||
1 test-no-polling-loop:tests/e2e/layout/workspace-oracle/headless-layout-oracle-hosts.ts
|
||||
1 test-no-polling-loop:tests/e2e/desktop/electron-fixtures/hold-window-graph-publication.ts
|
||||
2 test-no-polling-loop:tests/e2e/layout/version-compatibility/layout-compat-baseline.ts
|
||||
2 test-no-polling-loop:tests/e2e/remote/relay/legacy-relay-docker-host.ts
|
||||
1 test-no-polling-loop:tests/e2e/desktop/electron-fixtures/orca-app.ts
|
||||
1 test-no-polling-loop:tests/e2e/desktop/electron-fixtures/orca-restart.ts
|
||||
1 test-no-polling-loop:tests/e2e/remote/paired-runtime/client-hosts/orca-serve-cli-host.ts
|
||||
1 test-no-polling-loop:tests/e2e/remote/paired-runtime/client-hosts/packaged-old-orca.ts
|
||||
1 test-no-polling-loop:tests/e2e/remote/paired-runtime/client-hosts/paired-client-window-reveal.ts
|
||||
1 test-no-polling-loop:tests/e2e/remote/paired-runtime/client-hosts/paired-electron-client.ts
|
||||
1 test-no-polling-loop:tests/e2e/terminal/remote-hosts/paired-host-terminal.ts
|
||||
1 test-no-polling-loop:tests/e2e/terminal/readiness/restored-terminal-input-readiness.ts
|
||||
1 test-no-polling-loop:tests/e2e/terminal/performance/terminal-typing-benchmark.ts
|
||||
1 test-no-polling-loop:tests/e2e/layout/workspace-oracle/workspace-layout-oracle-markers.ts
|
||||
1 test-no-polling-loop:tests/e2e/layout/workspace-oracle/workspace-layout-oracle.ts
|
||||
1 test-no-polling-loop:tests/e2e/source-control/large-file-count-fixtures.ts
|
||||
5 test-no-polling-loop:tests/e2e/terminal/performance/paced-terminal-typing.ts
|
||||
1 test-no-polling-loop:tests/e2e/browser/remote-hosted/paired-remote-browser-ghost-subscriber-rejoin.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/workspaces/project-admission/project-group-manual-sort.spec.ts
|
||||
2 test-no-polling-loop:tests/e2e/terminal/rendering/terminal-column-desync-repro.spec.ts
|
||||
2 test-no-polling-loop:tests/e2e/terminal/rendering/terminal-column-probes.ts
|
||||
2 test-no-polling-loop:tests/e2e/terminal/lifecycle/terminal-pty-readiness.ts
|
||||
1 test-no-polling-loop:tests/e2e/terminal/rendering/terminal-tab-screenshot.ts
|
||||
1 test-no-polling-loop:tests/e2e/terminal/rendering/terminal-tab-switch-visual-restore.spec.ts
|
||||
1 test-no-polling-loop:tests/e2e/workspaces/sleep/workspace-sleep-in-main.spec.ts
|
||||
1 test-no-real-time-wait:src/main/agent-hooks/installation/scripts/posix-hook-json-stdin-reader.test.ts
|
||||
1 test-no-real-time-wait:src/main/ai-vault/scanners/opencode/reader-transport/session-scanner-opencode-sqlite-process.test.ts
|
||||
1 test-no-real-time-wait:src/main/antigravity/windows-hook-json-post.test.ts
|
||||
@@ -166,144 +146,62 @@
|
||||
2 test-no-real-time-wait:src/shared/shell/launch/startup-command-staging.node-pty.test.ts
|
||||
4 test-no-real-time-wait:src/shared/terminal/pty/ingress/pty-reply-echo-shapes.node-pty.test.ts
|
||||
5 test-no-real-time-wait:src/wsl-guest/agent-hooks/server/agent-hook-server.test.ts
|
||||
1 test-no-real-time-wait:tests/e2e/accumulated-workspace-status-fixture.ts
|
||||
1 test-no-real-time-wait:tests/e2e/agent-session-live-force-exit-resume.spec.ts
|
||||
3 test-no-real-time-wait:tests/e2e/agent-session-log-tail-stability.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/artificial-opencode-pane-interactions.ts
|
||||
1 test-no-real-time-wait:tests/e2e/artificial-opencode-revisit-pressure-scenario.ts
|
||||
1 test-no-real-time-wait:tests/e2e/browser-guest-crash-recovery.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/browser-tab.spec.ts
|
||||
9 test-no-real-time-wait:tests/e2e/chinese-ime-chat-input-repro.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/cli-floating-file-open-position.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/codex-ctrl-c-status.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/layout/accumulated-workspaces/accumulated-workspace-status-fixture.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal/performance/artificial-opencode-pane-interactions.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal/performance/artificial-opencode-revisit-pressure-scenario.ts
|
||||
1 test-no-real-time-wait:tests/e2e/cross-version-wire/relay/legacy-relay-bridge.unit.test.ts
|
||||
1 test-no-real-time-wait:tests/e2e/cross-version-wire/relay/released-relay-daemon.ts
|
||||
2 test-no-real-time-wait:tests/e2e/cross-version-wire/relay/released-relay-transport.ts
|
||||
1 test-no-real-time-wait:tests/e2e/daemon-lifecycle-retirement.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/default-tabs-mark-crash-relaunch.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/diff-note-draft.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/droid-notification.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/file-explorer-linked-watch-refresh.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/file-explorer-watch-refresh.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/desktop/daemon-lifecycle/daemon-lifecycle-retirement.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/fixtures/daemon-generation-legacy-close-client.ts
|
||||
1 test-no-real-time-wait:tests/e2e/fixtures/daemon-generation-reconnect-client.ts
|
||||
4 test-no-real-time-wait:tests/e2e/floating-workspace-reopen-webgl-recovery.spec.ts
|
||||
4 test-no-real-time-wait:tests/e2e/floating-workspace-shared-glyph-atlas.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/headless-paired-remote-terminal-reveal-grid.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/headless-paired-remote-terminal-viewer-size.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/helpers/computer-cli-driver.ts
|
||||
4 test-no-real-time-wait:tests/e2e/helpers/computer-driver.ts
|
||||
1 test-no-real-time-wait:tests/e2e/helpers/daemon-generation-processes.ts
|
||||
1 test-no-real-time-wait:tests/e2e/helpers/electron-main-evaluate-retry.ts
|
||||
1 test-no-real-time-wait:tests/e2e/helpers/electron-process-shutdown.ts
|
||||
1 test-no-real-time-wait:tests/e2e/helpers/headless-layout-oracle-hosts.ts
|
||||
1 test-no-real-time-wait:tests/e2e/helpers/hold-window-graph-publication.ts
|
||||
2 test-no-real-time-wait:tests/e2e/helpers/layout-compat-baseline.ts
|
||||
2 test-no-real-time-wait:tests/e2e/helpers/legacy-relay-docker-host.ts
|
||||
1 test-no-real-time-wait:tests/e2e/helpers/orca-app.ts
|
||||
1 test-no-real-time-wait:tests/e2e/helpers/orca-restart.ts
|
||||
1 test-no-real-time-wait:tests/e2e/helpers/orca-serve-cli-host.ts
|
||||
1 test-no-real-time-wait:tests/e2e/helpers/orcad-convert-flow.ts
|
||||
1 test-no-real-time-wait:tests/e2e/helpers/packaged-old-orca.ts
|
||||
1 test-no-real-time-wait:tests/e2e/helpers/paired-client-window-reveal.ts
|
||||
1 test-no-real-time-wait:tests/e2e/helpers/paired-desktop-server-layout.ts
|
||||
1 test-no-real-time-wait:tests/e2e/helpers/paired-electron-client.ts
|
||||
1 test-no-real-time-wait:tests/e2e/helpers/paired-host-terminal.ts
|
||||
3 test-no-real-time-wait:tests/e2e/helpers/remote-session-bulk-open-oracle.ts
|
||||
1 test-no-real-time-wait:tests/e2e/helpers/restored-terminal-input-readiness.ts
|
||||
1 test-no-real-time-wait:tests/e2e/helpers/terminal-pty-write-spy.ts
|
||||
1 test-no-real-time-wait:tests/e2e/helpers/terminal-typing-benchmark.ts
|
||||
2 test-no-real-time-wait:tests/e2e/helpers/workspace-layout-oracle-markers.ts
|
||||
2 test-no-real-time-wait:tests/e2e/helpers/workspace-layout-oracle.ts
|
||||
1 test-no-real-time-wait:tests/e2e/hidden-workspace-notifications.spec.ts
|
||||
3 test-no-real-time-wait:tests/e2e/host-parked-pane-remote-viewer.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/host-terminal-agent-phone-push.spec.ts
|
||||
7 test-no-real-time-wait:tests/e2e/korean-ime-terminal-shift-enter-commit.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/large-file-count-fixtures.ts
|
||||
1 test-no-real-time-wait:tests/e2e/large-markdown-preview.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/layout-stream-loss-reopen.spec.ts
|
||||
3 test-no-real-time-wait:tests/e2e/notification-sound-replay.spec.ts
|
||||
4 test-no-real-time-wait:tests/e2e/orchestration-idle-mail-delivery.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/orchestration-idle-mail-restore.spec.ts
|
||||
4 test-no-real-time-wait:tests/e2e/paced-terminal-typing.ts
|
||||
1 test-no-real-time-wait:tests/e2e/paired-client-hosted-browser-double-restart.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/paired-client-hosted-browser-ghost-close.spec.ts
|
||||
4 test-no-real-time-wait:tests/e2e/paired-client-hosted-browser-network-outage.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/paired-client-hosted-browser-quit-survival.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/paired-host-usage-credentials.spec.ts
|
||||
5 test-no-real-time-wait:tests/e2e/paired-instant-browser-tab.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/paired-remote-browser-ghost-subscriber-rejoin.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/paired-remote-browser-stream-reconnect.spec.ts
|
||||
3 test-no-real-time-wait:tests/e2e/paired-remote-terminal-client-restart-survival.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/paired-remote-terminal-materialization-reconnect.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/paired-remote-terminal-network-outage.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/paired-remote-terminal-parked-reveal-interactivity.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/paired-remote-terminal-parked-scrollback-restart.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/paired-remote-terminal-reconnect-idle-frame.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/paired-two-client-emptied-workspace-reseed.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/pdf-find-counter.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/pdf-viewer-rebuild-recovery.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/project-group-manual-sort.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/relaunch-first-terminal.spec.ts
|
||||
4 test-no-real-time-wait:tests/e2e/relaunch-sleeping-agents-resume-on-view.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/resource-manager-local-pty-view.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/settings-display-name-ime.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/settled-worker-tab-survives-restart.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/setup-script-prompt-unreadable-orca-yaml.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/sidebar-desktop-reads-main.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/sidebar-unread-older-paired-host.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/slept-workspace-remount-wake.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/ssh-orcad-idle-exit.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/ssh-orcad-pairing-repair.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/ssh-orcad-sleep-disconnected.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/ssh-orcad-terminal-network-outage.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/ssh-orcad-terminal-reconnect-idle-frame.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/status-bar-session-count-management-kill.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/tasks-page.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/terminal-cjk-ime-committed-text.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal-closed-pane-quit-relaunch.spec.ts
|
||||
8 test-no-real-time-wait:tests/e2e/terminal-column-desync-repro.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/terminal-column-probes.ts
|
||||
2 test-no-real-time-wait:tests/e2e/terminal-document-visibility-webgl-recovery.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/terminal-hangul-terminating-digit-native.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal-hangul-wrap-boundary-bytes.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal-hidden-view-parking.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal-ibus-hangul-native.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal-ime-cdp-composition.ts
|
||||
9 test-no-real-time-wait:tests/e2e/terminal-inline-tui-reveal-convergence.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal-korean-composing-chord-order.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal-large-paste-responsiveness.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal-link-click-ownership.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal-link-hover-after-worktree-return.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal-macos-system-key-remap.spec.ts
|
||||
3 test-no-real-time-wait:tests/e2e/terminal-opencode-emoji-table-rendering.spec.ts
|
||||
4 test-no-real-time-wait:tests/e2e/terminal-pane-close-layout-consistency.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/terminal-pinned-viewport-streaming-switch.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/terminal-pinned-viewport-worktree-switch.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal-pty-readiness.ts
|
||||
3 test-no-real-time-wait:tests/e2e/terminal-raw-emoji-table-scroll-restore.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal-reattach-mouse-mode-leak.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal-reattach-tui-mouse-mode.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/terminal-reveal-paused-render-repro.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal-scroll-intent-follow.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal-tab-close-restart-persistence.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal-tab-close-running-confirm-mouse.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal-tab-close-running-confirm.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/terminal-tab-level-binding-upgrade.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal-tab-screenshot.ts
|
||||
2 test-no-real-time-wait:tests/e2e/terminal-tab-switch-sigwinch-restore.spec.ts
|
||||
3 test-no-real-time-wait:tests/e2e/terminal-tab-switch-visual-restore.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal-tui-wheel-drain.spec.ts
|
||||
4 test-no-real-time-wait:tests/e2e/terminal-tui-wheel-reports.spec.ts
|
||||
4 test-no-real-time-wait:tests/e2e/terminal-warm-reattach-split-live-output.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/terminal-windows-codex-multiline-paste.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/unopened-workspace-agent-single-resume.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/workspace-sleep-in-main.spec.ts
|
||||
3 test-no-real-time-wait:tests/e2e/workspace-sleep-main-resume.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/worktree-card-downward-drag.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/worktree-jump-sleep-focus.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/worktree-parent-reorder.spec.ts
|
||||
3 test-no-real-time-wait:tests/e2e/worktree.spec.ts
|
||||
4 test-no-real-time-wait:tests/e2e/layout/window-tabs/floating-workspace-reopen-webgl-recovery.spec.ts
|
||||
4 test-no-real-time-wait:tests/e2e/layout/window-tabs/floating-workspace-shared-glyph-atlas.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal/remote-layout/headless-paired-remote-terminal-reveal-grid.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal/remote-layout/headless-paired-remote-terminal-viewer-size.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/desktop/computer-use/computer-cli-driver.ts
|
||||
4 test-no-real-time-wait:tests/e2e/desktop/computer-use/computer-driver.ts
|
||||
1 test-no-real-time-wait:tests/e2e/desktop/daemon-lifecycle/daemon-generation-processes.ts
|
||||
1 test-no-real-time-wait:tests/e2e/desktop/electron-fixtures/electron-main-evaluate-retry.ts
|
||||
1 test-no-real-time-wait:tests/e2e/desktop/electron-fixtures/electron-process-shutdown.ts
|
||||
1 test-no-real-time-wait:tests/e2e/layout/workspace-oracle/headless-layout-oracle-hosts.ts
|
||||
1 test-no-real-time-wait:tests/e2e/desktop/electron-fixtures/hold-window-graph-publication.ts
|
||||
2 test-no-real-time-wait:tests/e2e/layout/version-compatibility/layout-compat-baseline.ts
|
||||
2 test-no-real-time-wait:tests/e2e/remote/relay/legacy-relay-docker-host.ts
|
||||
1 test-no-real-time-wait:tests/e2e/desktop/electron-fixtures/orca-app.ts
|
||||
1 test-no-real-time-wait:tests/e2e/desktop/electron-fixtures/orca-restart.ts
|
||||
1 test-no-real-time-wait:tests/e2e/remote/paired-runtime/client-hosts/orca-serve-cli-host.ts
|
||||
1 test-no-real-time-wait:tests/e2e/remote/managed-ssh/host-lifecycle/orcad-convert-flow.ts
|
||||
1 test-no-real-time-wait:tests/e2e/remote/paired-runtime/client-hosts/packaged-old-orca.ts
|
||||
1 test-no-real-time-wait:tests/e2e/remote/paired-runtime/client-hosts/paired-client-window-reveal.ts
|
||||
1 test-no-real-time-wait:tests/e2e/layout/publication/paired-desktop-server-layout.ts
|
||||
1 test-no-real-time-wait:tests/e2e/remote/paired-runtime/client-hosts/paired-electron-client.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal/remote-hosts/paired-host-terminal.ts
|
||||
3 test-no-real-time-wait:tests/e2e/terminal/remote-layout/remote-session-bulk-open-oracle.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal/readiness/restored-terminal-input-readiness.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal/input/terminal-pty-write-spy.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal/performance/terminal-typing-benchmark.ts
|
||||
2 test-no-real-time-wait:tests/e2e/layout/workspace-oracle/workspace-layout-oracle-markers.ts
|
||||
2 test-no-real-time-wait:tests/e2e/layout/workspace-oracle/workspace-layout-oracle.ts
|
||||
1 test-no-real-time-wait:tests/e2e/source-control/large-file-count-fixtures.ts
|
||||
4 test-no-real-time-wait:tests/e2e/terminal/performance/paced-terminal-typing.ts
|
||||
2 test-no-real-time-wait:tests/e2e/browser/remote-hosted/paired-remote-browser-ghost-subscriber-rejoin.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/workspaces/project-admission/project-group-manual-sort.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/workspaces/sidebar/sidebar-unread-older-paired-host.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal/layout/terminal-closed-pane-quit-relaunch.spec.ts
|
||||
8 test-no-real-time-wait:tests/e2e/terminal/rendering/terminal-column-desync-repro.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/terminal/rendering/terminal-column-probes.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal/ime/terminal-ime-cdp-composition.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal/links/terminal-link-click-ownership.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal/lifecycle/terminal-pty-readiness.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal/lifecycle/terminal-scroll-intent-follow.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal/retention/terminal-tab-close-running-confirm-mouse.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal/retention/terminal-tab-close-running-confirm.spec.ts
|
||||
2 test-no-real-time-wait:tests/e2e/terminal/lifecycle/terminal-tab-level-binding-upgrade.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/terminal/rendering/terminal-tab-screenshot.ts
|
||||
3 test-no-real-time-wait:tests/e2e/terminal/rendering/terminal-tab-switch-visual-restore.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/workspaces/sleep/workspace-sleep-in-main.spec.ts
|
||||
1 test-no-real-time-wait:tests/e2e/workspaces/sidebar/worktree-parent-reorder.spec.ts
|
||||
1 test-no-wall-clock:config/scripts/worktree-storage/reclaim-dev-electron-bundles.test.ts
|
||||
1 test-no-wall-clock:config/scripts/worktree-storage/reclaim-release-test-caches.test.ts
|
||||
1 test-no-wall-clock:mobile/scripts/native-build-cache.test.ts
|
||||
@@ -424,7 +322,6 @@
|
||||
1 test-no-wall-clock:src/wsl-guest/agent-hooks/presence/relay-idle-process-owner.test.ts
|
||||
2 test-no-wall-clock:tests/e2e/cross-version-wire/relay/legacy-relay-bridge.unit.test.ts
|
||||
2 test-no-wall-clock:tests/e2e/cross-version-wire/release-checkouts/release-checkout.unit.test.ts
|
||||
1 test-no-wall-clock:tests/e2e/host-cold-park-remote-subscriber.unit.test.ts
|
||||
1 test-timeout-needs-reason:src/cli/agents/agent-launch-process.test.ts
|
||||
1 test-timeout-needs-reason:src/cli/runtime/serve/startup/serve-pid1-init-reaper.test.ts
|
||||
1 test-timeout-needs-reason:src/cli/skills/skills-install.test.ts
|
||||
@@ -493,174 +390,46 @@
|
||||
1 test-timeout-needs-reason:src/renderer/src/lib/source-control/checks/check-run-details-log-normalization-performance.test.ts
|
||||
1 test-timeout-needs-reason:src/shared/__tests__/process-host/windows-tree-kill-late-taskkill.win32.test.ts
|
||||
1 test-timeout-needs-reason:src/shared/shell/wsl/wsl-login-shell-command.test.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/agent-send-picker-reveal.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/agent-session-log-tail-stability.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/browser-agent-input-focus-isolation-native.spec.ts
|
||||
5 test-timeout-needs-reason:tests/e2e/browser-agent-input-focus-isolation.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/cli-agent-unopened-workspace-resume.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/combined-diff-invalidation-freeze-repro.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/completed-worker-retirement-resume.spec.ts
|
||||
3 test-timeout-needs-reason:tests/e2e/cross-version-wire/relay/legacy-relay-bridge.unit.test.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/cross-version-wire/release-checkouts/release-checkout.unit.test.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/csv-paged-preview.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/csv-url-links.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/cursor-quota-transport.unit.test.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/daemon-generation-legacy-close-safety.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/daemon-generation-reconnect-safety.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/default-tabs-mark-crash-relaunch.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/desktop-window-mobile-markdown.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/floating-tab-rename.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/golden-quit-relaunch-session.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/golden-terminal-file-link.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/golden-worktree-create-switch.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/headless-mobile-markdown.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/headless-paired-remote-terminal-retention-memory.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/headless-paired-remote-terminal-reveal-grid.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/headless-paired-remote-terminal-stall-recovery.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/headless-paired-remote-terminal-viewer-size.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/headless-serve-browser-tab-restart.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/headless-serve-cli-terminal-retention-parity.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/headless-serve-mobile-markdown.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/headless-serve-mobile-native-chat-identity.spec.ts
|
||||
4 test-timeout-needs-reason:tests/e2e/helpers/electron-process-shutdown.unit.test.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/host-parked-pane-remote-viewer.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/host-terminal-agent-phone-push.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/html-file-url-opening.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/landing-preflight-runtime-routing.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/layout-compat-new-desktop-on-old-server.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/layout-compat-old-desktop-on-new-server.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/layout-compat-old-phone-on-new-server.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/layout-compat-serve-restart-keeps-at-at-terminals.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/linear-issue-view-persistence.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/local-cli-terminal-retention.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/manual-worktree-order-persistence.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/markdown-literal-save-reopen.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/mobile-subscribe-idle-hidden-pane-fit.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/orcad-serve-open-url-on-desktop.spec.ts
|
||||
9 test-timeout-needs-reason:tests/e2e/orchestration-idle-mail-delivery.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/orchestration-idle-mail-restore.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/orchestration-legacy-worker-missing-terminal-recovery.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/orchestration-worker-settlement-release-cli.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/orchestration-worker-transcript-providers.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/packaged-mixed-version-browser-placement.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/paired-browser-create-navigation-deadline.spec.ts
|
||||
3 test-timeout-needs-reason:tests/e2e/paired-browser-creation-reconciliation-failure.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-cli-terminal-graph-sync-tab-retention.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-client-first-terminal-unopened-host-worktree.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-client-host-repo-id-change-rows.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-client-hosted-browser-cookie-survival.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-client-hosted-browser-double-restart.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-client-hosted-browser-ghost-close.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-client-hosted-browser-host-strip.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-client-hosted-browser-markup.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-client-hosted-browser-network-outage.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/paired-client-hosted-browser-quit-survival.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-client-hosted-browser-restart-survival.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-client-hosted-browser-title-hold.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/paired-client-hosted-browser.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-client-hosted-profile-cookies.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-client-project-removal-stops-host-terminals.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-cmd-j-host-qualified-tabs.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/paired-host-usage-credentials.spec.ts
|
||||
7 test-timeout-needs-reason:tests/e2e/paired-instant-browser-tab.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-mobile-desktop-mirror-files-git-review.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-mobile-desktop-mirror-workspace-visibility.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/paired-mobile-desktop-mirror.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-mobile-desktop-tab-composition.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-mobile-serve-restart-terminal-tabs.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-pane-title-desktop-host.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-preview-address-bar-convergence.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-remote-browser-ghost-subscriber-rejoin.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/paired-remote-browser-stream-reconnect.spec.ts
|
||||
3 test-timeout-needs-reason:tests/e2e/paired-remote-html-preview-local-render.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-remote-large-file-open.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-remote-pane-layout-retry.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-remote-split-pane-focus.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-remote-split-pane-host-retired-ghost.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-remote-terminal-browser-link.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-remote-terminal-client-restart-survival.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-remote-terminal-host-quit-reconnect-input.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-remote-terminal-host-restart-background-sync.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-remote-terminal-initial-snapshot-scrollback.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-remote-terminal-lossy-initial-snapshot.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/paired-remote-terminal-materialization-reconnect.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-remote-terminal-network-outage.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-remote-terminal-parked-reveal-interactivity.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-remote-terminal-parked-scrollback-restart.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/paired-remote-terminal-parked-scrollback-survives.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-remote-terminal-probe-gap-recovery.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-remote-terminal-reconnect-idle-frame.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-remote-terminal-retention-memory.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-remote-terminal-serve-restart-binding.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-remote-terminal-stall-recovery.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/paired-remote-terminal-truncated-tail-first-paint.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-remote-terminal-wide-viewport.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-serve-cold-restore-agent-status.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-server-rows-shadow.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/paired-skill-installation.spec.ts
|
||||
4 test-timeout-needs-reason:tests/e2e/paired-split-pane-browser-placement.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/paired-startup-exec-readiness.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-terminal-switch-desktop-reveal.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-two-client-emptied-workspace-reseed.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-usage-owner-placeholders.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/paired-worktree-activation-isolation.spec.ts
|
||||
3 test-timeout-needs-reason:tests/e2e/persisted-session-production-upgrade.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/pr11346-selected-runtime-add.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/profile-state-automatic-backup-recovery.spec.ts
|
||||
3 test-timeout-needs-reason:tests/e2e/relay-region-correction.unit.test.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/remote-agent-session-focus-authority.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/remote-session-bulk-open-freeze-repro.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/remote-terminal-input-delivery-model.unit.test.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/renderer-crash-recovery-terminal-input.spec.ts
|
||||
3 test-timeout-needs-reason:tests/e2e/restart-restore-terminal-input.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/runtime-file-browser-windows-drives.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/runtime-host-status-recovery.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/settled-worker-tab-survives-restart.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/sidebar-desktop-reads-main.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/sidebar-host-unread.spec.ts
|
||||
4 test-timeout-needs-reason:tests/e2e/sidebar-phone-feed-list.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/sidebar-sort-stamps-startup.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/sidebar-unread-older-paired-host.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/sidebar-workspace-rows.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/source-control-large-file-count.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/ssh-orcad-browser-service-status.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/ssh-orcad-desktop-browser-bridge.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/ssh-orcad-editor-drafts-migration.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/ssh-orcad-editor-ownership.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/ssh-orcad-editor-watch-recovery.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/ssh-orcad-explorer-watch-recovery.spec.ts
|
||||
4 test-timeout-needs-reason:tests/e2e/ssh-orcad-idle-exit.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/ssh-orcad-markdown-conversion.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/ssh-orcad-markdown-link-refresh.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/ssh-orcad-markdown-live-documents.spec.ts
|
||||
3 test-timeout-needs-reason:tests/e2e/ssh-orcad-pairing-repair.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/ssh-orcad-shared-home-machines.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/ssh-orcad-shared-login-migration.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/ssh-orcad-sleep-disconnected.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/ssh-orcad-terminal-browser-link.spec.ts
|
||||
3 test-timeout-needs-reason:tests/e2e/ssh-orcad-terminal-journeys.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/ssh-orcad-terminal-network-outage.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/ssh-orcad-terminal-reconnect-idle-frame.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/ssh-orcad-terminal-root-owner.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/ssh-orcad-unbindable-tunnel-port.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/ssh-orcad-update-anyway.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/ssh-orcad-windows-cli-matrix.spec.ts
|
||||
4 test-timeout-needs-reason:tests/e2e/ssh-orcad-workspace-tools.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/staging-skill-sharing.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/terminal-cli-split-closed-before-mount.spec.ts
|
||||
6 test-timeout-needs-reason:tests/e2e/terminal-column-desync-repro.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/terminal-inline-images-memory.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/terminal-inline-images-paired-runtime.spec.ts
|
||||
6 test-timeout-needs-reason:tests/e2e/terminal-inline-tui-reveal-convergence.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/terminal-parked-cli-split.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/terminal-stuck-occlusion-recovery.spec.ts
|
||||
3 test-timeout-needs-reason:tests/e2e/terminal-tab-close-running-confirm-mouse.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/terminal-tab-close-running-confirm.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/terminal-tab-level-binding-upgrade.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/terminal-warm-reattach-split-live-output.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/terminal-windows-codex-multiline-paste.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/unopened-workspace-agent-single-resume.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/windows-wsl-terminal-restore.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/workspace-layout-oracle-headless.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/workspace-session-corrupt-tab-salvage.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/wsl-host-fake-transport.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/agents/settings/cursor-quota-transport.unit.test.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/golden-journeys/golden-worktree-create-switch.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/remote/mobile-mirror/headless-mobile-markdown.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/terminal/remote-layout/headless-paired-remote-terminal-reveal-grid.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/terminal/remote-input/headless-paired-remote-terminal-stall-recovery.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/terminal/remote-layout/headless-paired-remote-terminal-viewer-size.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/browser/remote-hosted/headless-serve-browser-tab-restart.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/remote/mobile-mirror/headless-serve-mobile-markdown.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/remote/mobile-mirror/headless-serve-mobile-native-chat-identity.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/remote/mobile-mirror/mobile-subscribe-idle-hidden-pane-fit.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/browser/client-hosted/paired-client-hosted-browser-markup.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/browser/client-hosted/paired-client-hosted-profile-cookies.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/remote/paired-runtime/workspace-routing/paired-client-project-removal-stops-host-terminals.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/remote/mobile-mirror/paired-mobile-desktop-mirror-files-git-review.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/remote/mobile-mirror/paired-mobile-serve-restart-terminal-tabs.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/browser/remote-hosted/paired-remote-browser-ghost-subscriber-rejoin.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/terminal/remote-parking/paired-remote-terminal-initial-snapshot-scrollback.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/terminal/remote-parking/paired-remote-terminal-truncated-tail-first-paint.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/agents/remote-sessions/paired-serve-cold-restore-agent-status.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/remote/paired-runtime/workspace-routing/paired-server-rows-shadow.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/remote/paired-runtime/workspace-routing/paired-startup-exec-readiness.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/remote/paired-runtime/workspace-routing/paired-worktree-activation-isolation.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/remote/paired-runtime/workspace-routing/pr11346-selected-runtime-add.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/desktop/startup-recovery/renderer-crash-recovery-terminal-input.spec.ts
|
||||
3 test-timeout-needs-reason:tests/e2e/desktop/startup-recovery/restart-restore-terminal-input.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/editor/file-explorer/runtime-file-browser-windows-drives.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/workspaces/sidebar/sidebar-unread-older-paired-host.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/workspaces/sidebar/sidebar-workspace-rows.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/remote/managed-ssh/file-lifecycle/ssh-orcad-editor-watch-recovery.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/remote/managed-ssh/file-lifecycle/ssh-orcad-explorer-watch-recovery.spec.ts
|
||||
3 test-timeout-needs-reason:tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-idle-exit.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-pairing-repair.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-shared-home-machines.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-unbindable-tunnel-port.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/integrations/skills/staging-skill-sharing.spec.ts
|
||||
6 test-timeout-needs-reason:tests/e2e/terminal/rendering/terminal-column-desync-repro.spec.ts
|
||||
3 test-timeout-needs-reason:tests/e2e/terminal/retention/terminal-tab-close-running-confirm-mouse.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/terminal/retention/terminal-tab-close-running-confirm.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/terminal/lifecycle/terminal-tab-level-binding-upgrade.spec.ts
|
||||
1 test-timeout-needs-reason:tests/e2e/terminal/input/terminal-windows-codex-multiline-paste.spec.ts
|
||||
2 test-timeout-needs-reason:tests/e2e/remote/wsl-hosts/wsl-host-fake-transport.spec.ts
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
# Each tag marks code the relay retirement (2027-01-15) deletes or edits.
|
||||
# Prune: pnpm check:legacy-relay-fence-ratchet --prune
|
||||
config/scripts/workflow/source-routing/pr-code-change-scope.mjs
|
||||
config/scripts/workflow/source-routing/pr-e2e-source-routing.mjs
|
||||
src/main/ipc/ssh/ssh-connect-flow.ts
|
||||
src/main/ipc/ssh/ssh-host-server-connect.ts
|
||||
src/main/ipc/ssh/ssh-host-server-on-connect-wiring.ts
|
||||
@@ -28,6 +27,6 @@ src/shared/telemetry/schemas/telemetry-ssh-host-server-event-schemas.ts
|
||||
tests/e2e/cross-version-wire/relay/legacy-relay-bridge.unit.test.ts
|
||||
tests/e2e/cross-version-wire/relay/released-relay-daemon.ts
|
||||
tests/e2e/cross-version-wire/relay/released-relay-transport.ts
|
||||
tests/e2e/helpers/build-released-relay-bundle.mts
|
||||
tests/e2e/helpers/legacy-relay-docker-host.ts
|
||||
tests/e2e/helpers/orcad-upgrade-profile.ts
|
||||
tests/e2e/remote/relay/build-released-relay-bundle.mts
|
||||
tests/e2e/remote/relay/legacy-relay-docker-host.ts
|
||||
tests/e2e/remote/managed-ssh/host-lifecycle/orcad-upgrade-profile.ts
|
||||
|
||||
@@ -10,6 +10,6 @@ src/main/ipc/ssh/ssh-session-teardown.ts
|
||||
src/main/ipc/ssh/ssh.ts
|
||||
src/main/managed-server/lifecycle/orcad-runtime-conversion-wiring.ts
|
||||
tests/e2e/cross-version-wire/relay/legacy-relay-bridge.unit.test.ts
|
||||
tests/e2e/helpers/legacy-relay-docker-host.ts
|
||||
tests/e2e/remote/relay/legacy-relay-docker-host.ts
|
||||
src/main/managed-server/install/remote-install-model.ts
|
||||
src/main/ssh/system-transport/ssh-system-transport.integration.test.ts
|
||||
|
||||
@@ -13,12 +13,10 @@ config/scripts/workflow/source-routing/pr-code-change-scope.mjs src/shared/agent
|
||||
config/scripts/workflow/source-routing/pr-code-change-scope.mjs src/shared/agent-session-record
|
||||
config/scripts/workflow/source-routing/pr-code-change-scope.mjs src/shared/agent-session-resume-marker
|
||||
config/scripts/workflow/source-routing/pr-code-change-scope.mjs src/shared/agent-session-turn-record
|
||||
config/scripts/workflow/source-routing/pr-layout-oracle-route.mjs src/main/runtime/old-session-tabs-stream/
|
||||
config/scripts/workflow/source-routing/pr-layout-oracle-route.mjs src/renderer/src/runtime/remote-workspace-frozen/
|
||||
config/tsconfig.node.json src/renderer/src/components/native-chat/native-chat-composer-primary-action.ts
|
||||
config/tsconfig.node.json src/renderer/src/components/native-chat/native-chat-resolution-receipt.ts
|
||||
config/tsconfig.node.json src/renderer/src/components/native-chat/structured-agent-question-projection.ts
|
||||
tests/e2e/capture-opencode-tui-repro.mjs src/cli/cmd/tui/ui/spinner
|
||||
tests/e2e/terminal/performance/capture-opencode-tui-repro.mjs src/cli/cmd/tui/ui/spinner
|
||||
tests/e2e/cross-version-wire/chat-journals/released-chat-writers.ts src/main/native-chat/agent-session-wire/structured-agent-session-event-sink.ts
|
||||
# Released source trees retain this actual registry; the current registry is checked first.
|
||||
tests/e2e/cross-version-wire/release-checkouts/release-module-locations.ts src/main/runtime/rpc/methods/index.ts
|
||||
|
||||
@@ -45,8 +45,7 @@ Incremental Claude scans and persisted Claude cache checkpoints are also include
|
||||
`.github/workflows/performance-contracts.yml` runs daily and manually on Linux,
|
||||
macOS and Windows, and on PRs changing this tooling or any listed contract file.
|
||||
It uploads per-OS JSON test results, plus the source inventory once from Linux
|
||||
because that scan is OS-independent. Its schedule starts after merge. Run the existing
|
||||
`test:e2e:terminal-perf:scale:report` ([guide](../docs/readme/terminal-perf.md)) for rendered typing/frame budgets. Unit tests do not
|
||||
because that scan is OS-independent. Its schedule starts after merge. The rendered typing/frame benchmark was retired ([historical guide](../docs/readme/terminal-perf.md)). Unit tests do not
|
||||
measure SSH RTT, WSL scheduling or a packaged Electron renderer.
|
||||
|
||||
To extend coverage, select a production-path regression with an operation-count,
|
||||
|
||||
+695
-2234
File diff suppressed because one or more lines are too long
@@ -1,23 +1,32 @@
|
||||
import { pathToFileURL } from 'node:url'
|
||||
|
||||
export const NODE_NETWORK_E2E_SPEC =
|
||||
'tests/e2e/ssh-browser-network-execution-route.docker.unit.test.ts'
|
||||
export const NATIVE_IME_E2E_SPEC = 'tests/e2e/terminal-ibus-hangul-native.spec.ts'
|
||||
'tests/e2e/remote/ssh-hosts/ssh-browser-network-execution-route.docker.unit.test.ts'
|
||||
export const NATIVE_IME_E2E_SPEC = 'tests/e2e/terminal/ime/terminal-ibus-hangul-native.spec.ts'
|
||||
// Needs the packaged orcad slot, which only its own job builds.
|
||||
export const ORCAD_SERVE_MODE_SWITCH_E2E_SPEC = 'tests/e2e/orcad-serve-mode-switch.spec.ts'
|
||||
export const ORCAD_SERVE_MODE_SWITCH_E2E_SPEC =
|
||||
'tests/e2e/remote/managed-ssh/host-lifecycle/orcad-serve-mode-switch.spec.ts'
|
||||
// Windows-only; its own job runs it on a Windows runner.
|
||||
export const WINDOWS_MISSING_APPDATA_E2E_SPEC = 'tests/e2e/windows-missing-appdata-startup.spec.ts'
|
||||
export const WINDOWS_MISSING_APPDATA_E2E_SPEC =
|
||||
'tests/e2e/desktop/startup-recovery/windows-missing-appdata-startup.spec.ts'
|
||||
// Windows-only; the same Windows job runs it.
|
||||
export const WINDOWS_COPY_FILE_E2E_SPEC = 'tests/e2e/file-explorer-copy-file-windows.spec.ts'
|
||||
// Needs out/orcad, which only the mode-switch job builds; it runs there beside that spec.
|
||||
export const LAYOUT_ORACLE_HEADLESS_E2E_SPEC = 'tests/e2e/workspace-layout-oracle-headless.spec.ts'
|
||||
export const WINDOWS_COPY_FILE_E2E_SPEC =
|
||||
'tests/e2e/editor/file-explorer/file-explorer-copy-file-windows.spec.ts'
|
||||
// Managed-SSH specs need the orcad template built by their Docker lane.
|
||||
export const MANAGED_SSH_E2E_SPEC_PREFIX = 'tests/e2e/ssh-orcad-'
|
||||
export const MANAGED_SSH_E2E_SPECS = [
|
||||
'tests/e2e/remote/managed-ssh/file-lifecycle/ssh-orcad-editor-watch-recovery.spec.ts',
|
||||
'tests/e2e/remote/managed-ssh/file-lifecycle/ssh-orcad-explorer-watch-recovery.spec.ts',
|
||||
'tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-idle-exit.spec.ts',
|
||||
'tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-pairing-repair.spec.ts',
|
||||
'tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-shared-home-machines.spec.ts',
|
||||
'tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-unbindable-tunnel-port.spec.ts',
|
||||
'tests/e2e/remote/managed-ssh/host-lifecycle/ssh-orcad-update-anyway.spec.ts'
|
||||
]
|
||||
const managedSshSpecs = new Set(MANAGED_SSH_E2E_SPECS)
|
||||
export const DEDICATED_E2E_SPECS = [
|
||||
NODE_NETWORK_E2E_SPEC,
|
||||
NATIVE_IME_E2E_SPEC,
|
||||
ORCAD_SERVE_MODE_SWITCH_E2E_SPEC,
|
||||
LAYOUT_ORACLE_HEADLESS_E2E_SPEC,
|
||||
WINDOWS_MISSING_APPDATA_E2E_SPEC,
|
||||
WINDOWS_COPY_FILE_E2E_SPEC
|
||||
]
|
||||
@@ -31,7 +40,7 @@ const OWN_BUILD_E2E_SPECS = new Set([
|
||||
])
|
||||
|
||||
export function isDedicatedE2eSpec(spec) {
|
||||
return dedicatedSpecs.has(spec) || spec.startsWith(MANAGED_SSH_E2E_SPEC_PREFIX)
|
||||
return dedicatedSpecs.has(spec) || managedSshSpecs.has(spec)
|
||||
}
|
||||
|
||||
export function selectGeneralE2eSpecs(specs) {
|
||||
@@ -58,28 +67,18 @@ export function generalE2eShards(input) {
|
||||
|
||||
export function selectManagedSshE2eSpecs(input) {
|
||||
if (input === '') {
|
||||
return [MANAGED_SSH_E2E_SPEC_PREFIX]
|
||||
return MANAGED_SSH_E2E_SPECS
|
||||
}
|
||||
const specs = [...new Set(parseSpecs(input))].filter((spec) =>
|
||||
spec.startsWith(MANAGED_SSH_E2E_SPEC_PREFIX)
|
||||
)
|
||||
if (
|
||||
specs.length === 0 ||
|
||||
specs.some(
|
||||
(spec) =>
|
||||
spec !== MANAGED_SSH_E2E_SPEC_PREFIX &&
|
||||
!/^tests\/e2e\/ssh-orcad-[\w-]+\.spec\.ts$/.test(spec)
|
||||
)
|
||||
) {
|
||||
const specs = [...new Set(parseSpecs(input))].filter((spec) => managedSshSpecs.has(spec))
|
||||
if (specs.length === 0) {
|
||||
throw new Error('Expected at least one managed SSH spec')
|
||||
}
|
||||
return specs.includes(MANAGED_SSH_E2E_SPEC_PREFIX) ? [MANAGED_SSH_E2E_SPEC_PREFIX] : specs
|
||||
return specs
|
||||
}
|
||||
|
||||
export function managedSshShards(input) {
|
||||
try {
|
||||
const specs = selectManagedSshE2eSpecs(input)
|
||||
if (!specs.includes(MANAGED_SSH_E2E_SPEC_PREFIX) && specs.length <= 2) {
|
||||
if (selectManagedSshE2eSpecs(input).length <= 2) {
|
||||
return ['1/1']
|
||||
}
|
||||
} catch {
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
import { spawnSync } from 'node:child_process'
|
||||
|
||||
const rawExtraArgs = process.argv.slice(2)
|
||||
const extraArgs = rawExtraArgs[0] === '--' ? rawExtraArgs.slice(1) : rawExtraArgs
|
||||
const pnpm = process.platform === 'win32' ? 'pnpm.cmd' : 'pnpm'
|
||||
const env = {
|
||||
...process.env,
|
||||
ORCA_E2E_WEB_CLIENT: '1'
|
||||
}
|
||||
|
||||
// Why: Node's CVE-2024-27980 hardening rejects .cmd spawns without shell on Windows.
|
||||
const spawnOptions = {
|
||||
stdio: 'inherit',
|
||||
env,
|
||||
shell: process.platform === 'win32'
|
||||
}
|
||||
|
||||
const runtime = spawnSync(pnpm, ['run', 'ensure:electron-runtime'], spawnOptions)
|
||||
|
||||
if (runtime.status !== 0) {
|
||||
process.exit(runtime.status ?? 1)
|
||||
}
|
||||
|
||||
const result = spawnSync(
|
||||
pnpm,
|
||||
[
|
||||
'exec',
|
||||
'playwright',
|
||||
'test',
|
||||
'tests/e2e/multi-client-navigation-isolation.spec.ts',
|
||||
'--config',
|
||||
'tests/playwright.config.ts',
|
||||
'--project',
|
||||
'electron-headless',
|
||||
'--workers=1',
|
||||
...extraArgs
|
||||
],
|
||||
spawnOptions
|
||||
)
|
||||
|
||||
process.exit(result.status ?? 1)
|
||||
@@ -4367,46 +4367,35 @@
|
||||
"tests/e2e/crew-parent-rpc.unit.test.ts": 4853,
|
||||
"tests/e2e/crew-recipient-parent-command.unit.test.ts": 5692,
|
||||
"tests/e2e/crew-recipient-public-command.unit.test.ts": 6715,
|
||||
"tests/e2e/crew-recipient-real-command.unit.test.ts": 8527,
|
||||
"tests/e2e/cursor-quota-transport.unit.test.ts": 1863,
|
||||
"tests/e2e/daemon-running-work-probe.unit.test.ts": 299,
|
||||
"tests/e2e/github-project-provider-columns.unit.test.ts": 2397,
|
||||
"tests/e2e/agents/settings/cursor-quota-transport.unit.test.ts": 1863,
|
||||
"tests/e2e/integrations/github/github-project-provider-columns.unit.test.ts": 2397,
|
||||
"tests/e2e/github-work-item-search-burst.unit.test.ts": 1552,
|
||||
"tests/e2e/global-setup-cli-artifact.unit.test.ts": 58,
|
||||
"tests/e2e/global-teardown.unit.test.ts": 113,
|
||||
"tests/e2e/headless-editor-mirror-identities.unit.test.ts": 1889,
|
||||
"tests/e2e/helpers/client-hosted-browser-fixture.unit.test.ts": 792,
|
||||
"tests/e2e/helpers/electron-crashpad-cleanup.unit.test.ts": 50,
|
||||
"tests/e2e/helpers/electron-home-isolation.unit.test.ts": 140,
|
||||
"tests/e2e/helpers/electron-process-shutdown.unit.test.ts": 6545,
|
||||
"tests/e2e/desktop/electron-fixtures/electron-home-isolation.unit.test.ts": 140,
|
||||
"tests/e2e/desktop/electron-fixtures/electron-process-shutdown.unit.test.ts": 6545,
|
||||
"tests/e2e/helpers/golden-source-control.unit.test.ts": 804,
|
||||
"tests/e2e/helpers/headless-paired-runtime-serve-readiness.unit.test.ts": 53,
|
||||
"tests/e2e/helpers/paired-client-window-reveal.unit.test.ts": 57,
|
||||
"tests/e2e/helpers/persisted-profile-state.unit.test.ts": 402,
|
||||
"tests/e2e/remote/paired-runtime/client-hosts/headless-paired-runtime-serve-readiness.unit.test.ts": 53,
|
||||
"tests/e2e/desktop/electron-fixtures/persisted-profile-state.unit.test.ts": 402,
|
||||
"tests/e2e/helpers/wsl-terminate-retry.unit.test.ts": 60,
|
||||
"tests/e2e/host-agent-launch-preferences-work.unit.test.ts": 3882,
|
||||
"tests/e2e/host-cold-park-remote-subscriber.unit.test.ts": 5314,
|
||||
"tests/e2e/launch-agent-background-session-remote.unit.test.ts": 1016,
|
||||
"tests/e2e/linear-cli-recovery.unit.test.ts": 7592,
|
||||
"tests/e2e/linear-store.unit.test.ts": 519,
|
||||
"tests/e2e/linear-write-lifetime.unit.test.ts": 5214,
|
||||
"tests/e2e/multi-workspace-typing-bench.unit.test.ts": 550,
|
||||
"tests/e2e/native-chat-live-history.unit.test.ts": 3258,
|
||||
"tests/e2e/native-chat-ssh-transcript.unit.test.ts": 1166,
|
||||
"tests/e2e/orchestration-worker-workspace-resolution.unit.test.ts": 5936,
|
||||
"tests/e2e/paired-cli-agent-launch.unit.test.ts": 8918,
|
||||
"tests/e2e/agents/native-chat/native-chat-ssh-transcript.unit.test.ts": 1166,
|
||||
"tests/e2e/orchestration/orchestration-worker-workspace-resolution.unit.test.ts": 5936,
|
||||
"tests/e2e/persistence-automation-target-dispatch.unit.test.ts": 8084,
|
||||
"tests/e2e/remote-agent-completion-authority.unit.test.ts": 1742,
|
||||
"tests/e2e/remote-terminal-input-delivery-model.unit.test.ts": 23690,
|
||||
"tests/e2e/agents/remote-sessions/remote-agent-completion-authority.unit.test.ts": 1742,
|
||||
"tests/e2e/remote-terminal-tab-retirement.unit.test.ts": 5828,
|
||||
"tests/e2e/restored-terminal-input-readiness.unit.test.ts": 71,
|
||||
"tests/e2e/runtime-agent-background-create-owner.unit.test.ts": 4459,
|
||||
"tests/e2e/runtime-environment-selection-affinity.unit.test.ts": 1177,
|
||||
"tests/e2e/source-control-action-phone-launch.unit.test.ts": 746,
|
||||
"tests/e2e/ssh-browser-network-execution-route.docker.unit.test.ts": 413,
|
||||
"tests/e2e/structured-agent-session-launch-admission.unit.test.ts": 4762,
|
||||
"tests/e2e/remote/ssh-hosts/ssh-browser-network-execution-route.docker.unit.test.ts": 413,
|
||||
"tests/e2e/structured-attention-headless-delivery.unit.test.ts": 328,
|
||||
"tests/e2e/terminal-perf-presentation.unit.test.ts": 60,
|
||||
"tests/e2e/terminal/performance/terminal-perf-presentation.unit.test.ts": 60,
|
||||
"tests/tools/omp-close-lifecycle.test.mjs": 403,
|
||||
"tests/tools/omp-config-root-relay-shell.test.mjs": 297,
|
||||
"tests/tools/relay-bench/phone-e2ee-desktop-parity.test.mjs": 111,
|
||||
@@ -4481,236 +4470,99 @@
|
||||
],
|
||||
"overheadMs": 0,
|
||||
"timings": {
|
||||
"tests/e2e/activity-agent-pane-isolation.spec.ts": 102400,
|
||||
"tests/e2e/add-project-default-checkout.spec.ts": 41600,
|
||||
"tests/e2e/agent-dashboard-status-burst.spec.ts": 16900,
|
||||
"tests/e2e/agent-descendant-process-kill.spec.ts": 14800,
|
||||
"tests/e2e/agent-session-live-force-exit-resume.spec.ts": 31800,
|
||||
"tests/e2e/agent-session-log-tail-stability.spec.ts": 78000,
|
||||
"tests/e2e/agent-session-quit-resume.spec.ts": 27800,
|
||||
"tests/e2e/ai-vault-session-delete.spec.ts": 29800,
|
||||
"tests/e2e/app-menu-paste-ownership.spec.ts": 31900,
|
||||
"tests/e2e/artificial-opencode-terminal-load.spec.ts": 230300,
|
||||
"tests/e2e/automation-hidden-terminal-first-mount.spec.ts": 15100,
|
||||
"tests/e2e/browser-embedded-owner-routing.spec.ts": 20900,
|
||||
"tests/e2e/browser-fedcm-fallback.spec.ts": 15100,
|
||||
"tests/e2e/browser-guest-attachment-validation.spec.ts": 16900,
|
||||
"tests/e2e/browser-guest-crash-recovery.spec.ts": 123200,
|
||||
"tests/e2e/browser-local-https-certificate-trust.spec.ts": 19500,
|
||||
"tests/e2e/browser-tab.spec.ts": 175700,
|
||||
"tests/e2e/chinese-ime-chat-input-repro.spec.ts": 49200,
|
||||
"tests/e2e/combined-diff-invalidation-freeze-repro.spec.ts": 101900,
|
||||
"tests/e2e/completed-worker-retirement-resume.spec.ts": 40400,
|
||||
"tests/e2e/daemon-generation-legacy-close-safety.spec.ts": 5300,
|
||||
"tests/e2e/daemon-lifecycle-retirement.spec.ts": 222,
|
||||
"tests/e2e/daemon-live-session-preservation.spec.ts": 20700,
|
||||
"tests/e2e/daemon-slow-health-check-preservation.spec.ts": 23700,
|
||||
"tests/e2e/daemon-slow-init-pty-gate.spec.ts": 20700,
|
||||
"tests/e2e/default-branch-visibility.spec.ts": 14800,
|
||||
"tests/e2e/agents/session-lifecycle/agent-descendant-process-kill.spec.ts": 14800,
|
||||
"tests/e2e/activity/ai-vault-session-delete.spec.ts": 29800,
|
||||
"tests/e2e/desktop/clipboard/app-menu-paste-ownership.spec.ts": 31900,
|
||||
"tests/e2e/terminal/lifecycle/automation-hidden-terminal-first-mount.spec.ts": 15100,
|
||||
"tests/e2e/browser/guest-lifecycle/browser-embedded-owner-routing.spec.ts": 20900,
|
||||
"tests/e2e/browser/security/browser-fedcm-fallback.spec.ts": 15100,
|
||||
"tests/e2e/browser/guest-lifecycle/browser-guest-crash-recovery.spec.ts": 123200,
|
||||
"tests/e2e/browser/input-navigation/browser-tab.spec.ts": 175700,
|
||||
"tests/e2e/desktop/daemon-lifecycle/daemon-lifecycle-retirement.spec.ts": 222,
|
||||
"tests/e2e/workspaces/lifecycle/default-branch-visibility.spec.ts": 14800,
|
||||
"tests/e2e/dictation-indicator.spec.ts": 14900,
|
||||
"tests/e2e/diff-note-delete.spec.ts": 18700,
|
||||
"tests/e2e/diff-note-edit.spec.ts": 20900,
|
||||
"tests/e2e/droid-notification.spec.ts": 65000,
|
||||
"tests/e2e/editable-context-paste-ownership.spec.ts": 15700,
|
||||
"tests/e2e/electron-home-isolation.spec.ts": 12800,
|
||||
"tests/e2e/ephemeral-vm-cleanup-retry.spec.ts": 26800,
|
||||
"tests/e2e/desktop/clipboard/editable-context-paste-ownership.spec.ts": 15700,
|
||||
"tests/e2e/desktop/startup-recovery/electron-home-isolation.spec.ts": 12800,
|
||||
"tests/e2e/remote/ssh-hosts/ephemeral-vm-cleanup-retry.spec.ts": 26800,
|
||||
"tests/e2e/feature-wall.spec.ts": 101800,
|
||||
"tests/e2e/file-explorer-watch-refresh.spec.ts": 17700,
|
||||
"tests/e2e/finished-agent-ghost-resume.spec.ts": 19100,
|
||||
"tests/e2e/floating-tab-rename.spec.ts": 56200,
|
||||
"tests/e2e/folder-setup-shallow-priority.spec.ts": 50100,
|
||||
"tests/e2e/folder-setup.spec.ts": 56200,
|
||||
"tests/e2e/layout/window-tabs/floating-tab-rename.spec.ts": 56200,
|
||||
"tests/e2e/git-no-upstream-polling-churn.spec.ts": 22600,
|
||||
"tests/e2e/github-cli-stall-repro.spec.ts": 18200,
|
||||
"tests/e2e/github-url-smart-input-transition.spec.ts": 58200,
|
||||
"tests/e2e/golden-agent-tui-launch.spec.ts": 27300,
|
||||
"tests/e2e/golden-file-open-edit-save.spec.ts": 25000,
|
||||
"tests/e2e/golden-fresh-profile-terminal.spec.ts": 24400,
|
||||
"tests/e2e/golden-journeys/golden-agent-tui-launch.spec.ts": 27300,
|
||||
"tests/e2e/golden-journeys/golden-file-open-edit-save.spec.ts": 25000,
|
||||
"tests/e2e/golden-journeys/golden-fresh-profile-terminal.spec.ts": 24400,
|
||||
"tests/e2e/golden-posix-fresh-startup.spec.ts": 4900,
|
||||
"tests/e2e/golden-posix-profile-index-fsync.spec.ts": 4900,
|
||||
"tests/e2e/golden-quit-relaunch-session.spec.ts": 29700,
|
||||
"tests/e2e/golden-shell-after-agent-exit.spec.ts": 28300,
|
||||
"tests/e2e/golden-shell-command.spec.ts": 15400,
|
||||
"tests/e2e/golden-source-control-commit.spec.ts": 19100,
|
||||
"tests/e2e/golden-source-control-open-diff.spec.ts": 20900,
|
||||
"tests/e2e/golden-tab-bar-agent-launch.spec.ts": 54100,
|
||||
"tests/e2e/golden-terminal-file-link.spec.ts": 43300,
|
||||
"tests/e2e/golden-worktree-create-switch.spec.ts": 29100,
|
||||
"tests/e2e/grok-hook-session-cleanup.spec.ts": 7700,
|
||||
"tests/e2e/headless-paired-remote-terminal-retention-memory.spec.ts": 58000,
|
||||
"tests/e2e/headless-serve-cli-terminal-retention-parity.spec.ts": 25300,
|
||||
"tests/e2e/headless-serve-desktop-activation.spec.ts": 16700,
|
||||
"tests/e2e/golden-journeys/golden-posix-profile-index-fsync.spec.ts": 4900,
|
||||
"tests/e2e/golden-journeys/golden-shell-after-agent-exit.spec.ts": 28300,
|
||||
"tests/e2e/golden-journeys/golden-shell-command.spec.ts": 15400,
|
||||
"tests/e2e/golden-journeys/golden-source-control-commit.spec.ts": 19100,
|
||||
"tests/e2e/golden-journeys/golden-source-control-open-diff.spec.ts": 20900,
|
||||
"tests/e2e/golden-journeys/golden-tab-bar-agent-launch.spec.ts": 54100,
|
||||
"tests/e2e/golden-journeys/golden-worktree-create-switch.spec.ts": 29100,
|
||||
"tests/e2e/agents/session-lifecycle/grok-hook-session-cleanup.spec.ts": 7700,
|
||||
"tests/e2e/remote/paired-runtime/workspace-routing/headless-serve-desktop-activation.spec.ts": 16700,
|
||||
"tests/e2e/headless-serve-focused-terminal-create.spec.ts": 13200,
|
||||
"tests/e2e/host-parked-pane-remote-viewer.spec.ts": 144000,
|
||||
"tests/e2e/korean-ime-terminal-shift-enter-commit.spec.ts": 104400,
|
||||
"tests/e2e/landing-preflight-runtime-routing.spec.ts": 11000,
|
||||
"tests/e2e/large-diff-freeze-repro.spec.ts": 35800,
|
||||
"tests/e2e/linear-filter-chip-labels.spec.ts": 29800,
|
||||
"tests/e2e/linear-issue-view-persistence.spec.ts": 198000,
|
||||
"tests/e2e/linear-url-workspace-entry.spec.ts": 73500,
|
||||
"tests/e2e/integrations/linear/linear-url-workspace-entry.spec.ts": 73500,
|
||||
"tests/e2e/live-background-terminal-mount-authority.spec.ts": 33300,
|
||||
"tests/e2e/local-cli-terminal-retention.spec.ts": 18300,
|
||||
"tests/e2e/local-worktree-visibility-runtime-active.spec.ts": 14700,
|
||||
"tests/e2e/manual-worktree-order-persistence.spec.ts": 36100,
|
||||
"tests/e2e/markdown-nested-toggle.spec.ts": 50700,
|
||||
"tests/e2e/mobile-banner.spec.ts": 89300,
|
||||
"tests/e2e/multi-client-navigation-isolation.spec.ts": 99900,
|
||||
"tests/e2e/native-chat-ask-user-question-card.spec.ts": 23600,
|
||||
"tests/e2e/native-chat-first-flush-race.spec.ts": 22700,
|
||||
"tests/e2e/native-chat-history-prepend-anchor.spec.ts": 29400,
|
||||
"tests/e2e/new-workspace-create-more.spec.ts": 36300,
|
||||
"tests/e2e/new-workspace-cross-project-dialog.spec.ts": 17100,
|
||||
"tests/e2e/new-workspace-linked-item-project-switch.spec.ts": 45200,
|
||||
"tests/e2e/orchestration-idle-mail-delivery.spec.ts": 220800,
|
||||
"tests/e2e/orchestration-idle-mail-restore.spec.ts": 27000,
|
||||
"tests/e2e/orchestration-legacy-worker-missing-terminal-recovery.spec.ts": 22200,
|
||||
"tests/e2e/workspaces/lifecycle/local-worktree-visibility-runtime-active.spec.ts": 14700,
|
||||
"tests/e2e/editor/markdown/markdown-nested-toggle.spec.ts": 50700,
|
||||
"tests/e2e/workspaces/project-admission/new-workspace-cross-project-dialog.spec.ts": 17100,
|
||||
"tests/e2e/workspaces/project-admission/new-workspace-linked-item-project-switch.spec.ts": 45200,
|
||||
"tests/e2e/orchestration-legacy-worker-restart-recovery.spec.ts": 50700,
|
||||
"tests/e2e/orchestration-low-level-dispatch-release.spec.ts": 15000,
|
||||
"tests/e2e/orchestration-worker-settlement-release-cli.spec.ts": 18100,
|
||||
"tests/e2e/orchestration-worker-terminal-visibility.spec.ts": 53200,
|
||||
"tests/e2e/orchestration-worker-transcript-providers.spec.ts": 54700,
|
||||
"tests/e2e/paired-browser-creation-reconciliation-failure.spec.ts": 21600,
|
||||
"tests/e2e/paired-cli-terminal-graph-sync-tab-retention.spec.ts": 42600,
|
||||
"tests/e2e/paired-client-hosted-browser-cookie-survival.spec.ts": 20100,
|
||||
"tests/e2e/paired-client-hosted-browser-double-restart.spec.ts": 45800,
|
||||
"tests/e2e/paired-client-hosted-browser-ghost-close.spec.ts": 48600,
|
||||
"tests/e2e/paired-client-hosted-browser-host-strip.spec.ts": 23300,
|
||||
"tests/e2e/paired-client-hosted-browser-quit-survival.spec.ts": 145700,
|
||||
"tests/e2e/paired-client-hosted-browser-restart-survival.spec.ts": 20700,
|
||||
"tests/e2e/paired-client-hosted-browser-title-hold.spec.ts": 24300,
|
||||
"tests/e2e/paired-client-hosted-browser.spec.ts": 53000,
|
||||
"tests/e2e/paired-cmd-j-host-qualified-tabs.spec.ts": 53300,
|
||||
"tests/e2e/paired-external-worktree-discovery.spec.ts": 19300,
|
||||
"tests/e2e/paired-instant-browser-tab.spec.ts": 191700,
|
||||
"tests/e2e/paired-preview-address-bar-convergence.spec.ts": 162000,
|
||||
"tests/e2e/paired-quick-open-large-tree.spec.ts": 26300,
|
||||
"tests/e2e/paired-remote-browser-ghost-subscriber-rejoin.spec.ts": 22600,
|
||||
"tests/e2e/browser/remote-hosted/paired-remote-browser-ghost-subscriber-rejoin.spec.ts": 22600,
|
||||
"tests/e2e/paired-remote-browser-link-open-routing.spec.ts": 78000,
|
||||
"tests/e2e/paired-remote-browser-stream-reconnect.spec.ts": 57200,
|
||||
"tests/e2e/paired-remote-html-preview-local-render.spec.ts": 262700,
|
||||
"tests/e2e/paired-remote-pane-layout-retry.spec.ts": 28200,
|
||||
"tests/e2e/paired-remote-split-pane-host-retired-ghost.spec.ts": 20000,
|
||||
"tests/e2e/paired-remote-terminal-browser-link.spec.ts": 78000,
|
||||
"tests/e2e/paired-remote-terminal-host-restart-background-sync.spec.ts": 35600,
|
||||
"tests/e2e/paired-remote-terminal-materialization-reconnect.spec.ts": 27100,
|
||||
"tests/e2e/paired-remote-terminal-parked-reveal-interactivity.spec.ts": 39700,
|
||||
"tests/e2e/paired-remote-terminal-serve-restart-binding.spec.ts": 28300,
|
||||
"tests/e2e/paired-skill-installation.spec.ts": 26500,
|
||||
"tests/e2e/paired-split-pane-browser-placement.spec.ts": 85900,
|
||||
"tests/e2e/paired-startup-exec-readiness.spec.ts": 6000,
|
||||
"tests/e2e/persisted-session-production-upgrade.spec.ts": 26700,
|
||||
"tests/e2e/remote/paired-runtime/workspace-routing/paired-startup-exec-readiness.spec.ts": 6000,
|
||||
"tests/e2e/pet-status-segment-layout.spec.ts": 25100,
|
||||
"tests/e2e/pi-ui-prompt-status.spec.ts": 21100,
|
||||
"tests/e2e/plugin-demo.spec.ts": 26600,
|
||||
"tests/e2e/plugin-panel-containment.spec.ts": 50300,
|
||||
"tests/e2e/plugin-startup-budget.spec.ts": 20400,
|
||||
"tests/e2e/pr11346-selected-runtime-add.spec.ts": 33800,
|
||||
"tests/e2e/project-group-creation-visibility.spec.ts": 132000,
|
||||
"tests/e2e/project-group-manual-sort.spec.ts": 100300,
|
||||
"tests/e2e/pty-snapshot-capability-main-stall.spec.ts": 16100.000000000002,
|
||||
"tests/e2e/remote/paired-runtime/workspace-routing/pr11346-selected-runtime-add.spec.ts": 33800,
|
||||
"tests/e2e/workspaces/project-admission/project-group-manual-sort.spec.ts": 100300,
|
||||
"tests/e2e/quick-open-file-paths.spec.ts": 22800,
|
||||
"tests/e2e/remote-session-bulk-open-freeze-repro.spec.ts": 51500,
|
||||
"tests/e2e/renderer-blocked-navigation-graph-authority.spec.ts": 43600,
|
||||
"tests/e2e/renderer-crash-recovery-terminal-input.spec.ts": 34500,
|
||||
"tests/e2e/desktop/startup-recovery/renderer-crash-recovery-terminal-input.spec.ts": 34500,
|
||||
"tests/e2e/repo-icon-emoji-picker.spec.ts": 22900,
|
||||
"tests/e2e/resource-manager-unbound-session-safety.spec.ts": 18700,
|
||||
"tests/e2e/resource-usage-warm-reattach.spec.ts": 18700,
|
||||
"tests/e2e/restart-restore-terminal-input.spec.ts": 77800,
|
||||
"tests/e2e/rich-markdown-inline-image.spec.ts": 55200,
|
||||
"tests/e2e/desktop/startup-recovery/restart-restore-terminal-input.spec.ts": 77800,
|
||||
"tests/e2e/editor/markdown/rich-markdown-inline-image.spec.ts": 55200,
|
||||
"tests/e2e/right-sidebar-windows-titlebar.spec.ts": 14600,
|
||||
"tests/e2e/runtime-host-status-recovery.spec.ts": 156000,
|
||||
"tests/e2e/settings-agent-awake.spec.ts": 33400,
|
||||
"tests/e2e/settings-display-name-ime.spec.ts": 18100,
|
||||
"tests/e2e/agents/settings/settings-agent-awake.spec.ts": 33400,
|
||||
"tests/e2e/settings-search-responsiveness.spec.ts": 15600,
|
||||
"tests/e2e/settings-skill-detection.spec.ts": 21800,
|
||||
"tests/e2e/settled-worker-tab-survives-restart.spec.ts": 62400,
|
||||
"tests/e2e/setup-guide-sidebar.spec.ts": 6800,
|
||||
"tests/e2e/setup-script-import.spec.ts": 57600,
|
||||
"tests/e2e/setup-script-prompt-unreadable-orca-yaml.spec.ts": 19100,
|
||||
"tests/e2e/sidebar-agent-row-identity.spec.ts": 16700,
|
||||
"tests/e2e/slept-workspace-remount-wake.spec.ts": 31000,
|
||||
"tests/e2e/source-control-commit-draft-persistence.spec.ts": 16400,
|
||||
"tests/e2e/source-control-commit-message-ai.spec.ts": 50900,
|
||||
"tests/e2e/source-control/source-control-commit-message-ai.spec.ts": 50900,
|
||||
"tests/e2e/source-control-create-pr-intent-notice-layout.spec.ts": 16900,
|
||||
"tests/e2e/source-control-create-pr-intent-switch.spec.ts": 41000,
|
||||
"tests/e2e/source-control-create-pr.spec.ts": 37500,
|
||||
"tests/e2e/source-control-discard-confirmation.spec.ts": 25900,
|
||||
"tests/e2e/source-control-large-file-count.spec.ts": 54700,
|
||||
"tests/e2e/source-control-pr-generation-switch.spec.ts": 146600,
|
||||
"tests/e2e/source-control-pr-linked-issue-ai.spec.ts": 34200,
|
||||
"tests/e2e/ssh-config-host-import.spec.ts": 204600,
|
||||
"tests/e2e/ssh-config-host-picker.spec.ts": 206600,
|
||||
"tests/e2e/ssh-host-form-modal.spec.ts": 94700,
|
||||
"tests/e2e/source-control/source-control-create-pr.spec.ts": 37500,
|
||||
"tests/e2e/source-control/source-control-discard-confirmation.spec.ts": 25900,
|
||||
"tests/e2e/source-control/source-control-pr-generation-switch.spec.ts": 146600,
|
||||
"tests/e2e/source-control/source-control-pr-linked-issue-ai.spec.ts": 34200,
|
||||
"tests/e2e/status-bar-caffeinate.spec.ts": 17900,
|
||||
"tests/e2e/status-bar-session-count-management-kill.spec.ts": 26000,
|
||||
"tests/e2e/tab-close-navigation.spec.ts": 32100,
|
||||
"tests/e2e/tab-create-entry-file-paths.spec.ts": 23600,
|
||||
"tests/e2e/tab-rename-paste-ownership.spec.ts": 15600,
|
||||
"tests/e2e/tabs.spec.ts": 164500,
|
||||
"tests/e2e/tasks-page.spec.ts": 90400,
|
||||
"tests/e2e/terminal-cjk-ime-committed-text.spec.ts": 122400,
|
||||
"tests/e2e/terminal-codex-hidden-startup-background.spec.ts": 17500,
|
||||
"tests/e2e/terminal-codex-home.spec.ts": 14600,
|
||||
"tests/e2e/terminal-column-desync-repro.spec.ts": 149400,
|
||||
"tests/e2e/desktop/clipboard/tab-rename-paste-ownership.spec.ts": 15600,
|
||||
"tests/e2e/layout/window-tabs/tabs.spec.ts": 164500,
|
||||
"tests/e2e/terminal/lifecycle/terminal-codex-home.spec.ts": 14600,
|
||||
"tests/e2e/terminal/rendering/terminal-column-desync-repro.spec.ts": 149400,
|
||||
"tests/e2e/terminal-context-menu-session-id.spec.ts": 20800,
|
||||
"tests/e2e/terminal-duplicate-pty-renderer-reveal.spec.ts": 23000,
|
||||
"tests/e2e/terminal-hangul-wrap-boundary-bytes.spec.ts": 107100,
|
||||
"tests/e2e/terminal-hidden-child-tui-kill-mode-reset.spec.ts": 76200,
|
||||
"tests/e2e/terminal-hidden-tui-visual-restore.spec.ts": 70600,
|
||||
"tests/e2e/terminal-hidden-view-parking.spec.ts": 199400,
|
||||
"tests/e2e/terminal-ime-exact-byte.spec.ts": 60400,
|
||||
"tests/e2e/terminal-inline-tui-reveal-convergence.spec.ts": 309900,
|
||||
"tests/e2e/terminal-korean-composing-chord-order.spec.ts": 16400,
|
||||
"tests/e2e/terminal-korean-endofrow-preedit-cell-span.spec.ts": 29800,
|
||||
"tests/e2e/terminal-korean-midline-preedit-occlusion.spec.ts": 45100,
|
||||
"tests/e2e/terminal-korean-preedit-visibility.spec.ts": 62200,
|
||||
"tests/e2e/terminal-large-paste-responsiveness.spec.ts": 15400,
|
||||
"tests/e2e/terminal-link-click-ownership.spec.ts": 69100,
|
||||
"tests/e2e/terminal-link-hover-after-worktree-return.spec.ts": 46600,
|
||||
"tests/e2e/terminal-macos-system-key-remap.spec.ts": 97000,
|
||||
"tests/e2e/terminal-opencode-emoji-table-rendering.spec.ts": 21600,
|
||||
"tests/e2e/terminal-osc-color-queries.spec.ts": 14900,
|
||||
"tests/e2e/terminal-osc8-cold-park-restore.spec.ts": 19000,
|
||||
"tests/e2e/terminal-output-scheduler.spec.ts": 54700,
|
||||
"tests/e2e/terminal-pane-close-layout-consistency.spec.ts": 128900,
|
||||
"tests/e2e/terminal-pane-content-retention.spec.ts": 45100,
|
||||
"tests/e2e/terminal-pane-split-identity.spec.ts": 81000,
|
||||
"tests/e2e/terminal-pane-title-strip-placement.spec.ts": 62400,
|
||||
"tests/e2e/terminal-parked-cli-split.spec.ts": 28900,
|
||||
"tests/e2e/terminal-parked-close-retirement.spec.ts": 16300,
|
||||
"tests/e2e/terminal-paste-ownership.spec.ts": 66100,
|
||||
"tests/e2e/terminal-pinned-viewport-streaming-switch.spec.ts": 19400,
|
||||
"tests/e2e/terminal-pinned-viewport-worktree-switch.spec.ts": 16700,
|
||||
"tests/e2e/terminal-quick-command-pre-bind-recovery.spec.ts": 42100,
|
||||
"tests/e2e/terminal-raw-emoji-table-scroll-restore.spec.ts": 35800,
|
||||
"tests/e2e/terminal-reattach-mouse-mode-leak.spec.ts": 22800,
|
||||
"tests/e2e/terminal-reattach-tui-mouse-mode.spec.ts": 44200,
|
||||
"tests/e2e/terminal-restart-persistence.spec.ts": 109600,
|
||||
"tests/e2e/terminal-reveal-paused-render-repro.spec.ts": 31100,
|
||||
"tests/e2e/terminal-scroll-intent-follow.spec.ts": 73200,
|
||||
"tests/e2e/terminal/ime/terminal-korean-preedit-visibility.spec.ts": 62200,
|
||||
"tests/e2e/terminal/links/terminal-link-click-ownership.spec.ts": 69100,
|
||||
"tests/e2e/terminal/lifecycle/terminal-osc-color-queries.spec.ts": 14900,
|
||||
"tests/e2e/terminal/layout/terminal-pane-content-retention.spec.ts": 45100,
|
||||
"tests/e2e/terminal/layout/terminal-pane-split-identity.spec.ts": 81000,
|
||||
"tests/e2e/terminal/retention/terminal-parked-close-retirement.spec.ts": 16300,
|
||||
"tests/e2e/terminal/input/terminal-paste-ownership.spec.ts": 66100,
|
||||
"tests/e2e/terminal/retention/terminal-restart-persistence.spec.ts": 109600,
|
||||
"tests/e2e/terminal/lifecycle/terminal-scroll-intent-follow.spec.ts": 73200,
|
||||
"tests/e2e/terminal-send-agent-prompt-submit.spec.ts": 51400,
|
||||
"tests/e2e/terminal-shortcuts.spec.ts": 91700,
|
||||
"tests/e2e/terminal-sleep-wake-restore.spec.ts": 16800,
|
||||
"tests/e2e/terminal-split-pane-paste-ownership.spec.ts": 30700,
|
||||
"tests/e2e/terminal-stuck-occlusion-recovery.spec.ts": 15200,
|
||||
"tests/e2e/terminal-tab-close-restart-persistence.spec.ts": 22800,
|
||||
"tests/e2e/terminal-tab-close-running-confirm-mouse.spec.ts": 57100,
|
||||
"tests/e2e/terminal-tab-close-running-confirm.spec.ts": 27500,
|
||||
"tests/e2e/terminal-tab-switch-sigwinch-restore.spec.ts": 30400,
|
||||
"tests/e2e/terminal-tab-switch-visual-restore.spec.ts": 90300,
|
||||
"tests/e2e/terminal-tui-wheel-drain.spec.ts": 528000,
|
||||
"tests/e2e/terminal-tui-wheel-reports.spec.ts": 34400,
|
||||
"tests/e2e/terminal-wedged-write-pipeline-recovery.spec.ts": 71900,
|
||||
"tests/e2e/update-install-renderer-checkpoint-recovery.spec.ts": 14900,
|
||||
"tests/e2e/windows-terminal-env-icons.spec.ts": 15400,
|
||||
"tests/e2e/workspace-board-lane-virtualization.spec.ts": 107700,
|
||||
"tests/e2e/workspace-session-corrupt-tab-salvage.spec.ts": 21100,
|
||||
"tests/e2e/worktree-card-downward-drag.spec.ts": 60000,
|
||||
"tests/e2e/worktree-delete-shortcut.spec.ts": 20600,
|
||||
"tests/e2e/worktree-lifecycle.spec.ts": 44000,
|
||||
"tests/e2e/worktree-recent-sort.spec.ts": 28400,
|
||||
"tests/e2e/worktree-switch-responsiveness.spec.ts": 15100,
|
||||
"tests/e2e/worktree.spec.ts": 118100
|
||||
"tests/e2e/terminal/input/terminal-shortcuts.spec.ts": 91700,
|
||||
"tests/e2e/terminal/retention/terminal-sleep-wake-restore.spec.ts": 16800,
|
||||
"tests/e2e/terminal/layout/terminal-split-pane-paste-ownership.spec.ts": 30700,
|
||||
"tests/e2e/terminal/retention/terminal-tab-close-running-confirm-mouse.spec.ts": 57100,
|
||||
"tests/e2e/terminal/retention/terminal-tab-close-running-confirm.spec.ts": 27500,
|
||||
"tests/e2e/terminal/rendering/terminal-tab-switch-visual-restore.spec.ts": 90300,
|
||||
"tests/e2e/terminal/lifecycle/terminal-wedged-write-pipeline-recovery.spec.ts": 71900,
|
||||
"tests/e2e/terminal/input/windows-terminal-env-icons.spec.ts": 15400,
|
||||
"tests/e2e/workspaces/sidebar/workspace-board-lane-virtualization.spec.ts": 107700
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,9 +30,9 @@ const NON_UNIT_TEST_RUNNERS = [
|
||||
},
|
||||
{
|
||||
name: 'computer-use e2e',
|
||||
include: ['tests/e2e/computer-*.e2e.ts'],
|
||||
include: ['tests/e2e/desktop/computer-use/computer-*.e2e.ts'],
|
||||
sources: ['tests/e2e/vitest.config.ts'],
|
||||
mirrors: ["'tests/e2e/computer-*.e2e.ts'"]
|
||||
mirrors: ["'tests/e2e/desktop/computer-use/computer-*.e2e.ts'"]
|
||||
},
|
||||
{
|
||||
name: 'mobile',
|
||||
|
||||
@@ -41,7 +41,6 @@ export const UNIT_EXCLUDE = [
|
||||
'src/shared/shell/wsl/fish-wsl-cwd-report.node-pty.test.ts',
|
||||
'src/main/wsl/filesystem/wsl-sh-cwd-report.node-pty.test.ts',
|
||||
'src/shared/terminal/pty/ingress/pty-reply-echo-shapes.node-pty.test.ts',
|
||||
'tests/e2e/relay-region-correction.unit.test.ts',
|
||||
'src/main/browser/cookies/browser-google-cookie-clear.electron.test.ts',
|
||||
// Electron probes with in-process deadlines; the package job runs them serially.
|
||||
'src/main/browser/guest-lifecycle/popups/presentation/popup-origin-chrome.electron.test.ts',
|
||||
|
||||
@@ -30,12 +30,10 @@ function createMobileCiScopeRepository() {
|
||||
'package.json',
|
||||
'config/scripts/workflow/source-routing/pr-code-change-scope.mjs',
|
||||
'config/scripts/workflow/source-routing/pr-package-test-paths.mjs',
|
||||
'config/scripts/workflow/source-routing/pr-layout-oracle-route.mjs',
|
||||
'config/scripts/workflow/source-routing/pr-shell-contract-prefixes.mjs',
|
||||
'config/scripts/workflow/source-routing/pr-xterm-patch-prefixes.mjs',
|
||||
'config/scripts/git/pr-diff-base/git-pull-request-diff-base.mjs',
|
||||
'config/scripts/workflow/source-routing/pr-e2e-source-routing.mjs',
|
||||
'config/scripts/workflow/source-routing/pr-browser-e2e-source-routes.mjs',
|
||||
'config/scripts/workflow/source-routing/pr-editor-preview-e2e-source-routes.mjs',
|
||||
'config/scripts/workflow/source-routing/pr-feature-area-e2e-source-routes.mjs',
|
||||
'config/scripts/workflow/source-routing/pr-plugin-e2e-source-routes.mjs',
|
||||
|
||||
@@ -40,7 +40,6 @@ function fixture(detectorStep = detector) {
|
||||
'package.json',
|
||||
'config/scripts/workflow/source-routing/pr-code-change-scope.mjs',
|
||||
'config/scripts/workflow/source-routing/pr-package-test-paths.mjs',
|
||||
'config/scripts/workflow/source-routing/pr-layout-oracle-route.mjs',
|
||||
'config/scripts/workflow/source-routing/pr-shell-contract-prefixes.mjs',
|
||||
'config/scripts/workflow/source-routing/pr-xterm-patch-prefixes.mjs',
|
||||
'config/scripts/mobile-web/check-entry/mobile-release-check-scope.mjs',
|
||||
|
||||
@@ -10,7 +10,6 @@ const NON_TEST_FILES = new Set([
|
||||
'config/scripts/workflow/source-routing/pr-code-change-scope.mjs',
|
||||
'config/scripts/workflow/source-routing/pr-package-test-paths.mjs',
|
||||
'config/scripts/workflow/source-routing/pr-code-change-scope.test.mjs',
|
||||
'config/scripts/workflow/source-routing/pr-layout-oracle-route.mjs',
|
||||
'config/scripts/workflow/source-routing/pr-shell-contract-prefixes.mjs',
|
||||
'config/scripts/mobile-web/check-entry/mobile-release-check-scope.mjs',
|
||||
'config/scripts/mobile-web/check-entry/mobile-release-check-scope.test.mjs',
|
||||
|
||||
@@ -36,7 +36,6 @@ export function nodeServerTestPaths({
|
||||
'src/main/daemon/pty-subprocess/subprocess-handle.ts',
|
||||
...(artifact
|
||||
? [
|
||||
'tests/e2e/daemon-running-work-probe.unit.test.ts',
|
||||
'src/shared/terminal/pty/lifecycle/pty-running-work-probe.test.ts',
|
||||
'src/main/orcad/native-runtime/orcad-packaged-node-pty.integration.test.ts',
|
||||
'src/main/daemon/pty-subprocess/testing/agent-foreground-process-git-bash.win32.test.ts',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// One 4a arm: a built checkout, its own envelope/fingerprint builders, and background launches it alone stops by recorded PID.
|
||||
// Its AppStore import also declares the window.__store and window.api globals these page.evaluate callbacks use.
|
||||
import type { AppStore } from '../../../../tests/e2e/helpers/runtime-types'
|
||||
import type { AppStore } from '../../../../tests/e2e/desktop/renderer-probes/runtime-types'
|
||||
import { execFileSync } from 'node:child_process'
|
||||
import { randomUUID } from 'node:crypto'
|
||||
import { chmodSync, constants, cpSync, existsSync, mkdirSync, writeFileSync } from 'node:fs'
|
||||
@@ -15,12 +15,12 @@ import {
|
||||
import {
|
||||
createElectronHomeIsolation,
|
||||
assertElectronResolvedIsolatedHome
|
||||
} from '../../../../tests/e2e/helpers/electron-home-isolation'
|
||||
import { getOrcaElectronLaunchArgs } from '../../../../tests/e2e/helpers/electron-launch-args'
|
||||
import { retryTransientMainEvaluate } from '../../../../tests/e2e/helpers/electron-main-evaluate-retry'
|
||||
import { closeElectronAppForE2E } from '../../../../tests/e2e/helpers/electron-process-shutdown'
|
||||
import { getE2ECompletedOnboardingProfile } from '../../../../tests/e2e/helpers/e2e-completed-onboarding-profile'
|
||||
import { buildFakeAgentCommandOverride } from '../../../../tests/e2e/helpers/fake-agent-command-override'
|
||||
} from '../../../../tests/e2e/desktop/electron-fixtures/electron-home-isolation'
|
||||
import { getOrcaElectronLaunchArgs } from '../../../../tests/e2e/desktop/electron-fixtures/electron-launch-args'
|
||||
import { retryTransientMainEvaluate } from '../../../../tests/e2e/desktop/electron-fixtures/electron-main-evaluate-retry'
|
||||
import { closeElectronAppForE2E } from '../../../../tests/e2e/desktop/electron-fixtures/electron-process-shutdown'
|
||||
import { getE2ECompletedOnboardingProfile } from '../../../../tests/e2e/desktop/electron-fixtures/e2e-completed-onboarding-profile'
|
||||
import { buildFakeAgentCommandOverride } from '../../../../tests/e2e/agents/session-fixtures/fake-agent-command-override'
|
||||
import {
|
||||
verifyArmProvenance,
|
||||
type ArmProvenance,
|
||||
|
||||
@@ -68,7 +68,8 @@ async function main(): Promise<void> {
|
||||
)
|
||||
const { resolveArm, writeProviderStub } = await import('./native-chat-4a-arm')
|
||||
const { seedProfile, seedDirFor } = await import('./native-chat-4a-fixture')
|
||||
const { createSeededTestRepo } = await import('../../../../tests/e2e/helpers/seeded-test-repo')
|
||||
const { createSeededTestRepo } =
|
||||
await import('../../../../tests/e2e/workspaces/repository-fixtures/seeded-test-repo')
|
||||
const scratch = path.join(out, 'scratch')
|
||||
mkdirSync(scratch, { recursive: true })
|
||||
const arms: Arm[] = []
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { ElectronApplication } from '@stablyai/playwright-test'
|
||||
import { retryTransientMainEvaluate } from '../../../../tests/e2e/helpers/electron-main-evaluate-retry'
|
||||
import { retryTransientMainEvaluate } from '../../../../tests/e2e/desktop/electron-fixtures/electron-main-evaluate-retry'
|
||||
|
||||
export type HostWork = {
|
||||
processCpuMs: number
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { readdirSync, statSync } from 'node:fs'
|
||||
import path from 'node:path'
|
||||
import type { ElectronApplication, Page } from '@stablyai/playwright-test'
|
||||
import { summarizeEventLoopDelay } from '../../../../tests/e2e/helpers/event-loop-delay-report'
|
||||
import { summarizeEventLoopDelay } from '../../../../tests/e2e/desktop/renderer-probes/event-loop-delay-report'
|
||||
|
||||
export { installVisibilityProbe, watchMarkers } from './native-chat-4a-visibility'
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Chat operations through the host RPC surface both arms serve, with envelopes built by each arm's own protocol bundle.
|
||||
// Its AppStore import also declares the window.__store and window.api globals these page.evaluate callbacks use.
|
||||
import type { AppStore } from '../../../../tests/e2e/helpers/runtime-types'
|
||||
import type { AppStore } from '../../../../tests/e2e/desktop/renderer-probes/runtime-types'
|
||||
import { randomUUID } from 'node:crypto'
|
||||
import { createOrcaSessionId } from '../../../../src/shared/agent-session/identity/orca-session-address'
|
||||
import type { Page } from '@stablyai/playwright-test'
|
||||
|
||||
+3
-1
@@ -1,5 +1,5 @@
|
||||
// Copies observations written under ORCA_LAYOUT_COMPAT_REPORT_DIR (<scenario>.<platform>.json)
|
||||
// into tests/e2e/layout-compat-baselines.json. Usage: node <this> <report dir>
|
||||
// into tests/e2e/layout/version-compatibility/layout-compat-baselines.json. Usage: node <this> <report dir>
|
||||
import { readFileSync, readdirSync, writeFileSync } from 'node:fs'
|
||||
import path from 'node:path'
|
||||
|
||||
@@ -13,6 +13,8 @@ const baselineFile = path.join(
|
||||
'..',
|
||||
'tests',
|
||||
'e2e',
|
||||
'layout',
|
||||
'version-compatibility',
|
||||
'layout-compat-baselines.json'
|
||||
)
|
||||
const baselines = JSON.parse(readFileSync(baselineFile, 'utf8'))
|
||||
|
||||
@@ -3,8 +3,7 @@ import { readFileSync } from 'node:fs'
|
||||
import { pathToFileURL } from 'node:url'
|
||||
|
||||
export const WSL_TEST_TITLES = [
|
||||
'tab-bar + menu launches an agent inside WSL @tab-bar-agent-launch-golden',
|
||||
'existing WSL terminal keeps paste runtime after default shell changes'
|
||||
'tab-bar + menu launches an agent inside WSL @tab-bar-agent-launch-golden'
|
||||
]
|
||||
|
||||
export function verifyWslParticipation(report) {
|
||||
@@ -13,5 +12,5 @@ export function verifyWslParticipation(report) {
|
||||
|
||||
if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) {
|
||||
verifyWslParticipation(JSON.parse(readFileSync(process.argv[2], 'utf8')))
|
||||
console.log('Both WSL scenarios passed three times without skips or retries.')
|
||||
console.log('The retained WSL launch scenario passed three times without skips or retries.')
|
||||
}
|
||||
|
||||
+36
-142
@@ -9,7 +9,6 @@ import {
|
||||
readFileSync,
|
||||
writeFileSync
|
||||
} from 'node:fs'
|
||||
import { verifyPlaywrightParticipation } from '../participation/verify-playwright-participation.mjs'
|
||||
import os from 'node:os'
|
||||
import path from 'node:path'
|
||||
import {
|
||||
@@ -21,9 +20,9 @@ import {
|
||||
const projectDir = path.resolve(import.meta.dirname, '../../../..')
|
||||
const scriptPath = import.meta.filename
|
||||
const insideSessionFlag = '--inside-session'
|
||||
const nestedWaylandFlag = '--nested-wayland'
|
||||
const nestedWayland = process.argv.includes(nestedWaylandFlag)
|
||||
const waylandTitle = 'a digit typed right after a Hangul syllable reaches the pty'
|
||||
if (process.argv.includes('--nested-wayland')) {
|
||||
throw new Error('The nested Wayland terminating-digit journey has been retired')
|
||||
}
|
||||
const processStopTimeoutMs = 5_000
|
||||
const processKillTimeoutMs = 1_000
|
||||
|
||||
@@ -122,13 +121,7 @@ async function waitForHangulEngine(sessionProcess) {
|
||||
if (sessionProcess.exitCode !== null) {
|
||||
throw new Error(`IME session process exited early with code ${sessionProcess.exitCode}`)
|
||||
}
|
||||
if (
|
||||
nestedWayland &&
|
||||
!existsSync(path.join(process.env.XDG_RUNTIME_DIR, process.env.WAYLAND_DISPLAY))
|
||||
) {
|
||||
await delay(100)
|
||||
continue
|
||||
}
|
||||
|
||||
const result = spawnSync('ibus', ['engine', 'hangul'], { encoding: 'utf8' })
|
||||
lastError = result.stderr?.trim() || String(result.error ?? result.status)
|
||||
if (result.status === 0) {
|
||||
@@ -143,10 +136,7 @@ async function runInsideSession(evidenceDir) {
|
||||
const receiptPath = path.join(evidenceDir, 'ime-engagement-receipt.jsonl')
|
||||
const ibusLogPath = path.join(evidenceDir, 'ibus-daemon.log')
|
||||
const ibusLogFd = openSync(ibusLogPath, 'w')
|
||||
const windowManagerLogPath = path.join(
|
||||
evidenceDir,
|
||||
nestedWayland ? 'gnome-shell.log' : 'xfwm4.log'
|
||||
)
|
||||
const windowManagerLogPath = path.join(evidenceDir, 'xfwm4.log')
|
||||
const windowManagerLogFd = openSync(windowManagerLogPath, 'w')
|
||||
const evidence = {
|
||||
display: process.env.DISPLAY ?? null,
|
||||
@@ -163,61 +153,33 @@ async function runInsideSession(evidenceDir) {
|
||||
|
||||
try {
|
||||
configureHangulEngine()
|
||||
if (nestedWayland) {
|
||||
for (const [schema, key, value] of [
|
||||
['org.gnome.desktop.interface', 'enable-animations', 'false'],
|
||||
['org.gnome.desktop.input-sources', 'sources', "[('ibus', 'hangul')]"]
|
||||
]) {
|
||||
const result = spawnSync('gsettings', ['set', schema, key, value], { encoding: 'utf8' })
|
||||
if (result.status !== 0) {
|
||||
throw new Error(`Failed to configure GNOME: ${result.stderr}`)
|
||||
}
|
||||
}
|
||||
windowManagerProcess = spawn(
|
||||
'gnome-shell',
|
||||
['--nested', '--wayland', `--wayland-display=${process.env.WAYLAND_DISPLAY}`],
|
||||
{
|
||||
detached: true,
|
||||
env:
|
||||
process.env.ORCA_E2E_WAYLAND_INPUT_DIAGNOSTICS === '1'
|
||||
? { ...process.env, WAYLAND_DEBUG: 'server' }
|
||||
: process.env,
|
||||
stdio: ['ignore', windowManagerLogFd, windowManagerLogFd]
|
||||
}
|
||||
)
|
||||
} else {
|
||||
windowManagerProcess = spawn('xfwm4', ['--compositor=off'], {
|
||||
detached: true,
|
||||
env: process.env,
|
||||
stdio: ['ignore', windowManagerLogFd, windowManagerLogFd]
|
||||
})
|
||||
}
|
||||
|
||||
windowManagerProcess = spawn('xfwm4', ['--compositor=off'], {
|
||||
detached: true,
|
||||
env: process.env,
|
||||
stdio: ['ignore', windowManagerLogFd, windowManagerLogFd]
|
||||
})
|
||||
if (!windowManagerProcess.pid) {
|
||||
throw new Error('Window manager did not return a PID')
|
||||
}
|
||||
evidence.windowManagerPid = windowManagerProcess.pid
|
||||
console.error(`[terminal-ime] started window manager PID ${windowManagerProcess.pid}`)
|
||||
|
||||
if (nestedWayland) {
|
||||
// GNOME starts IBus in the private session; a second daemon can compete for ownership.
|
||||
await waitForHangulEngine(windowManagerProcess)
|
||||
} else {
|
||||
ibusProcess = spawn(
|
||||
'ibus-daemon',
|
||||
['--xim', '--verbose', '--panel=disable', '--emoji-extension=disable'],
|
||||
{
|
||||
detached: true,
|
||||
env: process.env,
|
||||
stdio: ['ignore', ibusLogFd, ibusLogFd]
|
||||
}
|
||||
)
|
||||
if (!ibusProcess.pid) {
|
||||
throw new Error('ibus-daemon did not return a PID')
|
||||
ibusProcess = spawn(
|
||||
'ibus-daemon',
|
||||
['--xim', '--verbose', '--panel=disable', '--emoji-extension=disable'],
|
||||
{
|
||||
detached: true,
|
||||
env: process.env,
|
||||
stdio: ['ignore', ibusLogFd, ibusLogFd]
|
||||
}
|
||||
evidence.ibusDaemonPid = ibusProcess.pid
|
||||
console.error(`[terminal-ime] started ibus-daemon PID ${ibusProcess.pid}`)
|
||||
await waitForHangulEngine(ibusProcess)
|
||||
)
|
||||
if (!ibusProcess.pid) {
|
||||
throw new Error('ibus-daemon did not return a PID')
|
||||
}
|
||||
evidence.ibusDaemonPid = ibusProcess.pid
|
||||
console.error(`[terminal-ime] started ibus-daemon PID ${ibusProcess.pid}`)
|
||||
await waitForHangulEngine(ibusProcess)
|
||||
console.error(`[terminal-ime] IBus version: ${commandOutput('ibus', ['version'])}`)
|
||||
console.error(`[terminal-ime] IBus engine: ${commandOutput('ibus', ['engine'])}`)
|
||||
console.error(
|
||||
@@ -239,43 +201,16 @@ async function runInsideSession(evidenceDir) {
|
||||
|
||||
const testProcess = spawn(
|
||||
process.platform === 'win32' ? 'pnpm.cmd' : 'pnpm',
|
||||
nestedWayland
|
||||
? [
|
||||
'exec',
|
||||
'playwright',
|
||||
'test',
|
||||
'--config',
|
||||
'tests/playwright.config.ts',
|
||||
'tests/e2e/terminal-hangul-terminating-digit-native.spec.ts',
|
||||
'--project=electron-headful',
|
||||
'--workers=1',
|
||||
'--repeat-each=3',
|
||||
'--retries=0',
|
||||
'--reporter=list,json'
|
||||
]
|
||||
: [
|
||||
'run',
|
||||
'test:e2e:headful',
|
||||
'--workers=1',
|
||||
'tests/e2e/terminal-ibus-hangul-native.spec.ts',
|
||||
'tests/e2e/terminal-hangul-terminating-digit-native.spec.ts'
|
||||
],
|
||||
[
|
||||
'run',
|
||||
'test:e2e:headful',
|
||||
'--workers=1',
|
||||
'tests/e2e/terminal/ime/terminal-ibus-hangul-native.spec.ts'
|
||||
],
|
||||
{
|
||||
cwd: projectDir,
|
||||
env: {
|
||||
...process.env,
|
||||
...(nestedWayland
|
||||
? {
|
||||
ORCA_E2E_IME_INJECTOR: 'nested',
|
||||
ORCA_E2E_NESTED_FOCUS_CMD: path.join(
|
||||
projectDir,
|
||||
'config/scripts/diagnostics/wayland/focus-nested-wayland-terminal.sh'
|
||||
),
|
||||
ORCA_E2E_EXTRA_APP_ARGS:
|
||||
'--ozone-platform=wayland --enable-wayland-ime --wayland-text-input-version=3 --password-store=basic --use-mock-keychain --disable-gpu-sandbox',
|
||||
PLAYWRIGHT_JSON_OUTPUT_FILE: path.join(evidenceDir, 'playwright.json')
|
||||
}
|
||||
: {}),
|
||||
ORCA_E2E_FORWARD_APP_LOGS: '1',
|
||||
ORCA_E2E_NATIVE_IBUS_HANGUL: '1',
|
||||
ORCA_E2E_NATIVE_IBUS_XVFB: '1',
|
||||
@@ -301,13 +236,7 @@ async function runInsideSession(evidenceDir) {
|
||||
windowManagerProcess.pid
|
||||
)
|
||||
}
|
||||
if (nestedWayland && existsSync(path.join(evidenceDir, 'playwright.json'))) {
|
||||
mkdirSync(path.join(projectDir, 'test-results'), { recursive: true })
|
||||
copyFileSync(
|
||||
path.join(evidenceDir, 'playwright.json'),
|
||||
path.join(projectDir, 'test-results', 'terminal-wayland-playwright.json')
|
||||
)
|
||||
}
|
||||
|
||||
closeSync(ibusLogFd)
|
||||
closeSync(windowManagerLogFd)
|
||||
mkdirSync(path.join(projectDir, 'test-results'), { recursive: true })
|
||||
@@ -317,11 +246,7 @@ async function runInsideSession(evidenceDir) {
|
||||
)
|
||||
copyFileSync(
|
||||
windowManagerLogPath,
|
||||
path.join(
|
||||
projectDir,
|
||||
'test-results',
|
||||
nestedWayland ? 'terminal-wayland-gnome-shell.log' : 'terminal-ibus-hangul-native-xfwm4.log'
|
||||
)
|
||||
path.join(projectDir, 'test-results', 'terminal-ibus-hangul-native-xfwm4.log')
|
||||
)
|
||||
writeFileSync(
|
||||
path.join(projectDir, 'test-results', 'terminal-ibus-hangul-native-processes.json'),
|
||||
@@ -348,23 +273,7 @@ async function runInsideSession(evidenceDir) {
|
||||
|
||||
// Always require engagement evidence: skipped Playwright tests also exit 0, so successful exit alone proves nothing.
|
||||
const receiptText = existsSync(receiptPath) ? readFileSync(receiptPath, 'utf8') : ''
|
||||
if (nestedWayland) {
|
||||
verifyPlaywrightParticipation(
|
||||
JSON.parse(readFileSync(path.join(evidenceDir, 'playwright.json'), 'utf8')),
|
||||
{ titles: [waylandTitle], label: 'Native Wayland Hangul', repetitions: 3 }
|
||||
)
|
||||
const receipts = receiptText.trim().split('\n')
|
||||
if (receipts.length !== 3) {
|
||||
throw new Error('Expected three native Wayland engagement receipts')
|
||||
}
|
||||
for (const receipt of receipts) {
|
||||
const problems = verifyImeEngagementReceipts(receipt, [waylandTitle])
|
||||
if (problems.length) {
|
||||
throw new Error(problems.join('\n'))
|
||||
}
|
||||
}
|
||||
return testExitCode
|
||||
}
|
||||
|
||||
const engagementProblems = verifyImeEngagementReceipts(receiptText, EXPECTED_NATIVE_IME_TESTS)
|
||||
if (engagementProblems.length > 0) {
|
||||
for (const problem of engagementProblems) {
|
||||
@@ -398,36 +307,24 @@ async function runOuter() {
|
||||
'xvfb-run',
|
||||
[
|
||||
'--auto-servernum',
|
||||
...(nestedWayland ? ['--server-args=-screen 0 1280x800x24'] : []),
|
||||
'dbus-run-session',
|
||||
'--',
|
||||
process.execPath,
|
||||
scriptPath,
|
||||
insideSessionFlag,
|
||||
evidenceDir,
|
||||
...(nestedWayland ? [nestedWaylandFlag] : [])
|
||||
evidenceDir
|
||||
],
|
||||
{
|
||||
cwd: projectDir,
|
||||
detached: true,
|
||||
env: {
|
||||
...process.env,
|
||||
...(nestedWayland
|
||||
? {
|
||||
WAYLAND_DISPLAY: 'wayland-orca-ime',
|
||||
XDG_SESSION_TYPE: 'wayland',
|
||||
XDG_CURRENT_DESKTOP: 'GNOME',
|
||||
LIBGL_ALWAYS_SOFTWARE: '1',
|
||||
NO_AT_BRIDGE: '1'
|
||||
}
|
||||
: {}),
|
||||
GTK_IM_MODULE: 'ibus',
|
||||
IBUS_ENABLE_SYNC_MODE: '1',
|
||||
LANG: process.env.LANG || 'C.UTF-8',
|
||||
QT_IM_MODULE: 'ibus',
|
||||
// GNOME 42 drops XDG_CONFIG_HOME when spawning IBus; both must use its default path.
|
||||
XDG_CACHE_HOME: nestedWayland ? undefined : path.join(evidenceDir, 'cache'),
|
||||
XDG_CONFIG_HOME: nestedWayland ? undefined : path.join(evidenceDir, 'config'),
|
||||
XDG_CACHE_HOME: path.join(evidenceDir, 'cache'),
|
||||
XDG_CONFIG_HOME: path.join(evidenceDir, 'config'),
|
||||
XDG_RUNTIME_DIR: runtimeDir,
|
||||
XMODIFIERS: '@im=ibus'
|
||||
},
|
||||
@@ -448,9 +345,6 @@ async function runOuter() {
|
||||
|
||||
const insideSession = process.argv[2] === insideSessionFlag
|
||||
try {
|
||||
if (nestedWayland && process.env.GITHUB_ACTIONS !== 'true') {
|
||||
throw new Error('Nested Wayland native input validation runs only in GitHub Actions')
|
||||
}
|
||||
if (insideSession && !process.argv[3]) {
|
||||
throw new Error(`${insideSessionFlag} requires an evidence directory argument`)
|
||||
}
|
||||
|
||||
@@ -1,231 +0,0 @@
|
||||
#!/usr/bin/env node
|
||||
// Runs tests/e2e/terminal-layout-parity.spec.ts against a base and a head build and diffs the
|
||||
// captured layouts and saved sessions. Usage: tests/e2e/AGENTS.md.
|
||||
|
||||
import { build } from 'esbuild'
|
||||
import {
|
||||
existsSync,
|
||||
mkdirSync,
|
||||
mkdtempSync,
|
||||
readFileSync,
|
||||
readdirSync,
|
||||
rmSync,
|
||||
writeFileSync
|
||||
} from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join, resolve } from 'node:path'
|
||||
import { pathToFileURL } from 'node:url'
|
||||
import { parseArgs } from 'node:util'
|
||||
import { runProcessSync } from '@orca/process-host'
|
||||
import { describeProcessFailure } from '../../tool-invocation/process-failure-message.mjs'
|
||||
import { resolvePnpmCliInvocation } from '../../tool-invocation/pnpm-cli-invocation.mjs'
|
||||
const repoRoot = resolve(import.meta.dirname, '../../../..')
|
||||
const BUILD_STAMP = join('out', '.terminal-layout-parity-build')
|
||||
|
||||
// Bundle TypeScript parity modules so plain Node does not need a loader.
|
||||
async function importParityModules() {
|
||||
const temporary = mkdtempSync(join(tmpdir(), 'orca-layout-parity-'))
|
||||
try {
|
||||
const outfile = join(temporary, 'parity.mjs')
|
||||
await build({
|
||||
stdin: {
|
||||
contents: ['snapshot', 'declared-differences']
|
||||
.map(
|
||||
(name) =>
|
||||
`export * from ${JSON.stringify(join(repoRoot, 'tests', 'e2e', `terminal-layout-parity-${name}.ts`))}`
|
||||
)
|
||||
.join('\n'),
|
||||
resolveDir: repoRoot,
|
||||
sourcefile: 'terminal-layout-parity-entry.ts'
|
||||
},
|
||||
bundle: true,
|
||||
platform: 'node',
|
||||
format: 'esm',
|
||||
outfile,
|
||||
logLevel: 'silent'
|
||||
})
|
||||
return await import(pathToFileURL(outfile).href)
|
||||
} finally {
|
||||
rmSync(temporary, { recursive: true, force: true })
|
||||
}
|
||||
}
|
||||
|
||||
const {
|
||||
TERMINAL_LAYOUT_PARITY_OUT_ENV,
|
||||
TERMINAL_LAYOUT_PARITY_DECLARED_DIFFERENCES,
|
||||
TERMINAL_LAYOUT_PARITY_UNSTABLE_ON_MAIN,
|
||||
compareParityCaptures,
|
||||
isParityClean
|
||||
} = await importParityModules()
|
||||
|
||||
// `pnpm run <script> -- --base x` forwards the `--`, which would turn every option positional.
|
||||
const rawArgs = process.argv.slice(2)
|
||||
const { values } = parseArgs({
|
||||
args: rawArgs[0] === '--' ? rawArgs.slice(1) : rawArgs,
|
||||
options: {
|
||||
base: { type: 'string' },
|
||||
head: { type: 'string' },
|
||||
'work-dir': { type: 'string' },
|
||||
out: { type: 'string' },
|
||||
grep: { type: 'string', short: 'g' }
|
||||
}
|
||||
})
|
||||
|
||||
function run(program, args, cwd, env = process.env, { allowFailure = false } = {}) {
|
||||
const result = runProcessSync({ program, args, cwd, env, stdio: 'inherit', timeoutMs: null })
|
||||
if (result.code !== 0 && !allowFailure) {
|
||||
throw new Error(
|
||||
`${program} ${args.join(' ')} failed in ${cwd}: ${describeProcessFailure(result)}`
|
||||
)
|
||||
}
|
||||
return result.code === 0
|
||||
}
|
||||
|
||||
function git(args) {
|
||||
const result = runProcessSync({ program: 'git', args, cwd: repoRoot })
|
||||
if (result.code !== 0) {
|
||||
throw new Error(`git ${args.join(' ')} failed: ${describeProcessFailure(result)}`)
|
||||
}
|
||||
return result.stdout.trim()
|
||||
}
|
||||
|
||||
function pnpm(args, cwd, env = process.env) {
|
||||
const { command, prefixArgs } = resolvePnpmCliInvocation()
|
||||
run(command, [...prefixArgs, ...args], cwd, env)
|
||||
}
|
||||
|
||||
/** A detached worktree per commit, installed and built once; a failed build throws before stamping. */
|
||||
function prepareCheckout(sha, workDir) {
|
||||
const tree = join(workDir, sha.slice(0, 12))
|
||||
if (!existsSync(tree)) {
|
||||
git(['worktree', 'add', '--detach', tree, sha])
|
||||
}
|
||||
if (readStamp(tree) !== sha) {
|
||||
pnpm(['install', '--frozen-lockfile', '--prefer-offline'], tree)
|
||||
// Mirrors tests/e2e/global-setup.ts's build, so SKIP_BUILD later launches exactly this output.
|
||||
pnpm(['exec', 'electron-vite', 'build', '--mode', 'e2e'], tree, {
|
||||
...process.env,
|
||||
VITE_EXPOSE_STORE: 'true'
|
||||
})
|
||||
pnpm(['run', 'build:cli'], tree)
|
||||
writeFileSync(join(tree, BUILD_STAMP), `${sha}\n`)
|
||||
}
|
||||
return { tree, skipBuild: true }
|
||||
}
|
||||
|
||||
function readStamp(tree) {
|
||||
const stamp = join(tree, BUILD_STAMP)
|
||||
return existsSync(stamp) ? readFileSync(stamp, 'utf8').trim() : null
|
||||
}
|
||||
|
||||
/** Head's spec and helpers drive the side's build: cwd selects which out/ the helpers launch. */
|
||||
function captureSide(label, side, outRoot) {
|
||||
const outDir = join(outRoot, label)
|
||||
rmSync(outDir, { recursive: true, force: true })
|
||||
mkdirSync(outDir, { recursive: true })
|
||||
run(
|
||||
process.execPath,
|
||||
[
|
||||
existsSync(
|
||||
join(side.tree, 'config/scripts/native-build/node-addons/ensure-native-runtime.mjs')
|
||||
)
|
||||
? 'config/scripts/native-build/node-addons/ensure-native-runtime.mjs'
|
||||
: 'config/scripts/ensure-native-runtime.mjs',
|
||||
'--runtime=electron'
|
||||
],
|
||||
side.tree
|
||||
)
|
||||
// A failed scenario still compares (as missing) but fails the run, so two failures cannot pass.
|
||||
const passed = run(
|
||||
process.execPath,
|
||||
[
|
||||
join(repoRoot, 'node_modules', '@playwright', 'test', 'cli.js'),
|
||||
'test',
|
||||
'terminal-layout-parity.spec.ts',
|
||||
'--config',
|
||||
join(repoRoot, 'tests', 'playwright.config.ts'),
|
||||
'--project',
|
||||
'electron-headless',
|
||||
'--workers=1',
|
||||
...(values.grep ? ['--grep', values.grep] : [])
|
||||
],
|
||||
side.tree,
|
||||
{
|
||||
...process.env,
|
||||
ORCA_BACKGROUND_LAUNCH: '1',
|
||||
[TERMINAL_LAYOUT_PARITY_OUT_ENV]: outDir,
|
||||
// The working tree builds in Playwright's global setup; checkouts were built above.
|
||||
...(side.skipBuild ? { SKIP_BUILD: '1' } : {})
|
||||
},
|
||||
{ allowFailure: true }
|
||||
)
|
||||
return { outDir, passed }
|
||||
}
|
||||
|
||||
function loadCaptures(outDir) {
|
||||
return new Map(
|
||||
readdirSync(outDir)
|
||||
.filter((name) => name.endsWith('.json'))
|
||||
.map((name) => {
|
||||
const capture = JSON.parse(readFileSync(join(outDir, name), 'utf8'))
|
||||
return [capture.scenario, capture]
|
||||
})
|
||||
)
|
||||
}
|
||||
|
||||
function main() {
|
||||
const workDir = resolve(values['work-dir'] ?? join(repoRoot, '.tmp', 'terminal-layout-parity'))
|
||||
const outRoot = resolve(values.out ?? join(workDir, 'captures'))
|
||||
mkdirSync(workDir, { recursive: true })
|
||||
const baseSha = git([
|
||||
'rev-parse',
|
||||
'--verify',
|
||||
`${values.base ?? git(['merge-base', 'origin/main', 'HEAD'])}^{commit}`
|
||||
])
|
||||
const base = { sha: baseSha, ...prepareCheckout(baseSha, workDir) }
|
||||
// No --head: the current checkout, including uncommitted edits, is the head.
|
||||
const headSha = values.head ? git(['rev-parse', '--verify', `${values.head}^{commit}`]) : null
|
||||
const head = headSha
|
||||
? headSha === baseSha
|
||||
? base
|
||||
: { sha: headSha, ...prepareCheckout(headSha, workDir) }
|
||||
: { sha: null, tree: repoRoot, skipBuild: false }
|
||||
|
||||
const baseRun = captureSide('base', base, outRoot)
|
||||
const headRun = captureSide('head', head, outRoot)
|
||||
const baseCaptures = loadCaptures(baseRun.outDir)
|
||||
const report = compareParityCaptures(
|
||||
baseCaptures,
|
||||
loadCaptures(headRun.outDir),
|
||||
TERMINAL_LAYOUT_PARITY_DECLARED_DIFFERENCES,
|
||||
TERMINAL_LAYOUT_PARITY_UNSTABLE_ON_MAIN
|
||||
)
|
||||
writeFileSync(join(outRoot, 'report.json'), `${JSON.stringify(report, null, 2)}\n`)
|
||||
console.log(`[layout-parity] base ${baseSha} vs head ${headSha ?? 'working tree'}`)
|
||||
for (const difference of report.declared) {
|
||||
console.log(
|
||||
`[layout-parity] declared (${difference.bugId}) ${difference.scenario}${difference.path}`
|
||||
)
|
||||
}
|
||||
for (const difference of report.unstableOnMain) {
|
||||
console.log(`[layout-parity] unstable on main ${difference.scenario}${difference.path}`)
|
||||
}
|
||||
for (const difference of report.undeclared) {
|
||||
console.log(
|
||||
`[layout-parity] DIFFERENT ${difference.scenario}${difference.path}: ${JSON.stringify(difference.base)} -> ${JSON.stringify(difference.head)}`
|
||||
)
|
||||
}
|
||||
for (const declaration of report.unusedDeclarations) {
|
||||
console.log(`[layout-parity] UNOBSERVED fix ${declaration.bugId} in ${declaration.scenario}`)
|
||||
}
|
||||
const clean = isParityClean(report) && baseRun.passed && headRun.passed && baseCaptures.size > 0
|
||||
if (!baseRun.passed || !headRun.passed) {
|
||||
console.log(
|
||||
`[layout-parity] scenario run failed: base=${baseRun.passed} head=${headRun.passed}`
|
||||
)
|
||||
}
|
||||
console.log(`[layout-parity] ${clean ? 'PASS' : 'FAIL'}; report: ${join(outRoot, 'report.json')}`)
|
||||
process.exit(clean ? 0 : 1)
|
||||
}
|
||||
|
||||
main()
|
||||
@@ -1,46 +0,0 @@
|
||||
import { spawn } from 'node:child_process'
|
||||
|
||||
const npxCommand = process.platform === 'win32' ? 'npx.cmd' : 'npx'
|
||||
|
||||
const env = {
|
||||
...process.env,
|
||||
ORCA_E2E_OPENCODE_SCALE_PANES: process.env.ORCA_E2E_OPENCODE_SCALE_PANES ?? '10,25,50,100',
|
||||
ORCA_E2E_OPENCODE_SCALE_CROSS_WORKSPACE_PANES:
|
||||
process.env.ORCA_E2E_OPENCODE_SCALE_CROSS_WORKSPACE_PANES ?? '10,25,50,100',
|
||||
ORCA_E2E_OPENCODE_SCALE_PRESSURE_PANES:
|
||||
process.env.ORCA_E2E_OPENCODE_SCALE_PRESSURE_PANES ?? '25,50',
|
||||
ORCA_E2E_OPENCODE_SCALE_HIDDEN_PRESSURE_PANES:
|
||||
process.env.ORCA_E2E_OPENCODE_SCALE_HIDDEN_PRESSURE_PANES ?? '25',
|
||||
ORCA_E2E_OPENCODE_FRAME_COUNT: process.env.ORCA_E2E_OPENCODE_FRAME_COUNT ?? '60'
|
||||
}
|
||||
const extraArgs = process.argv.slice(2)
|
||||
if (extraArgs[0] === '--') {
|
||||
extraArgs.shift()
|
||||
}
|
||||
|
||||
const child = spawn(
|
||||
npxCommand,
|
||||
[
|
||||
'playwright',
|
||||
'test',
|
||||
'tests/e2e/artificial-opencode-terminal-load.spec.ts',
|
||||
'--config',
|
||||
'tests/playwright.config.ts',
|
||||
'--project',
|
||||
'electron-headless',
|
||||
'--workers=1',
|
||||
...extraArgs
|
||||
],
|
||||
{
|
||||
stdio: 'inherit',
|
||||
env
|
||||
}
|
||||
)
|
||||
|
||||
child.on('exit', (code, signal) => {
|
||||
if (signal) {
|
||||
process.kill(process.pid, signal)
|
||||
return
|
||||
}
|
||||
process.exit(code ?? 1)
|
||||
})
|
||||
-136
@@ -1,136 +0,0 @@
|
||||
import { spawnSync } from 'node:child_process'
|
||||
import { closeSync, copyFileSync, mkdirSync, mkdtempSync, openSync, rmSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { dirname, join } from 'node:path'
|
||||
|
||||
const DEFAULT_REPORT_PATH = 'test-results/terminal-scale-perf-report.json'
|
||||
const DEFAULT_HTML_REPORT_PATH = 'test-results/terminal-perf-impact-report.html'
|
||||
|
||||
export function parseReportGateArgs(argv, env = process.env) {
|
||||
const forwardedArgs = [...argv]
|
||||
if (forwardedArgs[0] === '--') {
|
||||
forwardedArgs.shift()
|
||||
}
|
||||
|
||||
let reportPath = env.ORCA_E2E_TERMINAL_PERF_REPORT_PATH || DEFAULT_REPORT_PATH
|
||||
const passthroughArgs = []
|
||||
for (let index = 0; index < forwardedArgs.length; index += 1) {
|
||||
const arg = forwardedArgs[index]
|
||||
if (arg === '--report' || arg === '--report-path' || arg === '--output') {
|
||||
const next = forwardedArgs[index + 1]
|
||||
if (!next || next.startsWith('-')) {
|
||||
throw new Error(`${arg} requires a path`)
|
||||
}
|
||||
reportPath = next
|
||||
index += 1
|
||||
continue
|
||||
}
|
||||
if (
|
||||
arg.startsWith('--report=') ||
|
||||
arg.startsWith('--report-path=') ||
|
||||
arg.startsWith('--output=')
|
||||
) {
|
||||
reportPath = arg.slice(arg.indexOf('=') + 1)
|
||||
continue
|
||||
}
|
||||
if (arg === '--reporter' || arg.startsWith('--reporter=')) {
|
||||
throw new Error('test:e2e:terminal-perf:scale:report always uses --reporter=json')
|
||||
}
|
||||
passthroughArgs.push(arg)
|
||||
}
|
||||
|
||||
return { passthroughArgs, reportPath }
|
||||
}
|
||||
|
||||
function runNodeScript(scriptPath, args, stdio, spawnSyncImpl, env) {
|
||||
return spawnSyncImpl(process.execPath, [scriptPath, ...args], {
|
||||
cwd: process.cwd(),
|
||||
env,
|
||||
stdio
|
||||
})
|
||||
}
|
||||
|
||||
function exitCode(result) {
|
||||
if (result.signal) {
|
||||
console.error(`Terminal scale perf command exited with signal ${result.signal}`)
|
||||
return 1
|
||||
}
|
||||
return result.status ?? 1
|
||||
}
|
||||
|
||||
export function runTerminalScalePerfReportGate({
|
||||
argv = process.argv.slice(2),
|
||||
env = process.env,
|
||||
spawnSyncImpl = spawnSync
|
||||
} = {}) {
|
||||
const { passthroughArgs, reportPath } = parseReportGateArgs(argv, env)
|
||||
const tempDir = mkdtempSync(join(tmpdir(), 'orca-terminal-scale-perf-'))
|
||||
const tempReportPath = join(tempDir, 'report.json')
|
||||
|
||||
let scaleExitCode
|
||||
try {
|
||||
const reportFd = openSync(tempReportPath, 'w')
|
||||
let scaleResult
|
||||
try {
|
||||
scaleResult = runNodeScript(
|
||||
'config/scripts/runtime-verification/terminal-e2e/run-terminal-scale-perf-e2e.mjs',
|
||||
['--', '--reporter=json', ...passthroughArgs],
|
||||
['inherit', reportFd, 'inherit'],
|
||||
spawnSyncImpl,
|
||||
env
|
||||
)
|
||||
} finally {
|
||||
closeSync(reportFd)
|
||||
}
|
||||
|
||||
scaleExitCode = exitCode(scaleResult)
|
||||
mkdirSync(dirname(reportPath), { recursive: true })
|
||||
copyFileSync(tempReportPath, reportPath)
|
||||
} finally {
|
||||
rmSync(tempDir, { force: true, recursive: true })
|
||||
}
|
||||
|
||||
if (scaleExitCode !== 0) {
|
||||
console.error(`Terminal scale perf report saved to ${reportPath}`)
|
||||
return scaleExitCode
|
||||
}
|
||||
|
||||
console.log(`Terminal scale perf report saved to ${reportPath}`)
|
||||
const summaryResult = runNodeScript(
|
||||
'config/scripts/performance/terminal-reporting/summarize-terminal-perf-report.mjs',
|
||||
[reportPath],
|
||||
'inherit',
|
||||
spawnSyncImpl,
|
||||
env
|
||||
)
|
||||
const summaryExitCode = exitCode(summaryResult)
|
||||
if (summaryExitCode !== 0) {
|
||||
return summaryExitCode
|
||||
}
|
||||
|
||||
const budgetResult = runNodeScript(
|
||||
'config/scripts/performance/terminal-reporting/check-terminal-perf-report-budgets.mjs',
|
||||
[reportPath],
|
||||
'inherit',
|
||||
spawnSyncImpl,
|
||||
env
|
||||
)
|
||||
const budgetExitCode = exitCode(budgetResult)
|
||||
if (budgetExitCode !== 0) {
|
||||
return budgetExitCode
|
||||
}
|
||||
|
||||
const htmlReportPath = env.ORCA_E2E_TERMINAL_PERF_HTML_REPORT_PATH || DEFAULT_HTML_REPORT_PATH
|
||||
const htmlResult = runNodeScript(
|
||||
'config/scripts/performance/terminal-reporting/generate-terminal-perf-html-report.mjs',
|
||||
[reportPath, '--output', htmlReportPath],
|
||||
'inherit',
|
||||
spawnSyncImpl,
|
||||
env
|
||||
)
|
||||
return exitCode(htmlResult)
|
||||
}
|
||||
|
||||
if (process.argv[1] === import.meta.filename) {
|
||||
process.exit(runTerminalScalePerfReportGate())
|
||||
}
|
||||
+1
-3
@@ -5,9 +5,7 @@ export const IME_ENGAGEMENT_RECEIPT_ENV = 'ORCA_E2E_IME_ENGAGEMENT_RECEIPT'
|
||||
/** The tests that must each leave a receipt. Pinned so deleting one cannot quietly shrink the lane. */
|
||||
export const EXPECTED_NATIVE_IME_TESTS = [
|
||||
'forwards the issue exact-byte sequence without loss or duplication',
|
||||
'forwards the issue sentence stress sequence without leaked ASCII',
|
||||
'a digit typed right after a Hangul syllable reaches the pty',
|
||||
'confirms native Hangul notes before a deliberate Enter saves'
|
||||
'forwards the issue sentence stress sequence without leaked ASCII'
|
||||
]
|
||||
|
||||
function parseReceipts(text) {
|
||||
|
||||
@@ -2,16 +2,14 @@ import { findSqliteRuntimeTests } from './vitest-sqlite-runtime-scan.mjs'
|
||||
|
||||
// SQLite publication, native bindings, worker IPC, socket liveness, and V8 retention use Node.
|
||||
const NODE_RUNTIME_INCLUDE = [
|
||||
// Exercise the native fetch error and abort contracts used by the Linear SDK in Electron.
|
||||
'tests/e2e/linear-cli-recovery.unit.test.ts',
|
||||
// Exercises a real peer reset through Node's native Socket.setTypeOfService.
|
||||
'src/main/network/best-effort-socket-type-of-service.test.ts',
|
||||
'config/scripts/ci/workflow-contracts/cloud-security-history-workflow.test.mjs',
|
||||
'src/main/ssh/legacy-relay/endpoints/ssh-relay-endpoint-incumbent-shell.integration.test.ts',
|
||||
'src/main/ssh/remote-exec/ssh-remote-commands.test.ts',
|
||||
'src/packages/process-host/src/run-process.test.ts',
|
||||
'tests/e2e/cursor-quota-transport.unit.test.ts',
|
||||
'tests/e2e/helpers/electron-process-shutdown.unit.test.ts',
|
||||
'tests/e2e/agents/settings/cursor-quota-transport.unit.test.ts',
|
||||
'tests/e2e/desktop/electron-fixtures/electron-process-shutdown.unit.test.ts',
|
||||
// The parse cache persists through node:sqlite.
|
||||
'src/main/ai-vault/parse-cache/session-parse-cache-persistence.test.ts',
|
||||
'src/main/ai-vault/scope/session-scanner-scope-walk.test.ts',
|
||||
@@ -113,7 +111,7 @@ const NODE_RUNTIME_INCLUDE = [
|
||||
'config/scripts/desktop-distribution/runtime-verification/process-host-dev-rebuild.test.ts',
|
||||
'config/scripts/test-runtime/node-worker/vitest-node-runtime-pool.test.ts',
|
||||
// Reopen WAL-backed row caches read-only, which Bun on macOS cannot.
|
||||
'tests/e2e/helpers/persisted-profile-state.unit.test.ts',
|
||||
'tests/e2e/desktop/electron-fixtures/persisted-profile-state.unit.test.ts',
|
||||
'src/main/runtime/push/notifications/mobile-notification-dismissal-store.test.ts'
|
||||
]
|
||||
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
import { isUnitTestSupportSource } from './pr-code-change-scope.mjs'
|
||||
|
||||
const isProductSource = (file) => !/\.test\.tsx?$/.test(file) && !isUnitTestSupportSource(file)
|
||||
|
||||
export const PR_BROWSER_E2E_SOURCE_ROUTES = [
|
||||
{
|
||||
id: 'browser.image-link-native-focus',
|
||||
specs: ['tests/e2e/browser-image-link-focus.spec.ts'],
|
||||
matches: (file) =>
|
||||
file ===
|
||||
'src/renderer/src/components/browser-pane/assemble-chrome/focus/browser-page-guest-focus.ts' ||
|
||||
file === 'tests/e2e/helpers/browser-link-server.ts'
|
||||
},
|
||||
{
|
||||
// Paired HTML previews render client-side over orca-preview://; links route through confirmation into the browser.
|
||||
id: 'doc-preview.paired-local-render',
|
||||
specs: ['tests/e2e/paired-remote-html-preview-local-render.spec.ts'],
|
||||
matches: (file) =>
|
||||
file === 'tests/e2e/helpers/paired-html-preview-inventory.ts' ||
|
||||
(isProductSource(file) &&
|
||||
(/^src\/(?:main|preload|renderer\/src|shared)\/.*doc-preview[^/]*\.tsx?$/.test(file) ||
|
||||
/^src\/renderer\/src\/components\/browser-pane\/workspace-doc\/[^/]+\.tsx?$/.test(file)))
|
||||
},
|
||||
{
|
||||
// Preview ⇄ web-tab conversion from the address bar, including Back/Forward across it and document suggestions.
|
||||
id: 'browser.preview-address-bar-convergence',
|
||||
specs: ['tests/e2e/paired-preview-address-bar-convergence.spec.ts'],
|
||||
matches: (file) =>
|
||||
isProductSource(file) &&
|
||||
/^src\/renderer\/src\/(?:components\/browser-pane\/(?:workspace-doc\/doc-preview-address-edit|navigate\/(?:workspace-doc-address-submission|use-client-hosted-page-url-submission)|assemble-chrome\/address-bar\/browser-address-bar-suggestions)|lib\/(?:browser\/documents\/workspace-doc-address-input|browser\/history\/browser-page-conversion-history)|store\/slices\/browser\/pages\/(?:browser-page-conversion|browser-page-conversion-actions))\.tsx?$/.test(
|
||||
file
|
||||
)
|
||||
},
|
||||
{
|
||||
// Client-rendered host rows need two real Electron apps; omit high-churn ipc/runtime/useIpcEvents/preload seams covered by main-process integration.
|
||||
id: 'client-hosted-browser.host-strip',
|
||||
specs: ['tests/e2e/paired-client-hosted-browser-host-strip.spec.ts'],
|
||||
matches: (file) =>
|
||||
isProductSource(file) &&
|
||||
/^src\/.*(?:[Cc]lient-?[Hh]osted-?[Bb]rowser|BrowserPaneOverlayLayer)/.test(file)
|
||||
},
|
||||
{
|
||||
// Restart survival also depends on adoption, lease/reconciliation and tab snapshots; include orca-runtime.ts despite churn because it publishes the hold flag.
|
||||
id: 'client-hosted-browser.restart-survival',
|
||||
specs: ['tests/e2e/paired-client-hosted-browser-restart-survival.spec.ts'],
|
||||
matches: (file) =>
|
||||
isProductSource(file) &&
|
||||
(file === 'src/main/runtime/browser/commands/browser-commands.ts' ||
|
||||
/^src\/.*(?:[Cc]lient-?[Hh]osted|browser-host-(?:lease|page|client-page)|browser-client-(?:host|page)|runtime-browser-(?:client-)?page|session-tabs-sync|host-session-snapshot-authority|orca-runtime\.ts|\/runtime-(?:status|types)\.ts)/.test(
|
||||
file
|
||||
))
|
||||
}
|
||||
]
|
||||
@@ -1,7 +1,6 @@
|
||||
import { readFileSync } from 'node:fs'
|
||||
import { join } from 'node:path'
|
||||
import { pathToFileURL } from 'node:url'
|
||||
import { isLayoutOracleSource } from './pr-layout-oracle-route.mjs'
|
||||
import { SHELL_PREFIXES } from './pr-shell-contract-prefixes.mjs'
|
||||
import { XTERM_PREFIXES } from './pr-xterm-patch-prefixes.mjs'
|
||||
import {
|
||||
@@ -41,7 +40,6 @@ export const PR_CHECK_JOBS = [
|
||||
'managed_hook_node18',
|
||||
'package',
|
||||
'package_windows',
|
||||
'layout_oracle',
|
||||
'dependency_isolation'
|
||||
]
|
||||
|
||||
@@ -538,8 +536,6 @@ function jobDetector(job) {
|
||||
return (files) => files.some(isLinuxPackagePath)
|
||||
case 'package_windows':
|
||||
return (files) => files.some(isWindowsPackagePath)
|
||||
case 'layout_oracle':
|
||||
return (files) => files.some(isLayoutOracleSource)
|
||||
case 'dependency_isolation':
|
||||
return (files) => files.some((file) => matchesPrefix(file, DEPENDENCY_ISOLATION_PREFIXES))
|
||||
default:
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -6,10 +6,7 @@ export const PR_EDITOR_PREVIEW_E2E_SOURCE_ROUTES = [
|
||||
{
|
||||
// Rich Markdown Find owns focus handoff and selection preservation between its inputs and the editor.
|
||||
id: 'editor.rich-markdown-find',
|
||||
specs: [
|
||||
'tests/e2e/markdown-find-adversarial.spec.ts',
|
||||
'tests/e2e/markdown-find-editing.spec.ts'
|
||||
],
|
||||
specs: ['tests/e2e/editor/markdown/markdown-find-adversarial.spec.ts'],
|
||||
matches: (file) =>
|
||||
isProductSource(file) &&
|
||||
(file.startsWith('src/renderer/src/components/editor/rich-markdown/search/') ||
|
||||
@@ -19,7 +16,7 @@ export const PR_EDITOR_PREVIEW_E2E_SOURCE_ROUTES = [
|
||||
{
|
||||
// Same-path files on two hosts must keep separate Monaco models, and each tab reads from its captured owner.
|
||||
id: 'editor.host-model-identity',
|
||||
specs: ['tests/e2e/editor-model-host-isolation.spec.ts'],
|
||||
specs: ['tests/e2e/editor/file-lifecycle/editor-model-host-isolation.spec.ts'],
|
||||
matches: (file) =>
|
||||
isProductSource(file) &&
|
||||
(file.startsWith('src/renderer/src/components/editor/model-lifetime/identity/') ||
|
||||
@@ -33,11 +30,8 @@ export const PR_EDITOR_PREVIEW_E2E_SOURCE_ROUTES = [
|
||||
// Image, PDF and media viewers read orca-media grants; the PDF reloads exercise remint and range reads.
|
||||
id: 'editor.byte-range-preview',
|
||||
specs: [
|
||||
'tests/e2e/media-preview-partition-isolation.spec.ts',
|
||||
'tests/e2e/paired-remote-large-file-open.spec.ts',
|
||||
'tests/e2e/pdf-find-counter.spec.ts',
|
||||
'tests/e2e/pdf-viewer-rebuild-recovery.spec.ts',
|
||||
'tests/e2e/pdf-viewer-reload-cleanup.spec.ts'
|
||||
'tests/e2e/editor/previews/media-preview-partition-isolation.spec.ts',
|
||||
'tests/e2e/editor/pdf/pdf-find-counter.spec.ts'
|
||||
],
|
||||
matches: (file) =>
|
||||
isProductSource(file) &&
|
||||
@@ -60,9 +54,8 @@ export const PR_EDITOR_PREVIEW_E2E_SOURCE_ROUTES = [
|
||||
{
|
||||
id: 'editor.csv-preview',
|
||||
specs: [
|
||||
'tests/e2e/csv-paged-preview.spec.ts',
|
||||
'tests/e2e/csv-table-editing.spec.ts',
|
||||
'tests/e2e/csv-url-links.spec.ts'
|
||||
'tests/e2e/editor/csv/csv-paged-preview.spec.ts',
|
||||
'tests/e2e/editor/csv/csv-url-links.spec.ts'
|
||||
],
|
||||
matches: (file) =>
|
||||
isProductSource(file) && file.startsWith('src/renderer/src/components/editor/csv/')
|
||||
|
||||
@@ -8,27 +8,21 @@ const COMPONENTS = 'src/renderer/src/components/'
|
||||
function featureRoute(id, specs, prefixes) {
|
||||
return {
|
||||
id,
|
||||
specs: specs.map((name) => `tests/e2e/${name}.spec.ts`),
|
||||
specs,
|
||||
matches: (file) => isProductSource(file) && prefixes.some((prefix) => file.startsWith(prefix))
|
||||
}
|
||||
}
|
||||
|
||||
// Feature areas whose specs the nightly suite alone used to select (gap audit, Oct 2026).
|
||||
export const PR_FEATURE_AREA_E2E_SOURCE_ROUTES = [
|
||||
featureRoute('feature.sparse-checkout', ['sparse-explorer-proof'], [`${COMPONENTS}sparse/`]),
|
||||
featureRoute(
|
||||
'feature.diff-notes',
|
||||
['diff-note-delete', 'diff-note-draft', 'diff-note-edit', 'diff-note-line-range'],
|
||||
[`${COMPONENTS}diff-comments/`]
|
||||
),
|
||||
featureRoute(
|
||||
'feature.floating-terminal',
|
||||
['floating-terminal-switch-reveal', 'floating-terminal-tab-rename-focus'],
|
||||
['tests/e2e/layout/window-tabs/floating-terminal-tab-rename-focus.spec.ts'],
|
||||
[`${COMPONENTS}floating-terminal/`]
|
||||
),
|
||||
featureRoute(
|
||||
'feature.ai-vault',
|
||||
['ai-vault-panel-search', 'ai-vault-session-delete'],
|
||||
['tests/e2e/activity/ai-vault-session-delete.spec.ts'],
|
||||
[
|
||||
'src/main/ai-vault/',
|
||||
'src/main/ai-vault-search/',
|
||||
@@ -47,7 +41,7 @@ export const PR_FEATURE_AREA_E2E_SOURCE_ROUTES = [
|
||||
),
|
||||
featureRoute(
|
||||
'feature.linear',
|
||||
['linear-issue-view-persistence', 'linear-private-images', 'linear-url-workspace-entry'],
|
||||
['tests/e2e/integrations/linear/linear-url-workspace-entry.spec.ts'],
|
||||
[
|
||||
`${COMPONENTS}task-page/linear/`,
|
||||
'src/renderer/src/store/slices/linear/',
|
||||
@@ -56,10 +50,9 @@ export const PR_FEATURE_AREA_E2E_SOURCE_ROUTES = [
|
||||
'src/shared/linear/'
|
||||
]
|
||||
),
|
||||
featureRoute('feature.tasks-page', ['tasks-page'], [`${COMPONENTS}task-page/`]),
|
||||
featureRoute(
|
||||
'feature.agent-descendant-kill',
|
||||
['agent-descendant-process-kill'],
|
||||
['tests/e2e/agents/session-lifecycle/agent-descendant-process-kill.spec.ts'],
|
||||
[
|
||||
'src/main/pty/process-retirement/pty-descendant-',
|
||||
'src/main/daemon/sessions/terminal-descendant-shutdown.ts',
|
||||
@@ -69,53 +62,29 @@ export const PR_FEATURE_AREA_E2E_SOURCE_ROUTES = [
|
||||
'src/main/claude/agent-view/'
|
||||
]
|
||||
),
|
||||
featureRoute(
|
||||
'feature.agent-permission-settings',
|
||||
['agent-auto-permissions'],
|
||||
[
|
||||
`${COMPONENTS}settings/agents/permissions/`,
|
||||
`${COMPONENTS}agent/launch-settings/AgentPermission`,
|
||||
'src/shared/agent-launch/permissions/tui-agent-permission-choice.ts',
|
||||
'src/shared/agent-launch/permissions/tui-agent-permission-lift.ts',
|
||||
'src/shared/agent-launch/choices/agent-launch-permission-updates.ts'
|
||||
]
|
||||
),
|
||||
featureRoute(
|
||||
'feature.project-groups',
|
||||
['project-group-creation-visibility', 'project-group-manual-sort'],
|
||||
['tests/e2e/workspaces/project-admission/project-group-manual-sort.spec.ts'],
|
||||
['src/main/project-groups/', 'src/renderer/src/store/project-groups/']
|
||||
),
|
||||
featureRoute(
|
||||
'feature.new-workspace',
|
||||
[
|
||||
'new-workspace-create-more',
|
||||
'new-workspace-cross-project-dialog',
|
||||
'new-workspace-linked-item-project-switch'
|
||||
'tests/e2e/workspaces/project-admission/new-workspace-cross-project-dialog.spec.ts',
|
||||
'tests/e2e/workspaces/project-admission/new-workspace-linked-item-project-switch.spec.ts'
|
||||
],
|
||||
[`${COMPONENTS}new-workspace/`]
|
||||
),
|
||||
featureRoute(
|
||||
'feature.runtime-host-status',
|
||||
['runtime-host-status-recovery'],
|
||||
[
|
||||
'src/main/ipc/runtime-environments/status/runtime-environment-status-',
|
||||
'src/renderer/src/store/slices/runtime-status/views/runtime-status-subscriptions.ts',
|
||||
'src/renderer/src/store/slices/runtime-status/',
|
||||
'src/shared/remote-runtime/host-store/runtime-environment-pairing-replace-guards.ts',
|
||||
'src/shared/remote-runtime/host-store/runtime-environment-store.ts',
|
||||
`${COMPONENTS}sidebar/workspace-card/identity/worktree-card-header-items.tsx`
|
||||
]
|
||||
),
|
||||
featureRoute(
|
||||
'feature.startup-exec-readiness',
|
||||
['paired-startup-exec-readiness'],
|
||||
['tests/e2e/remote/paired-runtime/workspace-routing/paired-startup-exec-readiness.spec.ts'],
|
||||
[
|
||||
'src/main/daemon/sessions/session-shell-ready-barrier.ts',
|
||||
'src/main/daemon/shell-readiness/',
|
||||
'src/main/pty/shell-startup/shell-prompt-readiness-probe.ts',
|
||||
'src/main/pty/shell-startup/shell-startup-output-scanner.ts',
|
||||
'src/main/pty/shell-startup/shell-templates.ts',
|
||||
'tests/e2e/helpers/startup-exec-readiness-oracle.ts'
|
||||
'tests/e2e/terminal/readiness/startup-exec-readiness-oracle.ts'
|
||||
]
|
||||
)
|
||||
]
|
||||
|
||||
@@ -1,109 +0,0 @@
|
||||
// Paths whose change runs the required `layout_oracle` job in pr.yml.
|
||||
|
||||
/** The layout oracle's two specs; the job runs both and nothing else. */
|
||||
export const LAYOUT_ORACLE_E2E_SPECS = [
|
||||
'tests/e2e/workspace-layout-oracle-headless.spec.ts',
|
||||
'tests/e2e/workspace-layout-oracle.spec.ts'
|
||||
]
|
||||
|
||||
const LAYOUT_ORACLE_PREFIXES = [
|
||||
// Layout model, persistence and compatibility folders.
|
||||
'src/shared/workspace-layout/',
|
||||
'src/shared/remote-runtime/session-graph/remote-layout-snapshot.ts',
|
||||
'src/shared/workspace-layout/terminal-topology/terminal-leaf-move.ts',
|
||||
'src/main/persistence/terminal-topology/',
|
||||
'src/main/persistence/restoring-sessions/',
|
||||
'src/main/persistence/loading-store/terminal-bindings/pty-binding-',
|
||||
'src/main/persistence/loading-store/workspace-sessions/session-host-partitions.ts',
|
||||
'src/main/persistence/loading-store/workspace-sessions/workspace-session-snapshot-publication.ts',
|
||||
'src/main/remote-layout-snapshot/',
|
||||
'src/main/runtime/old-session-tabs-stream/',
|
||||
'src/renderer/src/runtime/remote-workspace-frozen/',
|
||||
// Window-side layout writers the layout-holder stack replaces; widened while it is open.
|
||||
'src/renderer/src/store/slices/tabs',
|
||||
'src/renderer/src/store/terminals/',
|
||||
'src/renderer/src/components/sidebar/workspace-card/activity/worktree-terminal-record-selector.ts',
|
||||
'src/renderer/src/store/workspace-layout/workspace-layout-cache',
|
||||
'src/renderer/src/components/terminal-pane/',
|
||||
'src/renderer/src/components/agent-session-continuation/AgentSessionContinuationMenuItem.tsx',
|
||||
'src/renderer/src/components/terminal-pane/worker-lifetime/WorkerAutoCloseBanner.tsx',
|
||||
'src/renderer/src/attention/orca-window-foreground-focus.ts',
|
||||
'src/renderer/src/attention/notification-workspace-labels.ts',
|
||||
'src/renderer/src/lib/agent-session/identity/pane-agent-session-id.ts',
|
||||
'src/renderer/src/runtime/hosts/wsl/wsl-host-availability.ts',
|
||||
'src/renderer/src/lib/workspace/ownership/workspace-runtime-environment.ts',
|
||||
'src/renderer/src/components/tab-group/drag/tab-drag-drop-commit.ts',
|
||||
'src/renderer/src/runtime/sync-runtime-graph/use-runtime-graph-sync.ts',
|
||||
'src/renderer/src/runtime/sync-runtime-graph',
|
||||
'src/renderer/src/runtime/web-session-tabs-sync',
|
||||
// Other layout writers the stack edits.
|
||||
'src/main/ipc/pty/ipc/leaf-move.ts',
|
||||
'src/main/persistence/closed-terminal-tab-write-fence.ts',
|
||||
'src/main/runtime/workspaces/session-hosts/runtime-workspace-session-controller.ts',
|
||||
'src/main/runtime/terminal/surface/terminal-surface-close.ts',
|
||||
'src/main/runtime/terminal/output/terminal-derived-agent-facts.ts',
|
||||
'src/main/runtime/terminal/output/terminal-output-generation.ts',
|
||||
'src/main/runtime/session-graph/session-window-graph.ts',
|
||||
'src/main/runtime/session-tabs/restoration/mobile-session-hydration.ts',
|
||||
'src/main/runtime/session-tabs/restoration/mobile-session-reconciliation.ts',
|
||||
'src/main/runtime/session-tabs/restoration/mobile-session-preservation.ts',
|
||||
'src/main/runtime/workspaces/session-hosts/get-runtime-id.ts',
|
||||
'src/renderer/src/components/terminal/tab-lifecycle/terminal-tab-actions.ts',
|
||||
'src/renderer/src/runtime/web-session-tabs-sync/placement/web-runtime-tab-move-mirror.ts',
|
||||
'src/shared/rpc-contract/workspace-layout/workspace-layout-params.ts',
|
||||
'src/renderer/src/store/slices/tabs/recently-closed-tabs.ts',
|
||||
// The client the oracle reads every view through.
|
||||
'src/cli/runtime/client.ts',
|
||||
'src/shared/remote-runtime/requests/remote-runtime-request-socket.ts',
|
||||
'src/shared/remote-runtime/requests/remote-runtime-subscription-contract.ts',
|
||||
'src/shared/remote-runtime/requests/remote-runtime-subscription-transport.ts',
|
||||
'src/shared/remote-runtime/pairing/paired-runtime-connection.ts',
|
||||
'src/shared/remote-runtime/pairing/pairing.ts',
|
||||
// The harness: the oracle imports most of the shared e2e helpers, not just its own.
|
||||
'tests/e2e/workspace-layout-oracle',
|
||||
'tests/e2e/terminal-probe-input-sequence.ts',
|
||||
'tests/e2e/global-',
|
||||
'tests/e2e/helpers/',
|
||||
'tests/playwright.config.ts',
|
||||
'.github/scripts/e2e-with-window-manager.sh',
|
||||
// The job itself: the called workflow, its window-spec lane picker, and this route.
|
||||
'.github/workflows/e2e.yml',
|
||||
'.github/scripts/prepare-ubuntu-apt.sh',
|
||||
'config/scripts/ci/e2e-selection/ci-e2e-job-selection.mjs',
|
||||
'config/scripts/workflow/source-routing/pr-layout-oracle-route.mjs'
|
||||
]
|
||||
|
||||
const RUNTIME_LAYOUT_WRITERS = [
|
||||
'src/main/runtime/terminal/launch/terminal-create.ts',
|
||||
'src/main/runtime/terminal/launch/terminal-split.ts',
|
||||
'src/main/runtime/terminal/launch/terminal-split-surface.ts',
|
||||
'src/main/runtime/terminal/stop/worktree-terminal-stop.ts',
|
||||
'src/main/runtime/workspaces/workspace-file-session-targets.ts',
|
||||
'src/main/runtime/workspaces/persisted-surfaces/has-exact-persisted-terminal-surface-identity.ts',
|
||||
'src/main/runtime/terminal/adoption/runtime-terminal-orphan-adoption.ts',
|
||||
'src/main/runtime/terminal/adoption/adopt-terminal-orphans-from-inventory.ts',
|
||||
'src/main/runtime/session-tabs/restoration/mobile-session-membership.ts',
|
||||
'src/main/runtime/session-tabs/publication/pty-backed-session-publication.ts'
|
||||
]
|
||||
|
||||
// Runtime matches only the modules that create, move, close, persist or publish layout.
|
||||
const LAYOUT_ORACLE_RUNTIME_MODULE =
|
||||
/^src\/(?:main|renderer\/src)\/runtime\/(?:[^/]+\/)*[^/]*(?:pane-admission|workspace-layout|session-tab|headless-[^/]*tab|layout-client|layout-command-router|layout-projection|create-terminal|split-terminal|split-pty-backed-terminal|terminal-split-layout|spawn-placement|sync-window-graph|runtime-graph|leaf-move)[^/]*\.ts$/
|
||||
|
||||
// Why fixtures only under src/: there they serve unit tests; e2e fixtures are the oracle's harness.
|
||||
const TEST_SUPPORT =
|
||||
/\.(?:test|spec)\.(?:[cm]?js|tsx?)$|\/__tests__\/|^src\/.*-fixtures?\.ts$|-test-harness\.tsx?$/
|
||||
|
||||
export function isLayoutOracleSource(file) {
|
||||
if (LAYOUT_ORACLE_E2E_SPECS.includes(file)) {
|
||||
return true
|
||||
}
|
||||
if (TEST_SUPPORT.test(file)) {
|
||||
return false
|
||||
}
|
||||
return (
|
||||
RUNTIME_LAYOUT_WRITERS.includes(file) ||
|
||||
LAYOUT_ORACLE_PREFIXES.some((prefix) => file.startsWith(prefix)) ||
|
||||
LAYOUT_ORACLE_RUNTIME_MODULE.test(file)
|
||||
)
|
||||
}
|
||||
@@ -2,10 +2,6 @@ import { isUnitTestSupportSource } from './pr-code-change-scope.mjs'
|
||||
|
||||
const isProductSource = (file) => !/\.test\.tsx?$/.test(file) && !isUnitTestSupportSource(file)
|
||||
|
||||
/** Plugin system sources; every product file here (outside `__mocks__`) routes to a plugin spec. */
|
||||
export const PLUGIN_SYSTEM_SOURCE =
|
||||
/^src\/(?:renderer\/src\/(?:components\/plugins\/|store\/plugin-)|main\/plugins\/|shared\/plugins\/)/
|
||||
|
||||
const UI = 'src\\/renderer\\/src\\/components\\/plugins\\/'
|
||||
const STORE = 'src\\/renderer\\/src\\/store\\/plugin-'
|
||||
|
||||
@@ -13,79 +9,29 @@ const STORE = 'src\\/renderer\\/src\\/store\\/plugin-'
|
||||
function pluginRoute(id, specs, pattern, helpers) {
|
||||
return {
|
||||
id,
|
||||
specs: specs.map((name) => `tests/e2e/${name}.spec.ts`),
|
||||
specs,
|
||||
matches: (file) =>
|
||||
(helpers !== undefined &&
|
||||
new RegExp(`^tests\\/e2e\\/helpers\\/(?:${helpers})\\.ts$`).test(file)) ||
|
||||
(helpers !== undefined && helpers.includes(file)) ||
|
||||
(isProductSource(file) && new RegExp(`^(?:${pattern})`).test(file))
|
||||
}
|
||||
}
|
||||
|
||||
const SPECIFIC_PLUGIN_ROUTES = [
|
||||
// #36218 broke review/list/dialog flows with no plugin spec selected.
|
||||
pluginRoute(
|
||||
'plugins.update-review',
|
||||
['plugin-update-review', 'plugin-update-review-toast'],
|
||||
[
|
||||
`${UI}(?:review\\/|list\\/|dialogs\\/Plugin(?:UpdateAll|Remove)Dialog)`,
|
||||
`${UI}state\\/use-plugin-(?:review-queue|update-dialog|page-model)`,
|
||||
`${UI}presentation\\/plugin-(?:publisher-trust|consent-copy|access-profile|capability-presentation)`,
|
||||
`${STORE}(?:update-review-toast|auto-updates)`,
|
||||
'src\\/main\\/plugins\\/catalog\\/plugin-(?:auto-updater|update-approval|update-review-notices|release-first-seen-store)',
|
||||
'src\\/shared\\/plugins\\/(?:approval\\/|catalog\\/plugin-update-policy|contributions\\/plugin-contribution-summary)'
|
||||
].join('|'),
|
||||
'plugin-git-fixture|plugin-update-catalog-fixture'
|
||||
),
|
||||
pluginRoute(
|
||||
'plugins.catalog-and-page',
|
||||
['plugin-install-link'],
|
||||
[
|
||||
`${UI}(?:catalog\\/|list\\/|page\\/|PluginContributionIcon|dialogs\\/Plugin(?:Install|CatalogLink|MarketplaceSource)Dialog)`,
|
||||
`${UI}state\\/use-plugin-(?:catalog|install-link|install-action|marketplace-lifecycle|page-navigation|page-model|hover-prefetch|in-use|art-palettes|contribution-source)`,
|
||||
`${UI}(?:state\\/plugin-preview-cache|presentation\\/plugin-(?:status-presentation|install-source|release-date|contributions|error-presentation))`,
|
||||
`${STORE}content-list-store`,
|
||||
'src\\/main\\/plugins\\/(?:installation\\/|catalog\\/plugin-(?:marketplace-|catalog-|one-click-enable|community-marketplace-seed|kill-list-))',
|
||||
'src\\/main\\/plugins\\/(?:discovery\\/plugin-(?:list-projection|client-list)|media\\/plugin-image-)',
|
||||
'src\\/shared\\/plugins\\/(?:catalog\\/|installation\\/|images\\/|plugin-list-entry|contributions\\/plugin-contribution-(?:summary|points))'
|
||||
].join('|'),
|
||||
'plugin-git-fixture|plugin-gleam-catalog-fixture'
|
||||
),
|
||||
pluginRoute(
|
||||
'plugins.try-it',
|
||||
['plugin-try-it'],
|
||||
[
|
||||
`${UI}state\\/(?:plugin-try-action|plugin-action-toast|use-plugin-install-action)`,
|
||||
`${STORE}preview-request`
|
||||
].join('|'),
|
||||
'plugin-git-fixture|plugin-gleam-catalog-fixture|plugin-smoke|plugin-frame-guest'
|
||||
),
|
||||
pluginRoute(
|
||||
'plugins.custom-editors-and-new-files',
|
||||
['plugin-custom-editor', 'plugin-new-file'],
|
||||
['tests/e2e/plugins/plugin-new-file.spec.ts'],
|
||||
[
|
||||
`${UI}page\\/PluginContributionActionNewFile`,
|
||||
`${STORE}(?:custom-editors|new-files)`,
|
||||
'src\\/main\\/plugins\\/contributions\\/plugin-new-file-template',
|
||||
'src\\/shared\\/plugins\\/(?:contributions\\/plugin-(?:custom-editor-contribution|new-file-contribution)|frames\\/plugin-custom-editor-bridge)'
|
||||
].join('|'),
|
||||
'plugin-smoke|plugin-frame-guest'
|
||||
),
|
||||
pluginRoute(
|
||||
'plugins.panels-and-workers',
|
||||
['plugin-demo', 'plugin-panel-containment'],
|
||||
[
|
||||
`${UI}(?:page\\/PluginContributionAction(?:Panel|Command|Events)|state\\/use-plugin-logs)`,
|
||||
`${STORE}panels`,
|
||||
'src\\/main\\/plugins\\/(?:panels\\/|workers\\/|commands\\/plugin-command-|events\\/plugin-(?:event-delivery|agent-status-event)|storage\\/plugin-(?:storage-store|secrets-store)|logging\\/plugin-log-buffer)',
|
||||
'src\\/shared\\/plugins\\/(?:frames\\/|workers\\/|events\\/|capabilities\\/|contributions\\/plugin-(?:command-|event-|panel-|execution-profile))',
|
||||
'examples\\/plugins\\/(?:hello-orca|test-fixtures\\/hostile-panel)\\/'
|
||||
].join('|'),
|
||||
'plugin-panel-navigation-observer|plugin-frame-guest'
|
||||
['tests/e2e/plugins/plugin-frame-guest.ts', 'tests/e2e/plugins/plugin-smoke.ts']
|
||||
),
|
||||
// Desktop frames are isolated <webview> guests; a regression here breaks every frame on desktop.
|
||||
pluginRoute(
|
||||
'plugins.isolated-frames',
|
||||
['plugin-isolated-frame', 'plugin-panel-containment'],
|
||||
['tests/e2e/plugins/plugin-isolated-frame.spec.ts'],
|
||||
[
|
||||
'src\\/main\\/plugins\\/panels\\/(?:frame-serving\\/|guest-isolation\\/|desktop-actions\\/)?plugin-frame-',
|
||||
'src\\/shared\\/plugins\\/frames\\/plugin-(?:frame-guest|panel-shell)',
|
||||
@@ -98,124 +44,33 @@ const SPECIFIC_PLUGIN_ROUTES = [
|
||||
'src\\/renderer\\/src\\/components\\/(?:plugins\\/frames\\/|right-sidebar\\/plugin-panels\\/PluginPanel\\.tsx$)',
|
||||
'src\\/renderer\\/src\\/components\\/editor\\/plugin-editors\\/(?:PluginCustomEditorFrame\\.tsx$|plugin-custom-editor-host)'
|
||||
].join('|'),
|
||||
'plugin-frame-guest|plugin-smoke'
|
||||
['tests/e2e/plugins/plugin-frame-guest.ts', 'tests/e2e/plugins/plugin-smoke.ts']
|
||||
),
|
||||
pluginRoute(
|
||||
'plugins.declarative-panels',
|
||||
['plugin-declarative-panel'],
|
||||
['tests/e2e/plugins/plugin-declarative-panel.spec.ts'],
|
||||
[
|
||||
`${UI}(?:declarative\\/|plugin-icon-glyphs\\.ts$)`,
|
||||
'src\\/shared\\/plugins\\/(?:declarative\\/|frames\\/plugin-declarative-)',
|
||||
'src\\/renderer\\/src\\/components\\/right-sidebar\\/plugin-panels\\/declarative\\/(?:PluginDeclarativePanel|use-plugin-declarative-|plugin-declarative-)',
|
||||
'resources\\/plugins\\/declarative\\/'
|
||||
].join('|'),
|
||||
'plugin-frame-guest|plugin-smoke'
|
||||
),
|
||||
// Build-less TS/TSX: the frame protocol transpiles source modules and resolves their imports.
|
||||
pluginRoute(
|
||||
'plugins.buildless-tsx',
|
||||
['plugin-buildless-tsx'],
|
||||
[
|
||||
'src\\/main\\/plugins\\/panels\\/(?:frame-serving\\/)?plugin-frame-(?:module-|source-serving|protocol\\.ts$)',
|
||||
'src\\/main\\/plugins\\/artifacts\\/plugin-content-hash',
|
||||
'src\\/shared\\/plugins\\/frames\\/plugin-frame-source-modules',
|
||||
'src\\/cli\\/plugins\\/authoring\\/plugin-(?:type-files|components-template)',
|
||||
'examples\\/plugins\\/hello-tsx\\/'
|
||||
].join('|'),
|
||||
'plugin-frame-guest|plugin-smoke'
|
||||
),
|
||||
// Dev hot reload of components panels: memory atoms carried over, last good tree kept on errors.
|
||||
pluginRoute(
|
||||
'plugins.components-hot-reload',
|
||||
['plugin-components-hot-reload'],
|
||||
[
|
||||
'src\\/shared\\/plugins\\/declarative\\/(?:plugin-declarative-message|runtime\\/declarative-(?:atoms|memory-retention|error-location|panel-context|renderer))',
|
||||
'src\\/shared\\/plugins\\/frames\\/plugin-(?:declarative-host-document|frame-bridge)',
|
||||
'src\\/renderer\\/src\\/components\\/right-sidebar\\/plugin-panels\\/(?:PluginPanel\\.tsx$|declarative\\/(?:PluginDeclarativePanel|use-plugin-declarative-(?:state|tree)|plugin-declarative-retained-memory))',
|
||||
'src\\/main\\/plugins\\/(?:development\\/plugin-dev-|panels\\/guest-isolation\\/plugin-frame-guest-sessions)',
|
||||
'resources\\/plugins\\/declarative\\/'
|
||||
].join('|'),
|
||||
'plugin-frame-guest|plugin-smoke'
|
||||
['tests/e2e/plugins/plugin-frame-guest.ts', 'tests/e2e/plugins/plugin-smoke.ts']
|
||||
),
|
||||
// Agents and workspace changes in panels: agents.list, terminal ids on agent events.
|
||||
pluginRoute(
|
||||
'plugins.panel-agents',
|
||||
['plugin-panel-agents'],
|
||||
['tests/e2e/plugins/plugin-panel-agents.spec.ts'],
|
||||
[
|
||||
'src\\/main\\/plugins\\/(?:runtime\\/plugin-runtime-binding|events\\/plugin-agent-status-event|workers\\/host-api\\/plugin-workspace-projection)',
|
||||
'src\\/shared\\/plugins\\/events\\/plugin-events'
|
||||
].join('|'),
|
||||
'plugin-frame-guest|plugin-smoke|agent-hook-endpoint'
|
||||
),
|
||||
// A panel and its own worker: requests, posts, storage, settings and pushes.
|
||||
pluginRoute(
|
||||
'plugins.worker-panel',
|
||||
['plugin-worker-panel'],
|
||||
[
|
||||
'src\\/main\\/plugins\\/panels\\/plugin-panel-bridge',
|
||||
'src\\/main\\/plugins\\/(?:storage\\/plugin-declared-settings|workers\\/(?:plugin-worker-orca-api|host-api\\/plugin-host-panel-method-bindings|parent-process\\/plugin-worker-requests))',
|
||||
'src\\/main\\/ipc\\/plugin-(?:panel-push|settings)-ipc',
|
||||
'src\\/shared\\/plugins\\/(?:workers\\/plugin-panel-bridge-protocol|frames\\/plugin-panel-shell-facades|contributions\\/plugin-settings-)',
|
||||
'src\\/shared\\/plugins\\/declarative\\/runtime\\/declarative-(?:data-sdk|storage-sync)',
|
||||
'src\\/renderer\\/src\\/components\\/plugins\\/(?:page\\/PluginSettingsSection|state\\/use-plugin-declared-settings)',
|
||||
'examples\\/plugins\\/hello-worker-panel\\/'
|
||||
].join('|'),
|
||||
'plugin-frame-guest|plugin-smoke'
|
||||
),
|
||||
// `orca plugin open` / `shot`: renderer reveal, draw wait and main's capture of the panel rect.
|
||||
pluginRoute(
|
||||
'plugins.view-shot',
|
||||
['plugin-shot', 'plugin-shot-editor'],
|
||||
[
|
||||
`${UI}view\\/(?!PluginShotReplay|plugin-view-replay)`,
|
||||
`${STORE}view-capture`,
|
||||
'src\\/(?:main\\/plugins\\/view\\/(?!plugin-view-replay)|shared\\/plugins\\/view\\/)',
|
||||
'src\\/main\\/runtime\\/rpc\\/methods\\/plugin-view',
|
||||
// Every `plugin shot` checks for a chrome region and resolves the default shots folder.
|
||||
'src\\/cli\\/(?:plugins\\/view\\/plugin-(?:view|shot-chrome|shot-default-dir)|specs\\/plugin-view)',
|
||||
'src\\/renderer\\/src\\/(?:components\\/plugins\\/view\\/plugin-view-ipc-bridge|hooks\\/theme\\/use-document-dark-theme)',
|
||||
'src\\/renderer\\/src\\/components\\/right-sidebar\\/(?:plugin-panels\\/health\\/(?:plugin-panel-draw-status|use-plugin-panel-draw-report)|right-sidebar-panel-content)'
|
||||
].join('|'),
|
||||
'plugin-frame-guest|plugin-smoke|compiled-orca-cli'
|
||||
),
|
||||
// `shot --scenario`: the check child draws the tree, then the renderer replays it.
|
||||
pluginRoute(
|
||||
'plugins.view-shot-scenario',
|
||||
['plugin-shot'],
|
||||
[
|
||||
`${UI}view\\/(?:PluginShotReplay|plugin-view-replay)`,
|
||||
`${STORE}shot-replay`,
|
||||
'src\\/main\\/plugins\\/view\\/plugin-view-replay',
|
||||
'src\\/main\\/plugins\\/testing\\/plugin-test-(?:hooks|register)',
|
||||
'src\\/cli\\/(?:plugins\\/view|specs)\\/plugin-shot-scenario',
|
||||
'src\\/cli\\/plugins\\/authoring\\/plugin-(?:panel-check|test-runner|test-node)'
|
||||
].join('|')
|
||||
),
|
||||
pluginRoute(
|
||||
'plugins.view-shot-editor',
|
||||
['plugin-shot-editor'],
|
||||
'src\\/cli\\/plugins\\/view\\/plugin-shot-editor'
|
||||
),
|
||||
pluginRoute(
|
||||
'plugins.startup-and-manifest',
|
||||
['plugin-demo'],
|
||||
[
|
||||
'src\\/main\\/plugins\\/(?:plugin-service|development\\/plugin-(?:service-housekeeping|dev-)|runtime\\/plugin-service-host-call|discovery\\/plugin-discovery|activation\\/plugin-(?:enablement|activation-policy|refresh-settlement)|bootstrap\\/plugin-bundled-bootstrap|media\\/plugin-manifest-images|artifacts\\/plugin-(?:manifest-|content-|declarative-content-integrity))',
|
||||
'src\\/shared\\/plugins\\/(?:manifest\\/|approval\\/plugin-consent-|plugin-system-settings)'
|
||||
].join('|')
|
||||
'tests/e2e/agents/session-fixtures/agent-hook-endpoint.ts',
|
||||
'tests/e2e/plugins/plugin-frame-guest.ts',
|
||||
'tests/e2e/plugins/plugin-smoke.ts'
|
||||
]
|
||||
)
|
||||
]
|
||||
|
||||
export const PR_PLUGIN_E2E_SOURCE_ROUTES = [
|
||||
...SPECIFIC_PLUGIN_ROUTES,
|
||||
{
|
||||
// New or unlisted plugin sources still run the broadest single plugin journey.
|
||||
id: 'plugins.unrouted-source',
|
||||
specs: ['tests/e2e/plugin-demo.spec.ts'],
|
||||
matches: (file) =>
|
||||
isProductSource(file) &&
|
||||
PLUGIN_SYSTEM_SOURCE.test(file) &&
|
||||
!file.includes('/__mocks__/') &&
|
||||
!SPECIFIC_PLUGIN_ROUTES.some((route) => route.matches(file))
|
||||
}
|
||||
]
|
||||
export const PR_PLUGIN_E2E_SOURCE_ROUTES = [...SPECIFIC_PLUGIN_ROUTES]
|
||||
|
||||
@@ -5,36 +5,27 @@ const isProductSource = (file) => !/\.test\.tsx?$/.test(file) && !isUnitTestSupp
|
||||
export const PR_WSL_E2E_SOURCE_ROUTES = [
|
||||
{
|
||||
id: 'wsl-host.fake-connector',
|
||||
specs: ['tests/e2e/wsl-host-fake-transport.spec.ts', 'tests/e2e/wsl-host-chat.spec.ts'],
|
||||
specs: ['tests/e2e/remote/wsl-hosts/wsl-host-fake-transport.spec.ts'],
|
||||
matches: (file) => file === 'src/main/wsl/host-lifecycle/wsl-host-e2e-fake-connector.ts'
|
||||
},
|
||||
{
|
||||
// Remove runs through the fake transport spec; its peer check asks the server who else uses it.
|
||||
id: 'wsl-host.remove',
|
||||
specs: ['tests/e2e/wsl-host-fake-transport.spec.ts'],
|
||||
specs: ['tests/e2e/remote/wsl-hosts/wsl-host-fake-transport.spec.ts'],
|
||||
matches: (file) =>
|
||||
/^src\/main\/wsl\/host-lifecycle\/(?:wsl-host-server-stop|wsl-host-peer-desktops|wsl-host-removal)\.ts$/.test(
|
||||
file
|
||||
)
|
||||
},
|
||||
{
|
||||
// Startup recovery decides which journaled moves still fence after a restart.
|
||||
id: 'wsl-move.fence',
|
||||
specs: ['tests/e2e/wsl-move-fence.spec.ts'],
|
||||
matches: (file) =>
|
||||
/^src\/(?:main\/(?:persistence\/moving-wsl-projects\/(?:quiescence\/wsl-move-(?:scope-guard|fence)|cutover-recovery\/wsl-move-(?:reset|cutover-journal)|startup\/wsl-move-(?:startup|startup-rewrite))|ipc\/pty\/host-env\/spawn-cwd|wsl\/host-lifecycle\/wsl-host-gate(?:-startup)?)|shared\/wsl-move\/wsl-move-cutover)\.ts$/.test(
|
||||
file
|
||||
)
|
||||
},
|
||||
{
|
||||
id: 'terminal.windows-wsl-launch-and-paste',
|
||||
specs: [
|
||||
'tests/e2e/golden-tab-bar-agent-launch.spec.ts',
|
||||
'tests/e2e/terminal-windows-shell-paste-ownership.spec.ts'
|
||||
'tests/e2e/golden-journeys/golden-tab-bar-agent-launch.spec.ts',
|
||||
'tests/e2e/terminal/input/terminal-windows-shell-paste-ownership.spec.ts'
|
||||
],
|
||||
matches: (file) =>
|
||||
isProductSource(file) &&
|
||||
/^(?:config\/scripts\/(?:runtime-verification\/participation\/)?(?:verify-wsl-e2e-participation|verify-wsl-no-background-boot-participation|verify-playwright-participation)\.mjs$|config\/scripts\/(?:runtime-verification\/participation\/)?runtime-verification\/participation\/verify-playwright-participation\.mjs$|src\/main\/(?:wsl[/-]|pty\/.*wsl|providers\/wsl)|src\/shared\/(?:wsl-|shell\/launch\/(?:windows-terminal-shell|shell-argument-quoting))|src\/renderer\/src\/.*(?:terminal-paste|pty-paste)|tests\/e2e\/(?:golden-tab-bar-agent-launch\.spec|terminal-windows-shell-paste-ownership\.spec|terminal-inline-images-windows\.spec|wsl-bridge-no-background-boot\.spec|helpers\/(?:wsl-golden-stub-agent|golden-stub-agent))|\.github\/(?:actions\/setup-wsl-test-runtime\/|workflows\/windows-wsl-e2e\.yml))/.test(
|
||||
/(?:^(?:config\/scripts\/(?:runtime-verification\/participation\/)?(?:verify-wsl-e2e-participation|verify-wsl-no-background-boot-participation|verify-playwright-participation)\.mjs$|config\/scripts\/(?:runtime-verification\/participation\/)?runtime-verification\/participation\/verify-playwright-participation\.mjs$|src\/main\/(?:wsl[/-]|pty\/.*wsl|providers\/wsl)|src\/shared\/(?:wsl-|shell\/launch\/(?:windows-terminal-shell|shell-argument-quoting))|src\/renderer\/src\/.*(?:terminal-paste|pty-paste)|\.github\/(?:actions\/setup-wsl-test-runtime\/|workflows\/windows-wsl-e2e\.yml))|^(?:tests\/e2e\/golden-journeys\/golden-stub-agent\.ts|tests\/e2e\/golden-journeys\/golden-tab-bar-agent-launch\.spec\.ts|tests\/e2e\/remote\/wsl-hosts\/wsl-bridge-no-background-boot\.spec\.ts|tests\/e2e\/remote\/wsl-hosts\/wsl-golden-stub-agent\.ts|tests\/e2e\/terminal\/input\/terminal-windows-shell-paste-ownership\.spec\.ts)$)/.test(
|
||||
file
|
||||
)
|
||||
}
|
||||
|
||||
@@ -58,8 +58,9 @@ this benchmark's scope.
|
||||
|
||||
The deterministic contract runs in `pnpm test:perf:contracts`. Broader coverage
|
||||
uses the shared/native-chat and renderer/native-chat suites, provider transcript
|
||||
reader suites, and `tests/e2e/native-chat-tool-pairing.spec.ts` for hidden
|
||||
Electron rendering and output ownership.
|
||||
reader suites. The rendered tool-pairing program was retired; its hidden Electron
|
||||
rendering and output-ownership alarms have no equivalent replacement. Historical
|
||||
rendered measurements below retain their original scope.
|
||||
|
||||
## Full folding, allocation, and mobile disclosure
|
||||
|
||||
|
||||
@@ -1,60 +1,12 @@
|
||||
# Terminal perf suite
|
||||
# Terminal perf reports
|
||||
|
||||
An on-demand Electron benchmark of terminal typing latency, frame timing,
|
||||
output backpressure and hidden-pane restore. It drives the real renderer with
|
||||
synthetic OpenCode-style redraw load across many panes and workspaces. It does
|
||||
not run on PRs or on a schedule; run it before and after terminal rendering,
|
||||
PTY, scheduler or xterm changes.
|
||||
The rendered terminal perf programs, scale runner and on-demand workflow were retired.
|
||||
Their previous alarms have no equivalent replacement or current passing benchmark.
|
||||
Existing reports can still be inspected with `test:e2e:terminal-perf:summarize`,
|
||||
`test:e2e:terminal-perf:check-report` and `test:e2e:terminal-perf:html-report`.
|
||||
These tools analyze historical input; they do not execute a new benchmark.
|
||||
|
||||
## Run locally
|
||||
|
||||
```sh
|
||||
# Smaller suite: typing latency, foreground redraw, output scheduler, hidden TUI restore.
|
||||
ORCA_BACKGROUND_LAUNCH=1 pnpm test:e2e:terminal-perf
|
||||
|
||||
# Scale suite with JSON report, budget check and HTML report.
|
||||
npx electron-vite build --mode e2e
|
||||
ORCA_BACKGROUND_LAUNCH=1 SKIP_BUILD=1 pnpm test:e2e:terminal-perf:scale:report
|
||||
```
|
||||
|
||||
On Linux, wrap the commands in `xvfb-run --auto-servernum` to keep windows off
|
||||
your desktop. Do not set `ORCA_E2E_TERMINAL_PERF_XVFB` locally: it presents
|
||||
frames on a GitHub-hosted Xvfb display and throws anywhere else.
|
||||
|
||||
Pass Playwright arguments after `--`, for example
|
||||
`pnpm test:e2e:terminal-perf:scale:report -- --grep "cross-workspace"`.
|
||||
|
||||
## Outputs
|
||||
|
||||
- `test-results/terminal-scale-perf-report.json`: the Playwright JSON report
|
||||
(change with `--report <path>` or `ORCA_E2E_TERMINAL_PERF_REPORT_PATH`).
|
||||
- A summary table on stdout (`test:e2e:terminal-perf:summarize <report>`).
|
||||
- A budget check (`test:e2e:terminal-perf:check-report <report>`); budgets live
|
||||
in `config/scripts/performance/terminal-reporting/terminal-perf-report-budgets.mjs`.
|
||||
- `test-results/terminal-perf-impact-report.html`
|
||||
(`ORCA_E2E_TERMINAL_PERF_HTML_REPORT_PATH`).
|
||||
|
||||
Compare reports from the base and candidate commits on the same machine; the
|
||||
absolute numbers depend on hardware and display.
|
||||
|
||||
## Load knobs
|
||||
|
||||
| Variable | Default |
|
||||
| ----------------------------------------------- | -------------- |
|
||||
| `ORCA_E2E_OPENCODE_SCALE_PANES` | `10,25,50,100` |
|
||||
| `ORCA_E2E_OPENCODE_SCALE_CROSS_WORKSPACE_PANES` | `10,25,50,100` |
|
||||
| `ORCA_E2E_OPENCODE_SCALE_PRESSURE_PANES` | `25,50` |
|
||||
| `ORCA_E2E_OPENCODE_SCALE_HIDDEN_PRESSURE_PANES` | `25` |
|
||||
| `ORCA_E2E_OPENCODE_FRAME_COUNT` | `60` |
|
||||
| `ORCA_E2E_OPENCODE_FRAME_INTERVAL_MS` | spec default |
|
||||
| `ORCA_E2E_OPENCODE_PRESSURE_OUTPUT_CHARS` | spec default |
|
||||
|
||||
## Run in CI
|
||||
|
||||
Dispatch **Terminal Perf** (`.github/workflows/terminal-perf.yml`) from the
|
||||
Actions tab or with `gh workflow run terminal-perf.yml -f ref=<branch>`. Its
|
||||
inputs mirror the knobs above. It runs on a free GitHub-hosted runner and
|
||||
uploads the JSON report, plus Playwright traces on failure.
|
||||
## Historical runs
|
||||
|
||||
The nightly schedule was removed on 2026-10-28. It had failed every night since
|
||||
at least 2026-10-18 because the workflow ran on Blacksmith, which the
|
||||
|
||||
+5
-15
@@ -178,23 +178,14 @@
|
||||
"build:mac:release": "node config/scripts/desktop-distribution/macos/verify-macos-release-env.mjs && ORCA_MAC_RELEASE=1 pnpm run build:desktop && ORCA_MAC_RELEASE=1 pnpm run build:computer-macos && ORCA_MAC_RELEASE=1 pnpm run build:keyboard-layout-macos && ORCA_MAC_RELEASE=1 pnpm run build:process-footprint-macos && ORCA_MAC_RELEASE=1 pnpm run build:notification-status-macos && pnpm run ensure:electron-runtime && ORCA_MAC_RELEASE=1 electron-builder --config config/electron-builder.config.cjs --mac",
|
||||
"build:linux": "pnpm run build:desktop && pnpm run ensure:electron-runtime && node config/scripts/desktop-distribution/linux/build-linux-local.mjs",
|
||||
"test:e2e": "pnpm run ensure:electron-runtime && npx playwright test --config tests/playwright.config.ts --project=electron-headless",
|
||||
"test:e2e:workspace-session-golden": "pnpm run ensure:electron-runtime && npx playwright test tests/e2e/golden-quit-relaunch-session.spec.ts tests/e2e/golden-terminal-file-link.spec.ts tests/e2e/golden-worktree-create-switch.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1",
|
||||
"test:e2e:multi-client-navigation": "node config/scripts/ci/e2e-selection/run-multi-client-navigation-e2e.mjs",
|
||||
"test:e2e:terminal-layout-parity": "node config/scripts/runtime-verification/terminal-e2e/run-terminal-layout-parity.mjs",
|
||||
"test:e2e:floating-mobile-emulator": "pnpm run ensure:electron-runtime && npx playwright test tests/e2e/floating-mobile-emulator-tab.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1",
|
||||
"test:e2e:terminal-rendering-golden": "pnpm run ensure:electron-runtime && npx playwright test tests/e2e/terminal-raw-emoji-table-scroll-restore.spec.ts --grep @terminal-rendering-golden --config tests/playwright.config.ts --project electron-headless --project electron-headful --workers=1",
|
||||
"test:e2e:source-control-golden": "pnpm run ensure:electron-runtime && npx playwright test tests/e2e/golden-file-open-edit-save.spec.ts tests/e2e/golden-source-control-commit.spec.ts tests/e2e/golden-source-control-open-diff.spec.ts --grep @golden --config tests/playwright.config.ts --project electron-headless --workers=1",
|
||||
"test:e2e:posix-profile-index-golden": "pnpm run ensure:electron-runtime && npx playwright test tests/e2e/golden-posix-profile-index-fsync.spec.ts --grep @posix-profile-index-golden --config tests/playwright.config.ts --project electron-headless --workers=1",
|
||||
"test:e2e:agent-tui-golden": "pnpm run ensure:electron-runtime && npx playwright test tests/e2e/golden-agent-tui-launch.spec.ts tests/e2e/golden-shell-after-agent-exit.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1",
|
||||
"test:e2e:tab-bar-agent-launch-golden": "pnpm run ensure:electron-runtime && npx playwright test tests/e2e/golden-tab-bar-agent-launch.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1",
|
||||
"test:e2e:terminal-rendering-release-evidence": "pnpm run ensure:electron-runtime && npx playwright test tests/e2e/terminal-opencode-emoji-table-rendering.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=2",
|
||||
"test:e2e:terminal-perf": "pnpm run ensure:electron-runtime && npx playwright test tests/e2e/terminal-output-scheduler.spec.ts tests/e2e/terminal-hidden-tui-visual-restore.spec.ts tests/e2e/artificial-opencode-terminal-load.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=2",
|
||||
"test:e2e:terminal-perf:scale": "pnpm run ensure:electron-runtime && node config/scripts/runtime-verification/terminal-e2e/run-terminal-scale-perf-e2e.mjs",
|
||||
"test:e2e:terminal-perf:scale:report": "pnpm run ensure:electron-runtime && node config/scripts/runtime-verification/terminal-e2e/run-terminal-scale-perf-report-gate.mjs",
|
||||
"test:e2e:workspace-session-golden": "pnpm run ensure:electron-runtime && npx playwright test tests/e2e/golden-journeys/golden-worktree-create-switch.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1",
|
||||
"test:e2e:source-control-golden": "pnpm run ensure:electron-runtime && npx playwright test tests/e2e/golden-journeys/golden-file-open-edit-save.spec.ts tests/e2e/golden-journeys/golden-source-control-commit.spec.ts tests/e2e/golden-journeys/golden-source-control-open-diff.spec.ts --grep @golden --config tests/playwright.config.ts --project electron-headless --workers=1",
|
||||
"test:e2e:posix-profile-index-golden": "pnpm run ensure:electron-runtime && npx playwright test tests/e2e/golden-journeys/golden-posix-profile-index-fsync.spec.ts --grep @posix-profile-index-golden --config tests/playwright.config.ts --project electron-headless --workers=1",
|
||||
"test:e2e:agent-tui-golden": "pnpm run ensure:electron-runtime && npx playwright test tests/e2e/golden-journeys/golden-agent-tui-launch.spec.ts tests/e2e/golden-journeys/golden-shell-after-agent-exit.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1",
|
||||
"test:e2e:tab-bar-agent-launch-golden": "pnpm run ensure:electron-runtime && npx playwright test tests/e2e/golden-journeys/golden-tab-bar-agent-launch.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1",
|
||||
"test:e2e:terminal-perf:check-report": "node config/scripts/performance/terminal-reporting/check-terminal-perf-report-budgets.mjs",
|
||||
"test:e2e:terminal-perf:summarize": "node config/scripts/performance/terminal-reporting/summarize-terminal-perf-report.mjs",
|
||||
"test:e2e:terminal-perf:html-report": "node config/scripts/performance/terminal-reporting/generate-terminal-perf-html-report.mjs",
|
||||
"test:e2e:source-control-scale": "pnpm run ensure:electron-runtime && npx playwright test tests/e2e/source-control-large-file-count.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1",
|
||||
"win-update-e2e": "node tests/tools/win-update-e2e/run.mjs",
|
||||
"win-crash-survival-e2e": "node tests/tools/win-crash-survival-e2e/run.mjs",
|
||||
"smoke:windows-pty-native-capability": "node tests/tools/windows-pty-native-capability-smoke/run.mjs",
|
||||
@@ -219,7 +210,6 @@
|
||||
"bench:cold-park-reveal": "pnpm run ensure:electron-runtime && node tests/tools/benchmarks/terminal-cold-park-reveal-bench.mjs",
|
||||
"bench:cold-park-resource": "pnpm run ensure:electron-runtime && node tests/tools/benchmarks/terminal-cold-park-resource-bench.mjs",
|
||||
"bench:compare": "node config/scripts/performance/measurement/compare-benchmark-artifacts.mjs",
|
||||
"test:e2e:remote-bulk-open-freeze": "pnpm run ensure:electron-runtime && pnpm exec playwright test tests/e2e/remote-session-bulk-open-freeze-repro.spec.ts --config tests/playwright.config.ts --project electron-headless --workers=1",
|
||||
"repro:live-remote-bulk-open-freeze": "node config/scripts/diagnostics/remote-freeze/live-remote-bulk-open-freeze-repro.mjs",
|
||||
"repro:live-remote-realistic-freeze": "node config/scripts/diagnostics/remote-freeze/live-remote-realistic-freeze-repro.mjs",
|
||||
"audit:anti-slop": "node config/scripts/static-analysis/oxlint-contracts/sync-anti-slop-plugin.mjs && bun --smol node_modules/oxlint/bin/oxlint --config config/oxlint-anti-slop.json src config tests mobile --deny-warnings",
|
||||
|
||||
@@ -16,7 +16,10 @@ import { AgentBrowserBridgeTabs } from '../session-routing/agent-browser-bridge-
|
||||
import { assertRemoteCliBrowserAccess } from '../../../runtime/desktop-browser-bridge/remote-cli-browser-scope'
|
||||
import { assertExpectedPageUrlForStep } from '../../cdp/input/browser-expected-page-url'
|
||||
import { ORCA_TAB_SESSION_PREFIX } from '../session-lifecycle/agent-browser-session-name'
|
||||
import { canSkipAgentBrowserSessionReset } from '../session-lifecycle/agent-browser-session-reset'
|
||||
import {
|
||||
canSkipAgentBrowserSessionReset,
|
||||
waitForAgentBrowserSessionExit
|
||||
} from '../session-lifecycle/agent-browser-session-reset'
|
||||
import {
|
||||
AGENT_BROWSER_CLEANUP_TIMEOUT_MS,
|
||||
type AgentBrowserCleanupOptions
|
||||
@@ -184,7 +187,7 @@ export abstract class AgentBrowserBridgeExecution extends AgentBrowserBridgeTabs
|
||||
return new BrowserError('browser_tab_not_found', pageUnavailableMessageForSession(sessionName))
|
||||
}
|
||||
|
||||
protected closeStaleAgentBrowserSession(sessionName: string): Promise<void> {
|
||||
protected async closeStaleAgentBrowserSession(sessionName: string): Promise<void> {
|
||||
if (
|
||||
canSkipAgentBrowserSessionReset({
|
||||
ownsSocketDirectory: this.ownsAgentBrowserSocketDirectory,
|
||||
@@ -192,9 +195,9 @@ export abstract class AgentBrowserBridgeExecution extends AgentBrowserBridgeTabs
|
||||
sessionName
|
||||
})
|
||||
) {
|
||||
return Promise.resolve()
|
||||
return
|
||||
}
|
||||
return new Promise((resolve, reject) => {
|
||||
await new Promise<void>((resolve, reject) => {
|
||||
let child: ReturnType<typeof execFile> | null = null
|
||||
let settled = false
|
||||
|
||||
@@ -251,6 +254,11 @@ export abstract class AgentBrowserBridgeExecution extends AgentBrowserBridgeTabs
|
||||
)
|
||||
}
|
||||
})
|
||||
await waitForAgentBrowserSessionExit({
|
||||
ownsSocketDirectory: this.ownsAgentBrowserSocketDirectory,
|
||||
socketDirectory: this.agentBrowserEnv.AGENT_BROWSER_SOCKET_DIR,
|
||||
sessionName
|
||||
})
|
||||
}
|
||||
|
||||
protected createCommandError(
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { lstatSync } from 'node:fs'
|
||||
import { join } from 'node:path'
|
||||
import { BrowserError } from '../../browser-error'
|
||||
|
||||
// Match agent-browser session names and reject path traversal.
|
||||
const SAFE_SESSION_NAME = /^[A-Za-z0-9_-]+$/
|
||||
@@ -9,9 +10,16 @@ export function canSkipAgentBrowserSessionReset(options: {
|
||||
ownsSocketDirectory: boolean
|
||||
socketDirectory: string | undefined
|
||||
sessionName: string
|
||||
}): boolean {
|
||||
return options.ownsSocketDirectory && isSessionSocketAbsent(options)
|
||||
}
|
||||
|
||||
function isSessionSocketAbsent(options: {
|
||||
socketDirectory: string | undefined
|
||||
sessionName: string
|
||||
}): boolean {
|
||||
const { socketDirectory, sessionName } = options
|
||||
if (!options.ownsSocketDirectory || !socketDirectory || !SAFE_SESSION_NAME.test(sessionName)) {
|
||||
if (!socketDirectory || !SAFE_SESSION_NAME.test(sessionName)) {
|
||||
return false
|
||||
}
|
||||
try {
|
||||
@@ -32,11 +40,21 @@ export async function waitForAgentBrowserSessionExit(options: {
|
||||
socketDirectory: string | undefined
|
||||
sessionName: string
|
||||
}): Promise<void> {
|
||||
if (!options.ownsSocketDirectory) {
|
||||
if (
|
||||
process.platform === 'win32' ||
|
||||
!options.socketDirectory ||
|
||||
!SAFE_SESSION_NAME.test(options.sessionName)
|
||||
) {
|
||||
return
|
||||
}
|
||||
const deadline = Date.now() + DAEMON_EXIT_WAIT_MS
|
||||
while (!canSkipAgentBrowserSessionReset(options) && Date.now() < deadline) {
|
||||
while (!isSessionSocketAbsent(options)) {
|
||||
if (Date.now() >= deadline) {
|
||||
throw new BrowserError(
|
||||
'browser_owner_unavailable',
|
||||
`Helper session ${options.sessionName} has not exited; retry after agent-browser exits`
|
||||
)
|
||||
}
|
||||
await new Promise((resolve) => setTimeout(resolve, DAEMON_EXIT_POLL_MS))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ type BrowserScreencastMessageHandlerDeps = {
|
||||
isStopping: () => boolean
|
||||
queueFrame: (frame: PendingScreencastFrame) => void
|
||||
ackScreencastFrame: (sessionId: number | undefined) => void
|
||||
scheduleNavigationFrameCapture: () => void
|
||||
scheduleNavigationFrameCapture: (reason?: 'navigation' | 'viewport-recovery') => void
|
||||
clearNavigationCaptureTimer: () => void
|
||||
bumpSnapshotGeneration: () => void
|
||||
/** True while guest frames must be dropped pending re-emulation. */
|
||||
@@ -108,7 +108,7 @@ export function createBrowserScreencastMessageHandler(
|
||||
if (!isLiveFrameCompatibleWithViewport(imageSize, options)) {
|
||||
// Tab switches and navigation can briefly stream the host surface instead of the client viewport.
|
||||
ackScreencastFrame(sessionId)
|
||||
scheduleNavigationFrameCapture()
|
||||
scheduleNavigationFrameCapture('viewport-recovery')
|
||||
return
|
||||
}
|
||||
bumpSnapshotGeneration()
|
||||
|
||||
@@ -32,7 +32,7 @@ type BrowserScreencastSnapshotCaptureDeps = {
|
||||
|
||||
export type BrowserScreencastSnapshotCapture = {
|
||||
emitSnapshotFrame: (initialOnly: boolean, generation?: number) => Promise<void>
|
||||
scheduleNavigationFrameCapture: () => void
|
||||
scheduleNavigationFrameCapture: (reason?: 'navigation' | 'viewport-recovery') => void
|
||||
clearNavigationCaptureTimer: () => void
|
||||
bumpGeneration: () => void
|
||||
}
|
||||
@@ -46,24 +46,36 @@ export function createBrowserScreencastSnapshotCapture(
|
||||
|
||||
let snapshotGeneration = 0
|
||||
let navigationCaptureTimer: ReturnType<typeof setTimeout> | null = null
|
||||
let navigationCaptureGeneration: number | null = null
|
||||
|
||||
const clearNavigationCaptureTimer = (): void => {
|
||||
if (navigationCaptureTimer) {
|
||||
clearTimeout(navigationCaptureTimer)
|
||||
navigationCaptureTimer = null
|
||||
navigationCaptureGeneration = null
|
||||
}
|
||||
}
|
||||
|
||||
const scheduleNavigationFrameCapture = (): void => {
|
||||
const scheduleNavigationFrameCapture = (
|
||||
reason: 'navigation' | 'viewport-recovery' = 'navigation'
|
||||
): void => {
|
||||
if (isClosed() || isStopping()) {
|
||||
return
|
||||
}
|
||||
if (reason === 'viewport-recovery' && navigationCaptureGeneration === snapshotGeneration) {
|
||||
return
|
||||
}
|
||||
clearNavigationCaptureTimer()
|
||||
const generation = ++snapshotGeneration
|
||||
navigationCaptureGeneration = generation
|
||||
// Static pages may finish navigation without emitting a live frame.
|
||||
navigationCaptureTimer = setTimeout(() => {
|
||||
navigationCaptureTimer = null
|
||||
void emitSnapshotFrame(false, generation)
|
||||
void emitSnapshotFrame(false, generation).finally(() => {
|
||||
if (navigationCaptureGeneration === generation) {
|
||||
navigationCaptureGeneration = null
|
||||
}
|
||||
})
|
||||
}, 250)
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ export function isWindowsOrcadCellId(id: string): id is WindowsOrcadCellId {
|
||||
/** Relay-to-managed conversion through the app (tests/e2e). */
|
||||
const WINDOWS_CONVERT_CELL_ID = 'orcad-convert'
|
||||
|
||||
/** Bundled CLI cells: tests/e2e/ssh-orcad-windows-cli-matrix.spec.ts. */
|
||||
/** Descriptor compatibility for the retired bundled CLI cells. */
|
||||
const WINDOWS_CLI_MATRIX_CELL_IDS = ['orcad-cli-managed', 'orcad-cli-convert'] as const
|
||||
type WindowsCliMatrixCellId = (typeof WINDOWS_CLI_MATRIX_CELL_IDS)[number]
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ export type SessionTabsListAllResult = {
|
||||
export type SnapshotFreshness = {
|
||||
publicationEpoch: string
|
||||
snapshotVersion: number
|
||||
followApplied?: true
|
||||
}
|
||||
|
||||
export type ReceivedSessionTabsSnapshot = SnapshotFreshness & {
|
||||
|
||||
@@ -76,6 +76,15 @@ export function decideWebSessionTabsSnapshot(
|
||||
return WEB_SESSION_TABS_FRAME_UNMIRRORED
|
||||
}
|
||||
const current = latestSessionTabsSnapshotByWorktree.get(key)
|
||||
const sameVersion =
|
||||
current?.publicationEpoch === snapshot.publicationEpoch &&
|
||||
current.snapshotVersion === snapshot.snapshotVersion
|
||||
const follows = snapshot.navigationIntent === 'follow'
|
||||
if (sameVersion && follows && current.followApplied) {
|
||||
return WEB_SESSION_TABS_FRAME_OUTRANKED
|
||||
}
|
||||
// Ordinary publication can project a new selection before its one-shot follow arrives.
|
||||
const unconsumedFollow = sameVersion && follows && !current.followApplied
|
||||
const currentSharesPublicationLineage = Boolean(
|
||||
current &&
|
||||
sameSessionTabsPublicationLineage(current.publicationEpoch, snapshot.publicationEpoch)
|
||||
@@ -107,7 +116,8 @@ export function decideWebSessionTabsSnapshot(
|
||||
comparePublicationVersions &&
|
||||
sameSessionTabsPublicationLineage(current.publicationEpoch, snapshot.publicationEpoch) &&
|
||||
snapshot.snapshotVersion <= current.snapshotVersion &&
|
||||
!isExactCurrentReplay
|
||||
!isExactCurrentReplay &&
|
||||
!unconsumedFollow
|
||||
) {
|
||||
return WEB_SESSION_TABS_FRAME_OUTRANKED
|
||||
}
|
||||
@@ -119,7 +129,8 @@ export function decideWebSessionTabsSnapshot(
|
||||
}
|
||||
latestSessionTabsSnapshotByWorktree.set(key, {
|
||||
publicationEpoch: snapshot.publicationEpoch,
|
||||
snapshotVersion: snapshot.snapshotVersion
|
||||
snapshotVersion: snapshot.snapshotVersion,
|
||||
...(follows || (sameVersion && current.followApplied) ? { followApplied: true as const } : {})
|
||||
})
|
||||
trackWebSessionTabsWorktree(environmentId, snapshot.worktree)
|
||||
recordAcceptedWebSessionTabsEnvironment(environmentId, snapshot)
|
||||
|
||||
@@ -4,7 +4,10 @@ import type { VoiceSettings } from '../speech/speech-types'
|
||||
import { DEFAULT_TERMINAL_FONT_WEIGHT_BOLD } from '../terminal/appearance/terminal-fonts'
|
||||
import { getDefaultTerminalQuickCommands } from '../terminal/quick-commands/terminal-quick-commands'
|
||||
import { TASK_PROVIDERS } from '../work-items/task-providers'
|
||||
import { getDefaultSourceControlAiSettings } from '../source-control/ai/settings/source-control-ai-settings'
|
||||
import {
|
||||
getDefaultCommitMessageAiSettings,
|
||||
getDefaultSourceControlAiSettings
|
||||
} from '../source-control/ai/settings/source-control-ai-settings'
|
||||
import { DEFAULT_APP_ICON_ID } from '../app-lifecycle/identity/app-icon'
|
||||
import { DEFAULT_OPEN_IN_APPLICATIONS } from '../editor/launch/open-in-applications'
|
||||
import { DEFAULT_NATIVE_CHAT_IDLE_STOP_MINUTES } from '../native-chat/settings/native-chat-idle-stop'
|
||||
@@ -306,17 +309,7 @@ export function buildDefaultSettings(args: {
|
||||
// Why: hydrate a stable empty shape so renderer optional-chained reads never hit undefined.
|
||||
githubProjects: { pinned: [], recent: [], lastViewByProject: {}, activeProject: null },
|
||||
// Why: keep agent/model maps empty so first use follows the default agent's model, not a frozen stale choice.
|
||||
commitMessageAi: {
|
||||
enabled: true,
|
||||
agentId: null,
|
||||
selectedModelByAgent: {},
|
||||
discoveredModelsByAgent: {},
|
||||
selectedModelByAgentByHost: {},
|
||||
discoveredModelsByAgentByHost: {},
|
||||
selectedThinkingByModel: {},
|
||||
customPrompt: '',
|
||||
customAgentCommand: ''
|
||||
},
|
||||
commitMessageAi: getDefaultCommitMessageAiSettings(),
|
||||
sourceControlAi: getDefaultSourceControlAiSettings(),
|
||||
voice: args.voice,
|
||||
voiceDictationModeDefaultedToAuto: true
|
||||
|
||||
@@ -29,6 +29,20 @@ function copyRecord<T>(value: T | undefined): T | undefined {
|
||||
return value === undefined ? undefined : structuredClone(value)
|
||||
}
|
||||
|
||||
export function getDefaultCommitMessageAiSettings(): CommitMessageAiSettings {
|
||||
return {
|
||||
enabled: true,
|
||||
agentId: null,
|
||||
selectedModelByAgent: {},
|
||||
discoveredModelsByAgent: {},
|
||||
selectedModelByAgentByHost: {},
|
||||
discoveredModelsByAgentByHost: {},
|
||||
selectedThinkingByModel: {},
|
||||
customPrompt: '',
|
||||
customAgentCommand: ''
|
||||
}
|
||||
}
|
||||
|
||||
export function getDefaultSourceControlAiSettings(): SourceControlAiSettings {
|
||||
const actions: NonNullable<SourceControlAiSettings['actions']> = {}
|
||||
for (const actionId of AI_ACTION_IDS) {
|
||||
|
||||
+4
-9
@@ -1,7 +1,7 @@
|
||||
# Automated App Launches
|
||||
|
||||
- Set `ORCA_BACKGROUND_LAUNCH=1` for all tests and agent-launched apps. Use
|
||||
[`orca-app.ts`](e2e/helpers/orca-app.ts) / [`orca-restart.ts`](e2e/helpers/orca-restart.ts);
|
||||
[`orca-app.ts`](e2e/desktop/electron-fixtures/orca-app.ts) / [`orca-restart.ts`](e2e/desktop/electron-fixtures/orca-restart.ts);
|
||||
raw `electron.launch()` calls must pass the env explicitly.
|
||||
- Keep windows hidden and drive renderers through Playwright CDP. Never reveal windows,
|
||||
steal focus, or activate the app on the user's desktop. `@headful` is for tests requiring
|
||||
@@ -9,13 +9,8 @@
|
||||
on the desktop.
|
||||
- Run native-focus and visible-window tests only on an isolated display or CI.
|
||||
- Rebuild modified launch-policy code before launching; stale wrappers are unsafe.
|
||||
- Only the [terminal perf](e2e/terminal-perf-presentation.ts) and
|
||||
[native IBus](e2e/terminal-native-ibus-window.ts) fixtures, and the guarded
|
||||
[native browser image-focus test](e2e/browser-image-link-focus.spec.ts), may explicitly present windows
|
||||
on their isolated hosted-CI Xvfb displays, and the guarded
|
||||
[Windows agent focus test](e2e/browser-agent-input-focus-isolation-native.spec.ts) on the
|
||||
hosted Windows CI desktop. Preserve their guards and keep
|
||||
- Only the [terminal perf](e2e/terminal/performance/terminal-perf-presentation.ts) and
|
||||
[native IBus](e2e/terminal/lifecycle/terminal-native-ibus-window.ts) fixtures may explicitly present
|
||||
windows on their isolated hosted-CI Xvfb displays. Preserve their guards and keep
|
||||
`ORCA_BACKGROUND_LAUNCH=1`; do not generalize these exceptions to other fixtures or
|
||||
production launch policy. Background terminal panes stay hidden.
|
||||
- The browser image-focus test also permits an isolated Docker Xvfb display, with
|
||||
`ORCA_E2E_BROWSER_NATIVE_XVFB=1`; desktop runs must skip it.
|
||||
|
||||
+4
-18
@@ -18,23 +18,9 @@
|
||||
(`getByRole`, `toBeVisible`, `toHaveText`). Writing state and reading it back cannot
|
||||
catch broken rendering. This applies to hidden CDP-driven renderers too.
|
||||
|
||||
## Layout Regression Gates
|
||||
## Layout Changes
|
||||
|
||||
- Terminal-topology refactors must preserve behavior or fix a named bug. Run
|
||||
`ORCA_BACKGROUND_LAUNCH=1 pnpm run test:e2e:terminal-layout-parity` to compare the working
|
||||
tree with its merge-base on `origin/main`. See the
|
||||
[runner](../../config/scripts/runtime-verification/terminal-e2e/run-terminal-layout-parity.mjs)
|
||||
for commit comparisons and scenario filters. The head's journeys must work against both builds.
|
||||
- Declare intended fixes in [declared differences](terminal-layout-parity-declared-differences.ts)
|
||||
with scenario, bug ID, and report path prefixes; undeclared or unmatched declarations fail.
|
||||
Preserve PTY-binding and main/renderer agreement waits before quitting. Unstable-on-main
|
||||
exclusions need evidence in `TERMINAL_LAYOUT_PARITY_UNSTABLE_ON_MAIN`.
|
||||
- Use the [window](workspace-layout-oracle.spec.ts) and
|
||||
[headless](workspace-layout-oracle-headless.spec.ts) layout oracles for live/saved layout,
|
||||
DOM/client agreement, command effects, restarts, terminal output, and remount checks.
|
||||
- New [known-on-main](workspace-layout-oracle-known-on-main.ts) entries must cite a reproducing
|
||||
run on `main` in the PR; rerun intermittent findings until reproduced. Use
|
||||
`ORCA_LAYOUT_ORACLE_REPEAT=<n>` for repeats and `ORCA_LAYOUT_ORACLE_REPORT_DIR` for JSON
|
||||
reports. `ORCA_LAYOUT_ORACLE_RECORD=1` records without failing; do not use it as a passing gate.
|
||||
- Inspect any profile with
|
||||
- Terminal-topology refactors must preserve behavior or fix a named bug. The retired
|
||||
layout-oracle and parity programs provide no current automated regression gate.
|
||||
- Inspect a profile with
|
||||
`node config/scripts/static-analysis/repository-layout/check-workspace-layout-rules.mjs <userDataDir>`.
|
||||
|
||||
@@ -1,406 +0,0 @@
|
||||
import type { Page } from '@stablyai/playwright-test'
|
||||
import { test, expect } from './helpers/orca-app'
|
||||
import {
|
||||
splitActiveTerminalPane,
|
||||
waitForActiveTerminalManager,
|
||||
waitForPaneCount,
|
||||
waitForPaneIdentitySnapshot,
|
||||
type PaneIdentitySnapshot
|
||||
} from './helpers/terminal'
|
||||
import { clickFileInExplorer } from './helpers/file-explorer'
|
||||
import { ensureTerminalVisible, waitForActiveWorktree, waitForSessionReady } from './helpers/store'
|
||||
|
||||
type SeededActivityThread = {
|
||||
paneKey: string
|
||||
leafId: string
|
||||
prompt: string
|
||||
}
|
||||
|
||||
type ActivePaneSelection = {
|
||||
activeWorktreeId: string | null
|
||||
activeGroupId: string | null
|
||||
activeTabId: string | null
|
||||
activeTabType: string | null
|
||||
activeLeafId: string | null
|
||||
activePaneId: number | null
|
||||
}
|
||||
|
||||
type SplitGroupTerminal = {
|
||||
sourceGroupId: string
|
||||
groupId: string
|
||||
tabId: string
|
||||
}
|
||||
|
||||
function agentsSidebarButton(page: Page) {
|
||||
return page.getByRole('button', { name: 'View activity', exact: true })
|
||||
}
|
||||
|
||||
async function seedActivityThread(
|
||||
page: Page,
|
||||
thread: SeededActivityThread,
|
||||
title: string,
|
||||
state: 'blocked' | 'done',
|
||||
message: string,
|
||||
startedAt: number
|
||||
): Promise<void> {
|
||||
await page.evaluate(
|
||||
({ thread, title, state, message, startedAt }) => {
|
||||
const store = window.__store
|
||||
if (!store) {
|
||||
throw new Error('window.__store is not available')
|
||||
}
|
||||
|
||||
store.getState().setAgentStatus(
|
||||
thread.paneKey,
|
||||
{
|
||||
state,
|
||||
prompt: thread.prompt,
|
||||
agentType: 'codex',
|
||||
lastAssistantMessage: message
|
||||
},
|
||||
title,
|
||||
{ updatedAt: startedAt, stateStartedAt: startedAt }
|
||||
)
|
||||
},
|
||||
{ thread, title, state, message, startedAt }
|
||||
)
|
||||
}
|
||||
|
||||
async function seedActivityThreadsForSplitPanes(
|
||||
page: Page,
|
||||
snapshot: PaneIdentitySnapshot
|
||||
): Promise<[SeededActivityThread, SeededActivityThread]> {
|
||||
const [firstPane, secondPane] = snapshot.panes
|
||||
if (!firstPane || !secondPane) {
|
||||
throw new Error('Activity pane isolation test needs two split panes')
|
||||
}
|
||||
|
||||
const now = Date.now()
|
||||
const first: SeededActivityThread = {
|
||||
paneKey: `${snapshot.tabId}:${firstPane.leafId}`,
|
||||
leafId: firstPane.leafId,
|
||||
prompt: `ACTIVITY_UUID_LEFT_${now}`
|
||||
}
|
||||
const second: SeededActivityThread = {
|
||||
paneKey: `${snapshot.tabId}:${secondPane.leafId}`,
|
||||
leafId: secondPane.leafId,
|
||||
prompt: `ACTIVITY_UUID_RIGHT_${now}`
|
||||
}
|
||||
|
||||
await seedActivityThread(
|
||||
page,
|
||||
first,
|
||||
'Codex left pane',
|
||||
'blocked',
|
||||
'Left pane is waiting for user input.',
|
||||
now - 2_000
|
||||
)
|
||||
await seedActivityThread(
|
||||
page,
|
||||
second,
|
||||
'Codex right pane',
|
||||
'done',
|
||||
'Right pane finished its turn.',
|
||||
now - 1_000
|
||||
)
|
||||
|
||||
return [first, second]
|
||||
}
|
||||
|
||||
async function enableInlineAgentCards(page: Page): Promise<void> {
|
||||
await page.evaluate(() => {
|
||||
const store = window.__store
|
||||
if (!store) {
|
||||
throw new Error('window.__store is not available')
|
||||
}
|
||||
|
||||
const state = store.getState()
|
||||
if (!state.worktreeCardProperties.includes('inline-agents')) {
|
||||
state.setWorktreeCardProperties([...state.worktreeCardProperties, 'inline-agents'])
|
||||
}
|
||||
state.closeActivityPage()
|
||||
})
|
||||
}
|
||||
|
||||
async function enableActivityAgentsView(page: Page): Promise<void> {
|
||||
await page.evaluate(async () => {
|
||||
// Keep the migration intro from covering the activity toggle.
|
||||
const settings = await window.api.settings.set({
|
||||
agentsSidebarIntroShown: true
|
||||
})
|
||||
window.__store?.setState({ settings })
|
||||
})
|
||||
}
|
||||
|
||||
async function clickWorkspaceCardAgentRow(page: Page, prompt: string): Promise<void> {
|
||||
const agentsGroup = page.getByRole('group', { name: 'Agents' }).first()
|
||||
const collapsedSummary = agentsGroup.getByRole('button', { name: /^Expand \d+ agents?:/ })
|
||||
if (await collapsedSummary.isVisible()) {
|
||||
await collapsedSummary.click()
|
||||
}
|
||||
const agentRow = agentsGroup.getByRole('treeitem').filter({ hasText: prompt }).first()
|
||||
await expect(agentRow).toBeVisible({ timeout: 10_000 })
|
||||
await agentRow.click()
|
||||
}
|
||||
|
||||
async function readActivePaneSelection(page: Page): Promise<ActivePaneSelection> {
|
||||
return page.evaluate(() => {
|
||||
const store = window.__store
|
||||
if (!store) {
|
||||
return {
|
||||
activeWorktreeId: null,
|
||||
activeGroupId: null,
|
||||
activeTabId: null,
|
||||
activeTabType: null,
|
||||
activeLeafId: null,
|
||||
activePaneId: null
|
||||
}
|
||||
}
|
||||
|
||||
const state = store.getState()
|
||||
const activeWorktreeId = state.activeWorktreeId ?? null
|
||||
const activeGroupId = activeWorktreeId
|
||||
? (state.activeGroupIdByWorktree[activeWorktreeId] ?? null)
|
||||
: null
|
||||
const activeTabId = state.activeTabId ?? null
|
||||
const activePane = activeTabId
|
||||
? (window.__paneManagers?.get(activeTabId)?.getActivePane?.() ?? null)
|
||||
: null
|
||||
|
||||
return {
|
||||
activeWorktreeId,
|
||||
activeGroupId,
|
||||
activeTabId,
|
||||
activeTabType: state.activeTabType ?? null,
|
||||
activeLeafId: activePane?.leafId ?? null,
|
||||
activePaneId: activePane?.id ?? null
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
function terminalPaneForLeaf(page: Page, leafId: string) {
|
||||
return page.locator(`.pane[data-leaf-id="${leafId}"]`).first()
|
||||
}
|
||||
|
||||
async function createTerminalInNewSplitGroup(page: Page): Promise<SplitGroupTerminal> {
|
||||
return page.evaluate(() => {
|
||||
const store = window.__store
|
||||
if (!store) {
|
||||
throw new Error('window.__store is not available')
|
||||
}
|
||||
const state = store.getState()
|
||||
const worktreeId = state.activeWorktreeId
|
||||
if (!worktreeId) {
|
||||
throw new Error('No active worktree for split-group terminal setup')
|
||||
}
|
||||
const sourceGroupId =
|
||||
state.activeGroupIdByWorktree[worktreeId] ?? state.groupsByWorktree[worktreeId]?.[0]?.id
|
||||
if (!sourceGroupId) {
|
||||
throw new Error('No source group for split-group terminal setup')
|
||||
}
|
||||
|
||||
const groupId = state.createEmptySplitGroup(worktreeId, sourceGroupId, 'right')
|
||||
if (!groupId) {
|
||||
throw new Error('Failed to create split group')
|
||||
}
|
||||
|
||||
const tab = state.createTab(worktreeId, groupId, undefined, { activate: true })
|
||||
state.focusGroup(worktreeId, groupId)
|
||||
state.setActiveTab(tab.id)
|
||||
state.setActiveTabType('terminal', window.__store?.getState().activeWorktreeId ?? null)
|
||||
return { sourceGroupId, groupId, tabId: tab.id }
|
||||
})
|
||||
}
|
||||
|
||||
test.describe('Activity Agent Pane Isolation', () => {
|
||||
test.beforeEach(async ({ orcaPage }) => {
|
||||
await waitForSessionReady(orcaPage)
|
||||
await enableActivityAgentsView(orcaPage)
|
||||
await waitForActiveWorktree(orcaPage)
|
||||
await ensureTerminalVisible(orcaPage)
|
||||
const hasPaneManager = await waitForActiveTerminalManager(orcaPage, 30_000)
|
||||
.then(() => true)
|
||||
.catch(() => false)
|
||||
test.skip(
|
||||
!hasPaneManager,
|
||||
'Electron automation in this environment never mounts the live TerminalPane manager, so Activity pane isolation would only fail on harness setup.'
|
||||
)
|
||||
await waitForPaneCount(orcaPage, 1, 30_000)
|
||||
})
|
||||
|
||||
test('selecting agent rows focuses the matching split pane by stable leaf id', async ({
|
||||
orcaPage
|
||||
}) => {
|
||||
await splitActiveTerminalPane(orcaPage, 'vertical')
|
||||
await waitForPaneCount(orcaPage, 2)
|
||||
const snapshot = await waitForPaneIdentitySnapshot(orcaPage, 2)
|
||||
const [first, second] = await seedActivityThreadsForSplitPanes(orcaPage, snapshot)
|
||||
|
||||
await agentsSidebarButton(orcaPage).click()
|
||||
await expect(orcaPage.getByText(first.prompt)).toBeVisible()
|
||||
await expect(orcaPage.getByText(second.prompt)).toBeVisible()
|
||||
|
||||
await orcaPage.getByRole('button').filter({ hasText: first.prompt }).first().click()
|
||||
await expect
|
||||
.poll(async () => readActivePaneSelection(orcaPage), {
|
||||
timeout: 10_000,
|
||||
message: 'Agents sidebar row did not focus the first selected split pane'
|
||||
})
|
||||
.toMatchObject({
|
||||
activeTabId: snapshot.tabId,
|
||||
activeLeafId: first.leafId
|
||||
})
|
||||
|
||||
await expect(
|
||||
orcaPage.getByRole('button', { name: 'Turn off activity view', exact: true })
|
||||
).toHaveAttribute('aria-pressed', 'true')
|
||||
await orcaPage.getByRole('button').filter({ hasText: second.prompt }).first().click()
|
||||
await expect
|
||||
.poll(async () => readActivePaneSelection(orcaPage), {
|
||||
timeout: 10_000,
|
||||
message: 'Agents sidebar row did not focus the second selected split pane'
|
||||
})
|
||||
.toMatchObject({
|
||||
activeTabId: snapshot.tabId,
|
||||
activeLeafId: second.leafId
|
||||
})
|
||||
})
|
||||
|
||||
test('workspace card agent rows focus the matching terminal split pane', async ({ orcaPage }) => {
|
||||
await splitActiveTerminalPane(orcaPage, 'vertical')
|
||||
await waitForPaneCount(orcaPage, 2)
|
||||
const snapshot = await waitForPaneIdentitySnapshot(orcaPage, 2)
|
||||
const [first, second] = await seedActivityThreadsForSplitPanes(orcaPage, snapshot)
|
||||
|
||||
await orcaPage.evaluate(() => window.__store?.getState().setWorktreeCardProperties([]))
|
||||
await enableInlineAgentCards(orcaPage)
|
||||
|
||||
await clickWorkspaceCardAgentRow(orcaPage, first.prompt)
|
||||
await expect
|
||||
.poll(async () => readActivePaneSelection(orcaPage), {
|
||||
timeout: 10_000,
|
||||
message: 'Workspace-card row did not focus the first split pane'
|
||||
})
|
||||
.toMatchObject({
|
||||
activeTabId: snapshot.tabId,
|
||||
activeLeafId: first.leafId
|
||||
})
|
||||
|
||||
await clickWorkspaceCardAgentRow(orcaPage, second.prompt)
|
||||
await expect
|
||||
.poll(async () => readActivePaneSelection(orcaPage), {
|
||||
timeout: 10_000,
|
||||
message: 'Workspace-card row did not focus the second split pane'
|
||||
})
|
||||
.toMatchObject({
|
||||
activeTabId: snapshot.tabId,
|
||||
activeLeafId: second.leafId
|
||||
})
|
||||
})
|
||||
|
||||
test('workspace card agent rows reveal terminal logs from a non-terminal surface', async ({
|
||||
orcaPage
|
||||
}) => {
|
||||
await splitActiveTerminalPane(orcaPage, 'vertical')
|
||||
await waitForPaneCount(orcaPage, 2)
|
||||
const snapshot = await waitForPaneIdentitySnapshot(orcaPage, 2)
|
||||
const [first] = await seedActivityThreadsForSplitPanes(orcaPage, snapshot)
|
||||
|
||||
await enableInlineAgentCards(orcaPage)
|
||||
await expect(terminalPaneForLeaf(orcaPage, first.leafId)).toBeVisible()
|
||||
// Why: this reproduces the user-visible failure mode: the agent row is
|
||||
// visible in the sidebar while the main workspace surface is not Terminal.
|
||||
await expect(await clickFileInExplorer(orcaPage, ['README.md'])).toBe('README.md')
|
||||
await expect
|
||||
.poll(() => readActivePaneSelection(orcaPage))
|
||||
.toMatchObject({
|
||||
activeTabType: 'editor',
|
||||
activeTabId: snapshot.tabId
|
||||
})
|
||||
await expect(terminalPaneForLeaf(orcaPage, first.leafId)).toBeHidden()
|
||||
|
||||
await clickWorkspaceCardAgentRow(orcaPage, first.prompt)
|
||||
|
||||
await expect
|
||||
.poll(async () => readActivePaneSelection(orcaPage), {
|
||||
timeout: 10_000,
|
||||
message: 'Workspace-card row did not reveal the terminal log surface'
|
||||
})
|
||||
.toMatchObject({
|
||||
activeTabType: 'terminal',
|
||||
activeTabId: snapshot.tabId,
|
||||
activeLeafId: first.leafId
|
||||
})
|
||||
await expect(terminalPaneForLeaf(orcaPage, first.leafId)).toBeVisible()
|
||||
})
|
||||
|
||||
test('workspace card agent rows focus the matching split-group terminal pane', async ({
|
||||
orcaPage
|
||||
}) => {
|
||||
await splitActiveTerminalPane(orcaPage, 'vertical')
|
||||
await waitForPaneCount(orcaPage, 2)
|
||||
const firstGroupSnapshot = await waitForPaneIdentitySnapshot(orcaPage, 2)
|
||||
const [first, second] = await seedActivityThreadsForSplitPanes(orcaPage, firstGroupSnapshot)
|
||||
|
||||
const splitGroup = await createTerminalInNewSplitGroup(orcaPage)
|
||||
await waitForActiveTerminalManager(orcaPage, 30_000)
|
||||
await waitForPaneCount(orcaPage, 1, 30_000)
|
||||
const secondGroupSnapshot = await waitForPaneIdentitySnapshot(orcaPage, 1)
|
||||
const secondGroupPane = secondGroupSnapshot.panes[0]
|
||||
if (!secondGroupPane) {
|
||||
throw new Error('Split-group terminal did not mount a pane')
|
||||
}
|
||||
const now = Date.now()
|
||||
const splitGroupThread: SeededActivityThread = {
|
||||
paneKey: `${secondGroupSnapshot.tabId}:${secondGroupPane.leafId}`,
|
||||
leafId: secondGroupPane.leafId,
|
||||
prompt: `ACTIVITY_UUID_SPLIT_GROUP_${now}`
|
||||
}
|
||||
await seedActivityThread(
|
||||
orcaPage,
|
||||
splitGroupThread,
|
||||
'Codex split group pane',
|
||||
'blocked',
|
||||
'Split group pane is waiting for user input.',
|
||||
now
|
||||
)
|
||||
|
||||
await enableInlineAgentCards(orcaPage)
|
||||
|
||||
await clickWorkspaceCardAgentRow(orcaPage, splitGroupThread.prompt)
|
||||
await expect
|
||||
.poll(async () => readActivePaneSelection(orcaPage), {
|
||||
timeout: 10_000,
|
||||
message: 'Workspace-card row did not focus the split-group terminal pane'
|
||||
})
|
||||
.toMatchObject({
|
||||
activeGroupId: splitGroup.groupId,
|
||||
activeTabId: secondGroupSnapshot.tabId,
|
||||
activeLeafId: splitGroupThread.leafId
|
||||
})
|
||||
|
||||
await clickWorkspaceCardAgentRow(orcaPage, first.prompt)
|
||||
await expect
|
||||
.poll(async () => readActivePaneSelection(orcaPage), {
|
||||
timeout: 10_000,
|
||||
message: 'Workspace-card row did not return to the first split group'
|
||||
})
|
||||
.toMatchObject({
|
||||
activeGroupId: splitGroup.sourceGroupId,
|
||||
activeTabId: firstGroupSnapshot.tabId,
|
||||
activeLeafId: first.leafId
|
||||
})
|
||||
|
||||
await clickWorkspaceCardAgentRow(orcaPage, second.prompt)
|
||||
await expect
|
||||
.poll(async () => readActivePaneSelection(orcaPage), {
|
||||
timeout: 10_000,
|
||||
message: 'Workspace-card row did not focus the sibling pane after group switch'
|
||||
})
|
||||
.toMatchObject({
|
||||
activeGroupId: splitGroup.sourceGroupId,
|
||||
activeTabId: firstGroupSnapshot.tabId,
|
||||
activeLeafId: second.leafId
|
||||
})
|
||||
})
|
||||
})
|
||||
+4
-3
@@ -1,9 +1,10 @@
|
||||
import { existsSync, mkdirSync, writeFileSync } from 'node:fs'
|
||||
import path from 'node:path'
|
||||
import type { ElectronApplication, Page } from '@stablyai/playwright-test'
|
||||
import { expect, test } from './helpers/orca-app'
|
||||
import type { AiVaultSession } from '../../src/shared/ai-vault/contracts/ai-vault-types'
|
||||
import type { AiVaultDeleteSessionResult } from '../../src/shared/ai-vault/contracts/ai-vault-session-deletion'
|
||||
import { test } from '../desktop/electron-fixtures/orca-app'
|
||||
import { expect } from '@stablyai/playwright-test'
|
||||
import type { AiVaultSession } from '../../../src/shared/ai-vault/contracts/ai-vault-types'
|
||||
import type { AiVaultDeleteSessionResult } from '../../../src/shared/ai-vault/contracts/ai-vault-session-deletion'
|
||||
|
||||
// Exercise real IPC deletion in isolated HOME, including companion-tree removal while preserving rewind data.
|
||||
|
||||
@@ -1,176 +0,0 @@
|
||||
import { openSidebarProjectMenu } from './helpers/sidebar-project-dialog'
|
||||
import { execFileSync } from 'node:child_process'
|
||||
import { mkdirSync, realpathSync, rmSync, symlinkSync, writeFileSync } from 'node:fs'
|
||||
import { mkdtemp } from 'node:fs/promises'
|
||||
import os from 'node:os'
|
||||
import path from 'node:path'
|
||||
import { test, expect } from './helpers/orca-app'
|
||||
import { waitForSessionReady } from './helpers/store'
|
||||
|
||||
const tempRoots: string[] = []
|
||||
|
||||
async function createCloneFixture(): Promise<{
|
||||
sourcePath: string
|
||||
destinationParent: string
|
||||
}> {
|
||||
// Canonicalize macOS /var → /private/var like git does when registering repo.path.
|
||||
const rootPath = realpathSync(
|
||||
await mkdtemp(path.join(os.tmpdir(), 'orca-e2e-add-project-clone-'))
|
||||
)
|
||||
tempRoots.push(rootPath)
|
||||
|
||||
const sourcePath = path.join(rootPath, 'default-checkout-source')
|
||||
// Clone through a symlinked parent: git reports the resolved path, which must still be the project's own checkout.
|
||||
const destinationParent = path.join(rootPath, 'clones-link')
|
||||
|
||||
mkdirSync(sourcePath, { recursive: true })
|
||||
mkdirSync(path.join(rootPath, 'clones'), { recursive: true })
|
||||
symlinkSync(path.join(rootPath, 'clones'), destinationParent, 'junction')
|
||||
execFileSync('git', ['init'], { cwd: sourcePath, stdio: 'pipe' })
|
||||
execFileSync('git', ['config', 'user.email', 'e2e@test.local'], {
|
||||
cwd: sourcePath,
|
||||
stdio: 'pipe'
|
||||
})
|
||||
execFileSync('git', ['config', 'user.name', 'E2E Test'], { cwd: sourcePath, stdio: 'pipe' })
|
||||
writeFileSync(path.join(sourcePath, 'README.md'), '# Default checkout source\n')
|
||||
execFileSync('git', ['add', 'README.md'], { cwd: sourcePath, stdio: 'pipe' })
|
||||
execFileSync('git', ['commit', '-m', 'Initial commit'], { cwd: sourcePath, stdio: 'pipe' })
|
||||
execFileSync('git', ['branch', '-M', 'main'], { cwd: sourcePath, stdio: 'pipe' })
|
||||
|
||||
return { sourcePath, destinationParent }
|
||||
}
|
||||
|
||||
async function createLinkedWorktreeFixture(): Promise<{
|
||||
mainPath: string
|
||||
siblingPath: string
|
||||
}> {
|
||||
// Canonicalize the main checkout path like git does on macOS /var symlinks.
|
||||
const rootPath = realpathSync(
|
||||
await mkdtemp(path.join(os.tmpdir(), 'orca-e2e-add-project-linked-'))
|
||||
)
|
||||
tempRoots.push(rootPath)
|
||||
|
||||
const mainPath = path.join(rootPath, 'linked-source')
|
||||
const siblingPath = path.join(rootPath, 'linked-feature')
|
||||
|
||||
mkdirSync(mainPath, { recursive: true })
|
||||
execFileSync('git', ['init'], { cwd: mainPath, stdio: 'pipe' })
|
||||
execFileSync('git', ['config', 'user.email', 'e2e@test.local'], {
|
||||
cwd: mainPath,
|
||||
stdio: 'pipe'
|
||||
})
|
||||
execFileSync('git', ['config', 'user.name', 'E2E Test'], { cwd: mainPath, stdio: 'pipe' })
|
||||
writeFileSync(path.join(mainPath, 'README.md'), '# Linked source\n')
|
||||
execFileSync('git', ['add', 'README.md'], { cwd: mainPath, stdio: 'pipe' })
|
||||
execFileSync('git', ['commit', '-m', 'Initial commit'], { cwd: mainPath, stdio: 'pipe' })
|
||||
execFileSync('git', ['branch', '-M', 'main'], { cwd: mainPath, stdio: 'pipe' })
|
||||
execFileSync('git', ['worktree', 'add', '-b', 'feature', siblingPath], {
|
||||
cwd: mainPath,
|
||||
stdio: 'pipe'
|
||||
})
|
||||
|
||||
return { mainPath, siblingPath }
|
||||
}
|
||||
|
||||
test.afterEach(() => {
|
||||
for (const root of tempRoots.splice(0)) {
|
||||
rmSync(root, { recursive: true, force: true })
|
||||
}
|
||||
})
|
||||
|
||||
test.describe('Add project default checkout', () => {
|
||||
test('clones a repo and opens the default checkout without the setup-choice modal', async ({
|
||||
orcaPage
|
||||
}) => {
|
||||
await waitForSessionReady(orcaPage)
|
||||
const fixture = await createCloneFixture()
|
||||
|
||||
await openSidebarProjectMenu(orcaPage)
|
||||
await orcaPage.getByRole('menuitem', { name: /Clone from URL/i }).click()
|
||||
|
||||
const cloneDialog = orcaPage.getByRole('dialog', { name: /Clone from URL/i })
|
||||
await expect(cloneDialog).toBeVisible()
|
||||
await cloneDialog.getByPlaceholder('https://github.com/user/repo.git').fill(fixture.sourcePath)
|
||||
await cloneDialog.getByPlaceholder('/path/to/destination').fill(fixture.destinationParent)
|
||||
await cloneDialog.getByRole('button', { name: /^Clone$/ }).click()
|
||||
|
||||
await expect(orcaPage.getByRole('dialog', { name: /Repo added/i })).toBeHidden()
|
||||
|
||||
await expect
|
||||
.poll(
|
||||
() =>
|
||||
orcaPage.evaluate((cloneName) => {
|
||||
const state = window.__store?.getState()
|
||||
if (!state) {
|
||||
return null
|
||||
}
|
||||
const repo = state.repos.find((candidate) => candidate.displayName === cloneName)
|
||||
if (!repo) {
|
||||
return null
|
||||
}
|
||||
const worktrees = state.worktreesByRepo[repo.id] ?? []
|
||||
const defaultCheckout = worktrees.find((worktree) => worktree.isMainWorktree)
|
||||
const normalizedDefaultCheckoutPath = defaultCheckout?.path.replace(/\\/g, '/') ?? null
|
||||
return {
|
||||
activeCheckoutIsDefault: state.activeWorktreeId === defaultCheckout?.id,
|
||||
defaultCheckoutLooksCloned:
|
||||
normalizedDefaultCheckoutPath?.endsWith(`/clones/${cloneName}`) ?? false
|
||||
}
|
||||
}, path.basename(fixture.sourcePath)),
|
||||
{
|
||||
timeout: 30_000,
|
||||
message: 'cloned repo default checkout was not opened'
|
||||
}
|
||||
)
|
||||
.toEqual({
|
||||
activeCheckoutIsDefault: true,
|
||||
defaultCheckoutLooksCloned: true
|
||||
})
|
||||
})
|
||||
|
||||
test('keeps sibling git worktrees hidden when opening the default checkout', async ({
|
||||
orcaPage
|
||||
}) => {
|
||||
await waitForSessionReady(orcaPage)
|
||||
const fixture = await createLinkedWorktreeFixture()
|
||||
|
||||
await orcaPage.evaluate((folderPath) => {
|
||||
window.__store?.getState().openModal('confirm-add-project-from-folder', { folderPath })
|
||||
}, fixture.mainPath)
|
||||
const addProjectDialog = orcaPage.getByRole('dialog', { name: /^Add Project$/i })
|
||||
await expect(addProjectDialog).toBeVisible()
|
||||
await addProjectDialog.getByRole('button', { name: /^Add Project$/ }).click()
|
||||
|
||||
await expect(addProjectDialog).toBeHidden()
|
||||
await expect(orcaPage.getByRole('dialog', { name: /Repo added/i })).toBeHidden()
|
||||
|
||||
await expect
|
||||
.poll(
|
||||
() =>
|
||||
orcaPage.evaluate((mainPath) => {
|
||||
const state = window.__store?.getState()
|
||||
if (!state) {
|
||||
return null
|
||||
}
|
||||
const repo = state.repos.find((candidate) => candidate.path === mainPath)
|
||||
if (!repo) {
|
||||
return null
|
||||
}
|
||||
const worktrees = state.worktreesByRepo[repo.id] ?? []
|
||||
const defaultCheckout = worktrees.find((worktree) => worktree.isMainWorktree)
|
||||
return {
|
||||
activeCheckoutIsDefault: state.activeWorktreeId === defaultCheckout?.id,
|
||||
visibleBranches: worktrees.map((worktree) => worktree.branch).sort()
|
||||
}
|
||||
}, fixture.mainPath),
|
||||
{
|
||||
timeout: 30_000,
|
||||
message: 'default checkout did not open with sibling worktrees hidden'
|
||||
}
|
||||
)
|
||||
.toEqual({
|
||||
activeCheckoutIsDefault: true,
|
||||
visibleBranches: ['refs/heads/main']
|
||||
})
|
||||
})
|
||||
})
|
||||
@@ -1,368 +0,0 @@
|
||||
import path from 'node:path'
|
||||
import type { ElectronApplication, Locator, Page, TestInfo } from '@stablyai/playwright-test'
|
||||
import { eventSchemas } from '../../src/shared/telemetry/telemetry-event-registry'
|
||||
import { test, expect } from './helpers/orca-app'
|
||||
import {
|
||||
createRuntimeDesktopPairingOffer,
|
||||
launchPairedElectronClient
|
||||
} from './helpers/paired-electron-client'
|
||||
|
||||
test.use({
|
||||
seedTestRepo: false,
|
||||
testRepoPath: '',
|
||||
orcaAppExtraEnv: { ORCA_BACKGROUND_LAUNCH: '1' }
|
||||
})
|
||||
|
||||
async function assertHiddenIsolation(app: ElectronApplication, testInfo: TestInfo, name: string) {
|
||||
const isolation = await app.evaluate(({ app, BrowserWindow }) => ({
|
||||
home: app.getPath('home'),
|
||||
expectedHome: process.env.ORCA_E2E_HOME_DIR,
|
||||
appPath: app.getAppPath(),
|
||||
background: process.env.ORCA_BACKGROUND_LAUNCH,
|
||||
windows: BrowserWindow.getAllWindows().map((window) => ({
|
||||
visible: window.isVisible(),
|
||||
focused: window.isFocused()
|
||||
}))
|
||||
}))
|
||||
expect(isolation.home).toBe(isolation.expectedHome)
|
||||
expect(isolation.background).toBe('1')
|
||||
expect(isolation.appPath).toContain(process.cwd())
|
||||
expect(isolation.windows.every((window) => !window.visible && !window.focused)).toBe(true)
|
||||
await testInfo.attach(name, { body: JSON.stringify(isolation), contentType: 'application/json' })
|
||||
return isolation.home
|
||||
}
|
||||
|
||||
for (const theme of ['dark', 'light'] as const) {
|
||||
test(`invalid host project path stays readable over its dialog (${theme})`, async ({
|
||||
electronApp,
|
||||
orcaPage
|
||||
}, testInfo) => {
|
||||
const hostHome = await assertHiddenIsolation(electronApp, testInfo, 'host-isolation')
|
||||
const offer = await createRuntimeDesktopPairingOffer(orcaPage)
|
||||
const client = await launchPairedElectronClient(offer, testInfo, 'Disposable host', {
|
||||
extraEnv: { ORCA_BACKGROUND_LAUNCH: '1' }
|
||||
})
|
||||
try {
|
||||
await assertHiddenIsolation(client.app, testInfo, 'client-isolation')
|
||||
const page = client.page
|
||||
await page.evaluate(async (theme) => {
|
||||
await window.__store?.getState().updateSettings({ theme })
|
||||
}, theme)
|
||||
await page
|
||||
.locator('[data-sidebar-header-actions]')
|
||||
.getByRole('button', { name: 'Add project', exact: true })
|
||||
.click()
|
||||
const addMenu = page.getByRole('menu', { name: 'Add project', exact: true })
|
||||
await expect(
|
||||
addMenu.getByRole('menuitem', { name: 'Project host: Disposable host', exact: true })
|
||||
).toBeVisible()
|
||||
await addMenu.getByRole('menuitem', { name: /Browse folder/i }).click()
|
||||
await page
|
||||
.getByRole('dialog', { name: /Browse host filesystem/i })
|
||||
.getByRole('button', { name: 'Cancel', exact: true })
|
||||
.click()
|
||||
const pathField = page.locator('#server-project-path')
|
||||
const missingPath = path.join(hostHome, 'missing-project')
|
||||
await pathField.fill(missingPath)
|
||||
await page.getByRole('button', { name: 'Add Git Project' }).click()
|
||||
const toast = page
|
||||
.locator('[data-sonner-toast]')
|
||||
.filter({ hasText: 'Cannot open folder on selected runtime' })
|
||||
.first()
|
||||
await expect(toast).toBeVisible()
|
||||
await expect(pathField).toHaveValue(missingPath)
|
||||
await expect(page.getByRole('dialog', { name: /Open host project/i })).toBeVisible()
|
||||
await page.screenshot({
|
||||
path: testInfo.outputPath(`toast-over-dialog-${theme}.png`),
|
||||
animations: 'disabled'
|
||||
})
|
||||
const layers = await toast.evaluate((element) => {
|
||||
const overlay = document.querySelector('[data-slot="dialog-overlay"]')
|
||||
const toaster = element.closest('[data-sonner-toaster]')
|
||||
if (!overlay || !toaster) {
|
||||
throw new Error('Missing modal/toast layers')
|
||||
}
|
||||
return {
|
||||
toast: Number(getComputedStyle(toaster).zIndex),
|
||||
overlay: Number(getComputedStyle(overlay).zIndex),
|
||||
pointerEvents: getComputedStyle(element).pointerEvents
|
||||
}
|
||||
})
|
||||
await testInfo.attach('layers', {
|
||||
body: JSON.stringify(layers),
|
||||
contentType: 'application/json'
|
||||
})
|
||||
expect(layers.toast, 'dialog overlay covers the project error').toBeGreaterThan(
|
||||
layers.overlay
|
||||
)
|
||||
expect(layers.pointerEvents).toBe('auto')
|
||||
await pathField.click()
|
||||
await toast.locator('[data-close-button]').click()
|
||||
await expect(toast).toBeHidden()
|
||||
await expect(page.getByRole('dialog', { name: /Open host project/i })).toBeVisible()
|
||||
await expect(pathField).toHaveValue(missingPath)
|
||||
expect(await pathField.evaluate((input) => input === document.activeElement)).toBe(true)
|
||||
|
||||
for (const pointerType of ['mouse', 'touch'] as const) {
|
||||
await client.app.evaluate(({ BrowserWindow }) => {
|
||||
BrowserWindow.getAllWindows()[0].webContents.send('star-nag:show', {
|
||||
mode: 'web',
|
||||
surface: 'toast'
|
||||
})
|
||||
})
|
||||
const customToast = page
|
||||
.locator('[data-sonner-toast]')
|
||||
.filter({ hasText: 'Onboarding completed!' })
|
||||
await expect(customToast).toBeVisible()
|
||||
const clickToastControl = async (control: Locator): Promise<void> => {
|
||||
if (pointerType === 'mouse') {
|
||||
await control.click()
|
||||
return
|
||||
}
|
||||
const cdp = await page.context().newCDPSession(page)
|
||||
try {
|
||||
await cdp.send('Emulation.setTouchEmulationEnabled', { enabled: true })
|
||||
await control.click({ trial: true })
|
||||
const bounds = await control.boundingBox()
|
||||
if (!bounds) {
|
||||
throw new Error('Missing toast control target')
|
||||
}
|
||||
// Match Playwright's tap: waiting for Chromium's start ack can turn it into a long press.
|
||||
await Promise.all([
|
||||
cdp.send('Input.dispatchTouchEvent', {
|
||||
type: 'touchStart',
|
||||
touchPoints: [{ x: bounds.x + bounds.width / 2, y: bounds.y + bounds.height / 2 }]
|
||||
}),
|
||||
cdp.send('Input.dispatchTouchEvent', { type: 'touchEnd', touchPoints: [] })
|
||||
])
|
||||
} finally {
|
||||
await cdp.send('Emulation.setTouchEmulationEnabled', { enabled: false })
|
||||
await cdp.detach()
|
||||
}
|
||||
}
|
||||
await pathField.click()
|
||||
await clickToastControl(customToast.getByRole('button', { name: 'Dismiss', exact: true }))
|
||||
await expect(customToast).toBeHidden()
|
||||
await expect(page.getByRole('dialog', { name: /Open host project/i })).toBeVisible()
|
||||
await expect(pathField).toHaveValue(missingPath)
|
||||
expect(await pathField.evaluate((input) => input === document.activeElement)).toBe(true)
|
||||
}
|
||||
// A toast raised while the modal is open comes forward, so its actions run above it.
|
||||
await client.app.evaluate(({ BrowserWindow }) => {
|
||||
BrowserWindow.getAllWindows()[0].webContents.send('star-nag:show', {
|
||||
mode: 'web',
|
||||
surface: 'toast'
|
||||
})
|
||||
})
|
||||
const raisedToast = page
|
||||
.locator('[data-sonner-toast]')
|
||||
.filter({ hasText: 'Onboarding completed!' })
|
||||
await expect(raisedToast).toBeVisible()
|
||||
await pathField.click()
|
||||
await raisedToast.getByRole('button', { name: 'Later', exact: true }).click()
|
||||
await expect(raisedToast).toBeHidden()
|
||||
await expect(page.getByRole('dialog', { name: /Open host project/i })).toBeVisible()
|
||||
await expect(pathField).toHaveValue(missingPath)
|
||||
expect(await pathField.evaluate((input) => input === document.activeElement)).toBe(true)
|
||||
await page.screenshot({
|
||||
path: testInfo.outputPath(`toast-dismissed-modal-preserved-${theme}.png`),
|
||||
animations: 'disabled'
|
||||
})
|
||||
|
||||
// A real action-toast renderer, fed a synthetic notification in this disposable client only.
|
||||
await client.app.evaluate(({ ipcMain, BrowserWindow }) => {
|
||||
ipcMain.removeHandler('mobile:consumePendingUnpairedDeviceAuthFailure')
|
||||
ipcMain.handle('mobile:consumePendingUnpairedDeviceAuthFailure', () => true)
|
||||
BrowserWindow.getAllWindows()[0].webContents.send('mobile:unpairedDeviceAuthFailure')
|
||||
})
|
||||
const actionToast = page
|
||||
.locator('[data-sonner-toast]')
|
||||
.filter({ hasText: 'A device tried to connect but is not paired' })
|
||||
const action = actionToast.getByRole('button', { name: 'Open Mobile Settings' })
|
||||
await expect(action).toBeVisible()
|
||||
await actionToast.locator('[data-title]').click()
|
||||
await expect(actionToast).toBeVisible()
|
||||
await expect(page.getByRole('dialog', { name: /Open host project/i })).toBeVisible()
|
||||
await expect(page.getByPlaceholder('Search settings')).toBeHidden()
|
||||
await expect(pathField).toHaveValue(missingPath)
|
||||
expect(await pathField.evaluate((input) => input === document.activeElement)).toBe(true)
|
||||
|
||||
// Credential prompts deliberately use a higher tier; this visibility fix does not cross it.
|
||||
await page.evaluate(() =>
|
||||
window.__store?.getState().enqueueSshCredentialRequest({
|
||||
requestId: 'toast-layer-fixture',
|
||||
targetId: 'Simulated SSH prompt',
|
||||
kind: 'password',
|
||||
detail: 'Layering fixture only'
|
||||
})
|
||||
)
|
||||
await expect(page.getByRole('dialog', { name: 'SSH Password' })).toBeVisible()
|
||||
await page.screenshot({
|
||||
path: testInfo.outputPath(`higher-modal-residual-${theme}.png`),
|
||||
animations: 'disabled'
|
||||
})
|
||||
expect(
|
||||
await page
|
||||
.locator('[data-slot="dialog-overlay"]')
|
||||
.evaluateAll((overlays) =>
|
||||
Math.max(...overlays.map((overlay) => Number(getComputedStyle(overlay).zIndex)))
|
||||
)
|
||||
).toBe(140)
|
||||
await expect(
|
||||
actionToast.locator('[data-close-button]').click({ trial: true, timeout: 300 })
|
||||
).rejects.toThrow()
|
||||
await expect(page.getByRole('dialog', { name: 'SSH Password' })).toBeVisible()
|
||||
await page.evaluate(() =>
|
||||
window.__store?.getState().removeSshCredentialRequest('toast-layer-fixture')
|
||||
)
|
||||
await expect(pathField).toHaveValue(missingPath)
|
||||
await page
|
||||
.getByRole('dialog', { name: /Open host project/i })
|
||||
.getByRole('button', { name: 'Close', exact: true })
|
||||
.click()
|
||||
await expect(page.locator('[data-slot="dialog-overlay"]')).toHaveCount(0)
|
||||
const toaster = page.locator('[data-sonner-toaster]')
|
||||
await expect(toaster).toHaveCSS('z-index', '47')
|
||||
|
||||
await page.evaluate(async () => {
|
||||
await window.__store?.getState().updateSettings({ experimentalAgentDashboardPopout: true })
|
||||
})
|
||||
await page.evaluate(() => window.__store?.getState().setAgentDashboardDrawerOpen(true))
|
||||
await expect(page.locator('[data-agent-dashboard-sheet]')).toBeVisible()
|
||||
await expect(page.locator('[data-slot="sheet-overlay"]')).toHaveCount(0)
|
||||
await expect(toaster).toHaveCSS('z-index', '47')
|
||||
await page.screenshot({
|
||||
path: testInfo.outputPath(`nonmodal-drawer-${theme}.png`),
|
||||
animations: 'disabled'
|
||||
})
|
||||
await page.evaluate(() => window.__store?.getState().setAgentDashboardDrawerOpen(false))
|
||||
// Scroll-lock alone must not lift notifications over nonmodal surfaces.
|
||||
await page.evaluate(() => document.body.setAttribute('data-scroll-locked', '1'))
|
||||
await expect(toaster).toHaveCSS('z-index', '47')
|
||||
await page.evaluate(() => document.body.removeAttribute('data-scroll-locked'))
|
||||
await action.click()
|
||||
await expect(page.getByPlaceholder('Search settings')).toBeVisible()
|
||||
await assertHiddenIsolation(client.app, testInfo, 'client-final-isolation')
|
||||
await assertHiddenIsolation(electronApp, testInfo, 'host-final-isolation')
|
||||
expect(await client.getDirectSshAttemptTargetIds()).toEqual([])
|
||||
expect(await orcaPage.evaluate(() => window.api.repos.list())).toEqual([])
|
||||
} finally {
|
||||
await client.dispose()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
async function showUnpairedDeviceToast(app: ElectronApplication): Promise<void> {
|
||||
// A real persistent action toast, fed a synthetic notification.
|
||||
await app.evaluate(({ ipcMain, BrowserWindow }) => {
|
||||
ipcMain.removeHandler('mobile:consumePendingUnpairedDeviceAuthFailure')
|
||||
ipcMain.handle('mobile:consumePendingUnpairedDeviceAuthFailure', () => true)
|
||||
BrowserWindow.getAllWindows()[0].webContents.send('mobile:unpairedDeviceAuthFailure')
|
||||
})
|
||||
}
|
||||
|
||||
type RecordedTelemetryEvent = { name: unknown; props: unknown }
|
||||
|
||||
declare global {
|
||||
// Test-only recorder installed in the Electron main process by recordTelemetry.
|
||||
var __toastTelemetry: RecordedTelemetryEvent[] | undefined
|
||||
}
|
||||
|
||||
async function recordTelemetry(app: ElectronApplication): Promise<void> {
|
||||
await app.evaluate(({ ipcMain }) => {
|
||||
const events: RecordedTelemetryEvent[] = []
|
||||
globalThis.__toastTelemetry = events
|
||||
ipcMain.removeHandler('telemetry:track')
|
||||
ipcMain.handle('telemetry:track', (_event, name: unknown, props: unknown) => {
|
||||
events.push({ name, props })
|
||||
return true
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
async function recordedToastActions(app: ElectronApplication): Promise<unknown[]> {
|
||||
const events = await app.evaluate(() => globalThis.__toastTelemetry ?? [])
|
||||
return events
|
||||
.filter((event) => event.name === 'toast_action_over_modal')
|
||||
.map((event) => event.props)
|
||||
}
|
||||
|
||||
async function toasterZIndex(page: Page): Promise<number> {
|
||||
return page
|
||||
.locator('[data-sonner-toaster]')
|
||||
.evaluate((toaster) => Number(getComputedStyle(toaster).zIndex))
|
||||
}
|
||||
|
||||
async function pressAt(page: Page, target: Locator): Promise<void> {
|
||||
const box = await target.boundingBox()
|
||||
if (!box) {
|
||||
throw new Error('Missing press target')
|
||||
}
|
||||
await page.mouse.click(box.x + box.width / 2, box.y + box.height / 2)
|
||||
}
|
||||
|
||||
for (const theme of ['dark', 'light'] as const) {
|
||||
test(`toasts behind a settings dialog come forward on a press and keep its draft (${theme})`, async ({
|
||||
electronApp,
|
||||
orcaPage: page
|
||||
}) => {
|
||||
await recordTelemetry(electronApp)
|
||||
await page.evaluate(async (theme) => {
|
||||
const store = window.__store!.getState()
|
||||
await store.updateSettings({ theme })
|
||||
store.openSettingsPage()
|
||||
store.openSettingsTarget({ pane: 'browser', repoId: null })
|
||||
}, theme)
|
||||
const unpairedToast = page
|
||||
.locator('[data-sonner-toast]')
|
||||
.filter({ hasText: 'A device tried to connect but is not paired' })
|
||||
const action = unpairedToast.getByRole('button', { name: 'Open Mobile Settings' })
|
||||
const mobilePane = page.getByText('Control terminals and agents from your phone.')
|
||||
const dialog = page.getByRole('dialog', { name: 'New browser profile' })
|
||||
const nameField = dialog.getByRole('textbox')
|
||||
|
||||
// An older toast drops behind the modal's backdrop: visible but dimmed, and nothing in it is live.
|
||||
await showUnpairedDeviceToast(electronApp)
|
||||
await expect(action).toBeVisible()
|
||||
await page.getByRole('button', { name: 'Add profile', exact: true }).click()
|
||||
await expect(dialog).toBeVisible()
|
||||
await nameField.fill('Draft profile name')
|
||||
await expect.poll(() => toasterZIndex(page)).toBe(49)
|
||||
await expect(
|
||||
unpairedToast.locator('[data-close-button]').click({ trial: true, timeout: 300 })
|
||||
).rejects.toThrow()
|
||||
|
||||
// A press on the dimmed toast brings it forward without dismissing the modal or moving focus.
|
||||
await pressAt(page, unpairedToast.locator('[data-title]'))
|
||||
await expect.poll(() => toasterZIndex(page)).toBe(60)
|
||||
await expect(dialog).toBeVisible()
|
||||
await expect(nameField).toHaveValue('Draft profile name')
|
||||
await expect(nameField).toBeFocused()
|
||||
await unpairedToast.locator('[data-close-button]').click()
|
||||
await expect(unpairedToast).toHaveCount(0)
|
||||
await expect(dialog).toBeVisible()
|
||||
await expect(nameField).toHaveValue('Draft profile name')
|
||||
await expect(nameField).toBeFocused()
|
||||
|
||||
// Each modal starts lowered; a toast raised while it is open comes forward by itself.
|
||||
await dialog.getByRole('button', { name: 'Cancel', exact: true }).click()
|
||||
await expect(dialog).toBeHidden()
|
||||
await page.getByRole('button', { name: 'Add profile', exact: true }).click()
|
||||
await expect(dialog).toBeVisible()
|
||||
await nameField.fill('Second draft')
|
||||
await showUnpairedDeviceToast(electronApp)
|
||||
await expect(action).toBeVisible()
|
||||
await expect.poll(() => toasterZIndex(page)).toBe(60)
|
||||
await expect(nameField).toBeFocused()
|
||||
|
||||
// The escape hatch: a navigating action runs above the modal, and is counted.
|
||||
expect(await recordedToastActions(electronApp)).toEqual([])
|
||||
await action.click()
|
||||
await expect(mobilePane).toBeVisible()
|
||||
const tracked = await recordedToastActions(electronApp)
|
||||
expect(tracked).toEqual([
|
||||
{ toast_id: 'unpaired-device-auth-failure', modal_kind: 'dialog', raised_by: 'new_toast' }
|
||||
])
|
||||
expect(eventSchemas.toast_action_over_modal.safeParse(tracked[0]).success).toBe(true)
|
||||
})
|
||||
}
|
||||
@@ -1,94 +0,0 @@
|
||||
import { test, expect } from './helpers/orca-app'
|
||||
import { waitForSessionReady } from './helpers/store'
|
||||
|
||||
test.use({ seedTestRepo: false })
|
||||
|
||||
test('global Auto preserves other agents’ choices and the single permission setting persists', async ({
|
||||
orcaPage
|
||||
}) => {
|
||||
await waitForSessionReady(orcaPage)
|
||||
await orcaPage.getByRole('button', { name: 'Settings', exact: true }).click()
|
||||
await orcaPage.getByRole('button', { name: 'Agents', exact: true }).click()
|
||||
const permissions = orcaPage.getByRole('button', { name: 'Permissions', exact: true })
|
||||
const group = orcaPage.getByRole('group', { name: 'Permissions', exact: true })
|
||||
const others = orcaPage.getByRole('button', { name: 'Permissions for other agents' })
|
||||
const othersGroup = orcaPage.getByRole('group', { name: 'Permissions for other agents' })
|
||||
const readPermissions = () =>
|
||||
orcaPage.evaluate(async () => {
|
||||
const settings = await window.api.settings.get()
|
||||
return {
|
||||
default: settings.agentPermissionDefault,
|
||||
claude: settings.agentPermissionOverrides?.claude ?? settings.agentPermissionDefault,
|
||||
codex: settings.agentPermissionOverrides?.codex ?? settings.agentPermissionDefault,
|
||||
grok: settings.agentPermissionOverrides?.grok ?? settings.agentPermissionDefault,
|
||||
opencode: settings.agentPermissionOverrides?.opencode ?? settings.agentPermissionDefault
|
||||
}
|
||||
})
|
||||
|
||||
await permissions.click()
|
||||
await group.getByRole('menuitemradio', { name: /^Full access\b/ }).click()
|
||||
await expect(others).toHaveCount(0)
|
||||
await permissions.click()
|
||||
await group.getByRole('menuitemradio', { name: /^Approve for me\b/ }).click()
|
||||
await permissions.click()
|
||||
await expect(group.getByRole('menuitemradio', { name: /^Approve for me\b/ })).toHaveAttribute(
|
||||
'aria-checked',
|
||||
'true'
|
||||
)
|
||||
await group.getByRole('menuitemradio', { name: /^Approve for me\b/ }).press('Escape')
|
||||
// Fresh profiles keep OpenCode on its own settings, so the agents without Auto differ.
|
||||
await expect(others).toHaveText('Mixed')
|
||||
await expect.poll(readPermissions).toEqual({
|
||||
default: 'auto',
|
||||
claude: 'auto',
|
||||
codex: 'auto',
|
||||
grok: 'full-access',
|
||||
opencode: 'own'
|
||||
})
|
||||
|
||||
await others.click()
|
||||
await othersGroup.getByRole('menuitemradio', { name: /^Each agent's own settings\b/ }).click()
|
||||
await expect.poll(readPermissions).toEqual({
|
||||
default: 'auto',
|
||||
claude: 'auto',
|
||||
codex: 'auto',
|
||||
grok: 'own',
|
||||
opencode: 'own'
|
||||
})
|
||||
|
||||
await orcaPage.reload()
|
||||
await orcaPage.waitForFunction(() => Boolean(window.__store))
|
||||
await waitForSessionReady(orcaPage)
|
||||
await orcaPage.getByRole('button', { name: 'Agents', exact: true }).click()
|
||||
await permissions.click()
|
||||
await expect(group.getByRole('menuitemradio', { name: /^Approve for me\b/ })).toHaveAttribute(
|
||||
'aria-checked',
|
||||
'true'
|
||||
)
|
||||
await group.getByRole('menuitemradio', { name: /^Approve for me\b/ }).press('Escape')
|
||||
await expect(others).toHaveText("Each agent's own settings")
|
||||
await others.click()
|
||||
await expect(
|
||||
othersGroup.getByRole('menuitemradio', { name: /^Each agent's own settings\b/ })
|
||||
).toHaveAttribute('aria-checked', 'true')
|
||||
await othersGroup
|
||||
.getByRole('menuitemradio', { name: /^Each agent's own settings\b/ })
|
||||
.press('Escape')
|
||||
await expect.poll(readPermissions).toEqual({
|
||||
default: 'auto',
|
||||
claude: 'auto',
|
||||
codex: 'auto',
|
||||
grok: 'own',
|
||||
opencode: 'own'
|
||||
})
|
||||
|
||||
await permissions.click()
|
||||
await group.getByRole('menuitemradio', { name: /^Each agent's own settings\b/ }).click()
|
||||
await expect.poll(readPermissions).toEqual({
|
||||
default: 'own',
|
||||
claude: 'own',
|
||||
codex: 'own',
|
||||
grok: 'own',
|
||||
opencode: 'own'
|
||||
})
|
||||
})
|
||||
@@ -1,175 +0,0 @@
|
||||
import { expect, test } from './helpers/orca-app'
|
||||
import { waitForActiveWorktree, waitForSessionReady } from './helpers/store'
|
||||
|
||||
const PANE_COUNT = 100
|
||||
const BASE_TIME = 1_700_000_000_000
|
||||
|
||||
type BurstPane = {
|
||||
paneKey: string
|
||||
tabId: string
|
||||
terminalHandle: string
|
||||
worktreeId: string
|
||||
}
|
||||
|
||||
type BurstEvidence = {
|
||||
statusPublications: number
|
||||
statusPublicationsAtVisible: number
|
||||
finalStates: string[]
|
||||
firstHistory: string[]
|
||||
}
|
||||
|
||||
test('keeps the visible Agent Dashboard interactive during a 100-pane status replay', async ({
|
||||
electronApp,
|
||||
orcaPage
|
||||
}) => {
|
||||
await waitForSessionReady(orcaPage)
|
||||
const worktreeId = await waitForActiveWorktree(orcaPage)
|
||||
const panes = await orcaPage.evaluate(
|
||||
({ baseTime, paneCount, worktreeId }): BurstPane[] => {
|
||||
const store = window.__store
|
||||
if (!store) {
|
||||
throw new Error('window.__store is unavailable')
|
||||
}
|
||||
const state = store.getState()
|
||||
const tab =
|
||||
state.tabsByWorktree[worktreeId]?.[0] ??
|
||||
state.createTab(worktreeId, undefined, undefined, {
|
||||
activate: false,
|
||||
id: 'agent-dashboard-burst-tab'
|
||||
})
|
||||
const settings = store.getState().settings
|
||||
if (!settings) {
|
||||
throw new Error('Settings are not loaded')
|
||||
}
|
||||
store.setState({
|
||||
agentDashboardDrawerOpen: false,
|
||||
settings: {
|
||||
...settings,
|
||||
experimentalAgentDashboardPopout: true,
|
||||
experimentalAgentDashboardMode: 'in-window',
|
||||
experimentalAgentDashboardShowIdle: true,
|
||||
tabAutoGenerateTitle: false
|
||||
}
|
||||
})
|
||||
const seeded: BurstPane[] = []
|
||||
for (let index = 0; index < paneCount; index += 1) {
|
||||
const leafId = `00000000-0000-4000-8000-${String(index + 1).padStart(12, '0')}`
|
||||
const paneKey = `${tab.id}:${leafId}`
|
||||
const terminalHandle = `agent-dashboard-burst-${index}`
|
||||
store
|
||||
.getState()
|
||||
.setAgentStatus(
|
||||
paneKey,
|
||||
{ state: 'working', prompt: `Baseline task ${index}`, agentType: 'codex' },
|
||||
'Codex',
|
||||
{ updatedAt: baseTime - 1, stateStartedAt: baseTime - 1 },
|
||||
{ tabId: tab.id, terminalHandle, worktreeId }
|
||||
)
|
||||
seeded.push({ paneKey, tabId: tab.id, terminalHandle, worktreeId })
|
||||
}
|
||||
const probe = { statusPublications: 0 }
|
||||
;(window as typeof window & { __agentDashboardBurstProbe?: typeof probe })[
|
||||
'__agentDashboardBurstProbe'
|
||||
] = probe
|
||||
store.subscribe((next, previous) => {
|
||||
if (next.agentStatusByPaneKey !== previous.agentStatusByPaneKey) {
|
||||
probe.statusPublications += 1
|
||||
}
|
||||
})
|
||||
return seeded
|
||||
},
|
||||
{ baseTime: BASE_TIME, paneCount: PANE_COUNT, worktreeId }
|
||||
)
|
||||
|
||||
const dashboardButton = orcaPage.getByRole('button', { name: /Agent Dashboard/ })
|
||||
await expect(dashboardButton).toBeVisible()
|
||||
|
||||
await electronApp.evaluate(
|
||||
({ BrowserWindow }, { baseTime, panes }) => {
|
||||
const window = BrowserWindow.getAllWindows().find((candidate) => !candidate.isDestroyed())
|
||||
if (!window) {
|
||||
throw new Error('Orca BrowserWindow is unavailable')
|
||||
}
|
||||
for (const [index, pane] of panes.entries()) {
|
||||
const receivedAt = baseTime + index
|
||||
window.webContents.send('agentStatus:set', {
|
||||
...pane,
|
||||
state: 'done',
|
||||
prompt: `Completed task ${index}`,
|
||||
agentType: 'codex',
|
||||
lastAssistantMessage: `Completed ${index}`,
|
||||
receivedAt,
|
||||
stateStartedAt: receivedAt
|
||||
})
|
||||
}
|
||||
},
|
||||
{ baseTime: BASE_TIME, panes }
|
||||
)
|
||||
|
||||
const interactionStartedAt = performance.now()
|
||||
await dashboardButton.click()
|
||||
await orcaPage.locator('[data-agent-dashboard-sheet]').waitFor({ state: 'visible' })
|
||||
const interactionElapsedMs = performance.now() - interactionStartedAt
|
||||
const statusPublicationsAtVisible = await orcaPage.evaluate(() => {
|
||||
const probe = (
|
||||
window as typeof window & { __agentDashboardBurstProbe?: { statusPublications: number } }
|
||||
).__agentDashboardBurstProbe
|
||||
if (!probe) {
|
||||
throw new Error('Agent Dashboard burst evidence is unavailable')
|
||||
}
|
||||
return probe.statusPublications
|
||||
})
|
||||
|
||||
await expect
|
||||
.poll(
|
||||
() =>
|
||||
orcaPage.evaluate(
|
||||
(paneKeys) => {
|
||||
const statuses = window.__store?.getState().agentStatusByPaneKey
|
||||
return paneKeys.every((paneKey) => statuses?.get(paneKey)?.state === 'done')
|
||||
},
|
||||
panes.map(({ paneKey }) => paneKey)
|
||||
),
|
||||
{ timeout: 30_000 }
|
||||
)
|
||||
.toBe(true)
|
||||
|
||||
const evidence = await orcaPage.evaluate(
|
||||
({ paneKeys, statusPublicationsAtVisible }): BurstEvidence => {
|
||||
const state = window.__store?.getState()
|
||||
const probe = (
|
||||
window as typeof window & { __agentDashboardBurstProbe?: { statusPublications: number } }
|
||||
).__agentDashboardBurstProbe
|
||||
if (!state || !probe) {
|
||||
throw new Error('Agent Dashboard burst evidence is unavailable')
|
||||
}
|
||||
const first = state.agentStatusByPaneKey.get(paneKeys[0])
|
||||
return {
|
||||
statusPublications: probe.statusPublications,
|
||||
statusPublicationsAtVisible,
|
||||
finalStates: paneKeys.map(
|
||||
(paneKey) => state.agentStatusByPaneKey.get(paneKey)?.state ?? 'missing'
|
||||
),
|
||||
firstHistory: first?.stateHistory.map(({ state: historyState }) => historyState) ?? []
|
||||
}
|
||||
},
|
||||
{ paneKeys: panes.map(({ paneKey }) => paneKey), statusPublicationsAtVisible }
|
||||
)
|
||||
|
||||
console.log(
|
||||
JSON.stringify({
|
||||
sha: process.env.GITHUB_SHA ?? 'local',
|
||||
paneCount: PANE_COUNT,
|
||||
ipcEvents: PANE_COUNT,
|
||||
interactionElapsedMs: Math.round(interactionElapsedMs * 10) / 10,
|
||||
statusPublications: evidence.statusPublications,
|
||||
statusPublicationsAtVisible: evidence.statusPublicationsAtVisible,
|
||||
firstHistory: evidence.firstHistory
|
||||
})
|
||||
)
|
||||
|
||||
expect(evidence.statusPublicationsAtVisible).toBeLessThanOrEqual(3)
|
||||
expect(evidence.statusPublications).toBeLessThanOrEqual(3)
|
||||
expect(new Set(evidence.finalStates)).toEqual(new Set(['done']))
|
||||
expect(evidence.firstHistory.at(-1)).toBe('working')
|
||||
})
|
||||
@@ -1,211 +0,0 @@
|
||||
import { expect, test } from './helpers/orca-app'
|
||||
import { evaluatePolled } from './helpers/page-evaluate-polled'
|
||||
import { launchWithUnreachableSshWorkspaces } from './helpers/seeded-ssh-workspaces'
|
||||
|
||||
for (const host of ['local', 'ssh'] as const) {
|
||||
for (const hiddenBy of ['host', 'parent'] as const) {
|
||||
test(`agent send picker reveals ${host} target hidden by ${hiddenBy} and restores collapse on close`, async ({
|
||||
testRepoPath
|
||||
}, testInfo) => {
|
||||
test.setTimeout(3 * 60_000)
|
||||
const launched = await launchWithUnreachableSshWorkspaces(testInfo, testRepoPath, {
|
||||
label: 'Remote builder',
|
||||
workspaces: [
|
||||
{ name: 'parent', displayName: 'Remote workspace' },
|
||||
{ name: 'child', displayName: 'Remote child' }
|
||||
]
|
||||
})
|
||||
try {
|
||||
const { page, ssh, localWorktreeId } = launched
|
||||
await page.emulateMedia({ reducedMotion: 'reduce' })
|
||||
const ids = await evaluatePolled(
|
||||
page,
|
||||
async ({ host, hiddenBy, ssh, localWorktreeId }) => {
|
||||
const store = window.__store!
|
||||
const state = store.getState()
|
||||
const localChild = Object.values(state.worktreesByRepo)
|
||||
.flat()
|
||||
.find((worktree) => worktree.hostId === 'local' && worktree.id !== localWorktreeId)
|
||||
const hostId = host === 'local' ? 'local' : ssh.hostId
|
||||
const parent = host === 'local' ? localWorktreeId : ssh.worktreeIds.parent!
|
||||
const child = host === 'local' ? localChild?.id : ssh.worktreeIds.child
|
||||
if (hiddenBy === 'parent' && !child) {
|
||||
throw new Error('Seeded child workspace missing')
|
||||
}
|
||||
const target = hiddenBy === 'parent' ? child! : parent
|
||||
const now = Date.now()
|
||||
const noted = await state.updateWorktreeMeta(
|
||||
target,
|
||||
{
|
||||
...(hiddenBy === 'parent' ? { displayName: 'Child workspace' } : {}),
|
||||
isPinned: false,
|
||||
diffComments: [
|
||||
{
|
||||
id: 'picker-note',
|
||||
worktreeId: target,
|
||||
filePath: 'README.md',
|
||||
source: 'diff' as const,
|
||||
lineNumber: 1,
|
||||
body: 'Check sidebar disclosure',
|
||||
side: 'modified' as const,
|
||||
createdAt: now
|
||||
}
|
||||
]
|
||||
},
|
||||
{ executionHostId: hostId }
|
||||
)
|
||||
if (!noted.ok) {
|
||||
throw new Error(`Writing the note failed: ${noted.error}`)
|
||||
}
|
||||
if (hiddenBy === 'parent') {
|
||||
await state.assignWorktreeParent(target, { parentWorktreeId: parent })
|
||||
}
|
||||
const targetWorktree = Object.values(store.getState().worktreesByRepo)
|
||||
.flat()
|
||||
.find((worktree) => worktree.id === target)!
|
||||
const targetRepoId = targetWorktree.repoId
|
||||
const collapsedGroups = [
|
||||
hiddenBy === 'host' ? `host:${hostId}` : `lineage:${hostId}|${parent}`
|
||||
]
|
||||
const tabId = 'picker-agent-tab'
|
||||
const leafId = 'aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa'
|
||||
const paneKey = `${tabId}:${leafId}`
|
||||
// Why live locally: the mounted pane reattaches and drops an unknown local PTY; the unreachable SSH host cannot.
|
||||
const ptyId =
|
||||
host === 'local'
|
||||
? (
|
||||
await window.api.pty.spawn({
|
||||
cols: 80,
|
||||
rows: 24,
|
||||
cwd: targetWorktree.path,
|
||||
worktreeId: target,
|
||||
tabId,
|
||||
leafId
|
||||
})
|
||||
).id
|
||||
: `${ssh.hostId}@@picker-agent-pty`
|
||||
await window.api.ui.set({ groupBy: 'none', collapsedGroups })
|
||||
state.setSidebarOpen(true)
|
||||
state.setShowSleepingWorkspaces(true)
|
||||
state.setHideDefaultBranchWorkspace(false)
|
||||
state.setFilterRepoIds([])
|
||||
state.setRightSidebarTab('source-control')
|
||||
state.setRightSidebarOpen(true)
|
||||
const current = store.getState()
|
||||
store.setState({
|
||||
groupBy: 'none',
|
||||
visibleWorkspaceHostIds: ['local', ssh.hostId],
|
||||
workspaceHostScope: 'all',
|
||||
activeRepoId: targetRepoId,
|
||||
activeWorktreeId: target,
|
||||
activeWorkspaceKey: `worktree:${target}`,
|
||||
activeWorkspaceExecutionHostId: hostId,
|
||||
pendingRevealWorktree: null,
|
||||
agentSendPopoverTargetMode: null,
|
||||
collapsedGroups: new Set(collapsedGroups),
|
||||
agentActivityDisplayMode: 'compact',
|
||||
worktreeCardProperties: [
|
||||
...current.worktreeCardProperties.filter(
|
||||
(property) => property !== 'inline-agents'
|
||||
),
|
||||
'inline-agents'
|
||||
],
|
||||
tabsByWorktree: {
|
||||
...current.tabsByWorktree,
|
||||
[target]: [
|
||||
...(current.tabsByWorktree[target] ?? []),
|
||||
{
|
||||
id: tabId,
|
||||
worktreeId: target,
|
||||
ptyId,
|
||||
title: 'Claude',
|
||||
customTitle: null,
|
||||
color: null,
|
||||
sortOrder: 1,
|
||||
createdAt: now
|
||||
}
|
||||
]
|
||||
},
|
||||
terminalLayoutsByTabId: {
|
||||
...current.terminalLayoutsByTabId,
|
||||
[tabId]: {
|
||||
root: { type: 'leaf', leafId },
|
||||
activeLeafId: leafId,
|
||||
expandedLeafId: null,
|
||||
ptyIdsByLeafId: { [leafId]: ptyId }
|
||||
}
|
||||
},
|
||||
ptyIdsByTabId: { ...current.ptyIdsByTabId, [tabId]: [ptyId] },
|
||||
agentStatusByPaneKey: current.agentStatusByPaneKey.replace([
|
||||
[
|
||||
paneKey,
|
||||
{
|
||||
state: 'working',
|
||||
prompt: 'Check sidebar disclosure',
|
||||
updatedAt: now,
|
||||
stateStartedAt: now,
|
||||
agentType: 'claude',
|
||||
paneKey,
|
||||
worktreeId: target,
|
||||
stateHistory: []
|
||||
}
|
||||
]
|
||||
])
|
||||
})
|
||||
return {
|
||||
target,
|
||||
control: host === 'local' ? ssh.worktreeIds.parent! : localWorktreeId,
|
||||
collapsedGroups
|
||||
}
|
||||
},
|
||||
{ host, hiddenBy, ssh, localWorktreeId }
|
||||
)
|
||||
const targetRow = page.locator(
|
||||
`[data-worktree-sidebar] [role="option"][data-worktree-id=${JSON.stringify(ids.target)}]`
|
||||
)
|
||||
const controlRow = page.locator(
|
||||
`[data-worktree-sidebar] [role="option"][data-worktree-id=${JSON.stringify(ids.control)}]`
|
||||
)
|
||||
await expect(targetRow).toHaveCount(0)
|
||||
await expect(controlRow).toBeVisible()
|
||||
const sendButton = page.getByRole('button', {
|
||||
name: 'Send notes to an agent',
|
||||
exact: true
|
||||
})
|
||||
await expect(sendButton).toBeEnabled()
|
||||
await page.screenshot({
|
||||
path: testInfo.outputPath('before-picker.png'),
|
||||
clip: { x: 0, y: 170, width: 280, height: 500 }
|
||||
})
|
||||
await sendButton.click()
|
||||
await expect(page.getByText('Send notes to', { exact: true })).toBeVisible()
|
||||
try {
|
||||
await expect(targetRow).toBeVisible()
|
||||
await expect(targetRow.locator('[data-agent-send-target="eligible"]')).toBeVisible()
|
||||
} finally {
|
||||
await page.screenshot({
|
||||
path: testInfo.outputPath('after-picker.png'),
|
||||
clip: { x: 0, y: 170, width: 280, height: 500 }
|
||||
})
|
||||
}
|
||||
await expect(controlRow).toBeVisible()
|
||||
await expect
|
||||
.poll(() => page.evaluate(() => window.__store!.getState().pendingRevealWorktree))
|
||||
.toBeNull()
|
||||
await page.keyboard.press('Escape')
|
||||
await expect
|
||||
.poll(() => page.evaluate(() => window.__store!.getState().agentSendPopoverTargetMode))
|
||||
.toBeNull()
|
||||
await expect(targetRow).toHaveCount(0)
|
||||
expect(await page.evaluate(() => [...window.__store!.getState().collapsedGroups])).toEqual(
|
||||
ids.collapsedGroups
|
||||
)
|
||||
expect(
|
||||
await page.evaluate(async () => (await window.api.ui.get()).collapsedGroups)
|
||||
).toEqual(ids.collapsedGroups)
|
||||
} finally {
|
||||
await launched.dispose()
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -1,363 +0,0 @@
|
||||
import {
|
||||
readPersistedProfileState,
|
||||
mutateStoppedProfileState
|
||||
} from './helpers/persisted-profile-state'
|
||||
import { execFileSync, type ChildProcess } from 'node:child_process'
|
||||
import { existsSync, readFileSync, writeFileSync } from 'node:fs'
|
||||
import path from 'node:path'
|
||||
|
||||
import type { ElectronApplication, Page } from '@stablyai/playwright-test'
|
||||
import { test, expect } from './helpers/orca-app'
|
||||
import { TEST_REPO_PATH_FILE } from './global-setup'
|
||||
import {
|
||||
execInTerminal,
|
||||
waitForActivePaneHookDescriptor,
|
||||
waitForActivePanePtyId,
|
||||
waitForActiveTerminalManager,
|
||||
waitForPaneCount,
|
||||
waitForTerminalOutput
|
||||
} from './helpers/terminal'
|
||||
import { ensureTerminalVisible, waitForActiveWorktree, waitForSessionReady } from './helpers/store'
|
||||
import { attachRepoAndOpenTerminal, createRestartSession } from './helpers/orca-restart'
|
||||
import { PROTOCOL_VERSION } from '../../src/main/daemon/protocol/daemon-protocol-version'
|
||||
import type { AgentProviderSessionKey } from '../../src/shared/agent-session/lifecycle/agent-session-resume'
|
||||
|
||||
const PROVIDER_SESSION_ID = 'e2e-live-force-exit-session'
|
||||
|
||||
type PersistedWorkspaceSession = {
|
||||
tabsByWorktree?: Record<string, { id?: unknown; ptyId?: unknown }[]>
|
||||
terminalLayoutsByTabId?: Record<string, unknown>
|
||||
activeWorktreeIdsOnShutdown?: unknown
|
||||
sleepingAgentSessionsByPaneKey?: Record<
|
||||
string,
|
||||
{
|
||||
providerSession?: { id?: unknown }
|
||||
launchConfig?: {
|
||||
agentCommand?: string
|
||||
agentArgs?: string
|
||||
agentEnv?: Record<string, string>
|
||||
}
|
||||
}
|
||||
>
|
||||
}
|
||||
|
||||
type PersistedData = {
|
||||
workspaceSession?: PersistedWorkspaceSession
|
||||
}
|
||||
|
||||
function readPersistedData(userDataDir: string): PersistedData {
|
||||
// oxlint-disable-next-line typescript/consistent-type-assertions -- SAFETY: This test owns the persisted fixture; optional fields are checked at use sites.
|
||||
return readPersistedProfileState(userDataDir) as PersistedData
|
||||
}
|
||||
|
||||
function daemonPidPath(userDataDir: string): string {
|
||||
return path.join(userDataDir, 'daemon', `daemon-v${PROTOCOL_VERSION}.pid`)
|
||||
}
|
||||
|
||||
function readDaemonPid(userDataDir: string): number {
|
||||
const raw = readFileSync(daemonPidPath(userDataDir), 'utf8')
|
||||
const parsed = JSON.parse(raw) as { pid?: unknown }
|
||||
if (typeof parsed.pid !== 'number') {
|
||||
throw new Error(`Daemon pid file did not contain a numeric pid: ${raw}`)
|
||||
}
|
||||
return parsed.pid
|
||||
}
|
||||
|
||||
function hasExited(proc: ChildProcess): boolean {
|
||||
return proc.exitCode !== null || proc.signalCode !== null
|
||||
}
|
||||
|
||||
function waitForExit(proc: ChildProcess, timeoutMs = 5000): Promise<void> {
|
||||
if (hasExited(proc)) {
|
||||
return Promise.resolve()
|
||||
}
|
||||
return new Promise((resolve) => {
|
||||
const timeout = setTimeout<[]>(resolve, timeoutMs)
|
||||
timeout.unref?.()
|
||||
proc.once('exit', () => {
|
||||
clearTimeout(timeout)
|
||||
resolve()
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
async function forceKillElectronApp(app: ElectronApplication): Promise<void> {
|
||||
const proc = app.process()
|
||||
if (!proc.pid || hasExited(proc)) {
|
||||
return
|
||||
}
|
||||
try {
|
||||
if (process.platform === 'win32') {
|
||||
execFileSync('taskkill', ['/pid', String(proc.pid), '/T', '/F'], { stdio: 'ignore' })
|
||||
} else {
|
||||
process.kill(proc.pid, 'SIGKILL')
|
||||
}
|
||||
} catch {}
|
||||
await waitForExit(proc)
|
||||
}
|
||||
|
||||
function killPid(pid: number): void {
|
||||
try {
|
||||
if (process.platform === 'win32') {
|
||||
execFileSync('taskkill', ['/pid', String(pid), '/T', '/F'], { stdio: 'ignore' })
|
||||
return
|
||||
}
|
||||
process.kill(pid, 'SIGKILL')
|
||||
} catch {}
|
||||
}
|
||||
|
||||
function stripPersistedPtyOwnership(userDataDir: string): void {
|
||||
return mutateStoppedProfileState(userDataDir, (state) => {
|
||||
// oxlint-disable-next-line typescript/consistent-type-assertions -- SAFETY: This test owns the persisted fixture; optional fields are checked at use sites.
|
||||
const data = state as PersistedData
|
||||
const session = data.workspaceSession
|
||||
if (!session) {
|
||||
throw new Error('Expected persisted workspace session')
|
||||
}
|
||||
for (const tabs of Object.values(session.tabsByWorktree ?? {})) {
|
||||
for (const tab of tabs) {
|
||||
tab.ptyId = null
|
||||
}
|
||||
}
|
||||
// Model crash/update recovery with saved UI/resume state but no old pane/daemon owner (#6370).
|
||||
session.terminalLayoutsByTabId = {}
|
||||
session.activeWorktreeIdsOnShutdown = []
|
||||
for (const record of Object.values(session.sleepingAgentSessionsByPaneKey ?? {})) {
|
||||
if (record.providerSession?.id === PROVIDER_SESSION_ID) {
|
||||
// Echo proves the resume command launched without depending on installed/authenticated Codex.
|
||||
record.launchConfig = { agentCommand: 'echo', agentArgs: '', agentEnv: {} }
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
function persistedLiveRecordExists(userDataDir: string): boolean {
|
||||
const records = readPersistedData(userDataDir).workspaceSession?.sleepingAgentSessionsByPaneKey
|
||||
return Object.values(records ?? {}).some(
|
||||
(record) => record.providerSession?.id === PROVIDER_SESSION_ID
|
||||
)
|
||||
}
|
||||
|
||||
async function captureOutputRow(page: Page, expected: string, proofPath: string): Promise<void> {
|
||||
let clip: { x: number; y: number; width: number; height: number } | null = null
|
||||
await expect
|
||||
.poll(
|
||||
async () => {
|
||||
clip = await page.evaluate((expected) => {
|
||||
const state = window.__store?.getState()
|
||||
const tabId = state?.activeTabId
|
||||
const manager = tabId ? window.__paneManagers?.get(tabId) : null
|
||||
const pane = manager?.getActivePane?.() ?? manager?.getPanes?.()[0]
|
||||
const screen = pane?.container.querySelector('.xterm-screen')
|
||||
if (!pane || !screen) {
|
||||
return null
|
||||
}
|
||||
const buffer = pane.terminal.buffer.active
|
||||
const bounds = screen.getBoundingClientRect()
|
||||
const rowHeight = bounds.height / pane.terminal.rows
|
||||
for (let row = 0; row < pane.terminal.rows; row += 1) {
|
||||
const text = buffer
|
||||
.getLine(buffer.viewportY + row)
|
||||
?.translateToString(true)
|
||||
.trim()
|
||||
if (text === expected) {
|
||||
return {
|
||||
x: bounds.x,
|
||||
y: bounds.y + row * rowHeight,
|
||||
width: bounds.width,
|
||||
height: rowHeight
|
||||
}
|
||||
}
|
||||
}
|
||||
return null
|
||||
}, expected)
|
||||
return clip !== null
|
||||
},
|
||||
{ timeout: 15_000 }
|
||||
)
|
||||
.toBe(true)
|
||||
if (!clip) {
|
||||
throw new Error('Expected output row was not rendered')
|
||||
}
|
||||
await page.screenshot({ path: proofPath, clip })
|
||||
}
|
||||
|
||||
test.describe.configure({ mode: 'serial' })
|
||||
|
||||
for (const agent of ['codex', 'cursor'] as const) {
|
||||
const providerSessionKey: AgentProviderSessionKey =
|
||||
agent === 'cursor' ? 'conversation_id' : 'session_id'
|
||||
test(`resumes a live ${agent} record after force-exit restart when pane PTY ownership is gone`, async (// oxlint-disable-next-line no-empty-pattern -- Playwright's second fixture arg is testInfo; the first must be an object destructure to opt out of the default fixture set.
|
||||
{}, testInfo) => {
|
||||
const repoPath = readFileSync(TEST_REPO_PATH_FILE, 'utf-8').trim()
|
||||
if (!repoPath || !existsSync(repoPath)) {
|
||||
test.skip(true, 'Global setup did not produce a seeded test repo')
|
||||
return
|
||||
}
|
||||
|
||||
const session = createRestartSession(testInfo, {
|
||||
ORCA_BACKGROUND_LAUNCH: '1',
|
||||
ORCA_DISABLE_CODEX_TRUST_RPC: '1'
|
||||
})
|
||||
const seedPath = path.join(session.userDataDir, 'orca-data.json')
|
||||
const seed = JSON.parse(readFileSync(seedPath, 'utf8'))
|
||||
seed.settings.agentStatusHooksEnabled = false
|
||||
writeFileSync(seedPath, JSON.stringify(seed))
|
||||
let firstApp: ElectronApplication | null = null
|
||||
let secondApp: ElectronApplication | null = null
|
||||
|
||||
try {
|
||||
const firstLaunch = await session.launch()
|
||||
firstApp = firstLaunch.app
|
||||
const page = firstLaunch.page
|
||||
expect(
|
||||
await firstApp.evaluate(({ BrowserWindow }) =>
|
||||
BrowserWindow.getAllWindows().every((window) => !window.isVisible())
|
||||
)
|
||||
).toBe(true)
|
||||
expect(
|
||||
await page.evaluate(() => window.__store?.getState().settings?.agentStatusHooksEnabled)
|
||||
).toBe(false)
|
||||
expect(await firstApp.evaluate(() => process.env.ORCA_DISABLE_CODEX_TRUST_RPC)).toBe('1')
|
||||
const worktreeId = await attachRepoAndOpenTerminal(page, repoPath)
|
||||
await waitForSessionReady(page)
|
||||
// The session writer requires hydrationSucceeded; writing earlier silently loses the fixture.
|
||||
await expect
|
||||
.poll(() => page.evaluate(() => window.__store?.getState().hydrationSucceeded === true), {
|
||||
timeout: 30_000,
|
||||
message: 'hydrationSucceeded did not become true before persisting the live record'
|
||||
})
|
||||
.toBe(true)
|
||||
await waitForActiveWorktree(page)
|
||||
await ensureTerminalVisible(page)
|
||||
await waitForActiveTerminalManager(page, 30_000)
|
||||
await waitForPaneCount(page, 1, 30_000)
|
||||
|
||||
const descriptor = await waitForActivePaneHookDescriptor(page)
|
||||
const ptyId = await waitForActivePanePtyId(page)
|
||||
const transcriptPath =
|
||||
agent === 'codex'
|
||||
? session.seedCodexResumeRollout(PROVIDER_SESSION_ID, repoPath)
|
||||
: undefined
|
||||
const marker = `AGENT_LIVE_FORCE_EXIT_${Date.now()}`
|
||||
await execInTerminal(page, ptyId, `echo ${marker}`)
|
||||
await waitForTerminalOutput(page, marker)
|
||||
if (agent === 'cursor') {
|
||||
const before = testInfo.outputPath('cursor-resume-before.png')
|
||||
await captureOutputRow(page, marker, before)
|
||||
await testInfo.attach('Cursor fixture before checkpoint', {
|
||||
path: before,
|
||||
contentType: 'image/png'
|
||||
})
|
||||
}
|
||||
|
||||
await page.evaluate(
|
||||
({
|
||||
paneKey,
|
||||
worktreeId: wtId,
|
||||
providerSessionId,
|
||||
transcriptPath,
|
||||
agent,
|
||||
providerSessionKey
|
||||
}) => {
|
||||
window.__store?.getState().setAgentStatus(
|
||||
paneKey,
|
||||
{ state: 'working', prompt: 'finish the task', agentType: agent },
|
||||
agent === 'cursor' ? 'Cursor' : 'Codex',
|
||||
undefined,
|
||||
{ worktreeId: wtId },
|
||||
{
|
||||
providerSession: {
|
||||
key: providerSessionKey,
|
||||
id: providerSessionId,
|
||||
transcriptPath
|
||||
}
|
||||
}
|
||||
)
|
||||
},
|
||||
{
|
||||
paneKey: descriptor.paneKey,
|
||||
worktreeId: descriptor.worktreeId,
|
||||
providerSessionId: PROVIDER_SESSION_ID,
|
||||
transcriptPath,
|
||||
agent,
|
||||
providerSessionKey
|
||||
}
|
||||
)
|
||||
|
||||
// Exercise quit capture: origin:'quit' changes the live record, triggering the
|
||||
// hydration-gated writer before polling persisted state.
|
||||
await page.evaluate(() => window.__store?.getState().captureAllSleepingAgentSessions('quit'))
|
||||
|
||||
// Poll through the 150ms renderer debounce and up-to-5s main save with CI timer headroom; report store/disk state on timeout.
|
||||
const persistDeadline = Date.now() + 30_000
|
||||
let persisted = false
|
||||
while (Date.now() < persistDeadline) {
|
||||
if (persistedLiveRecordExists(session.userDataDir)) {
|
||||
persisted = true
|
||||
break
|
||||
}
|
||||
await page.waitForTimeout(250)
|
||||
}
|
||||
if (!persisted) {
|
||||
const storeRecords = await page.evaluate(
|
||||
() => window.__store?.getState().sleepingAgentSessionsByPaneKey
|
||||
)
|
||||
throw new Error(
|
||||
`Live sleeping-agent record was not persisted before force exit. store=${JSON.stringify(
|
||||
storeRecords
|
||||
)} disk=${JSON.stringify(
|
||||
readPersistedData(session.userDataDir).workspaceSession?.sleepingAgentSessionsByPaneKey
|
||||
)}`
|
||||
)
|
||||
}
|
||||
|
||||
const daemonPid = readDaemonPid(session.userDataDir)
|
||||
await forceKillElectronApp(firstApp)
|
||||
firstApp = null
|
||||
killPid(daemonPid)
|
||||
stripPersistedPtyOwnership(session.userDataDir)
|
||||
|
||||
const secondLaunch = await session.launch()
|
||||
secondApp = secondLaunch.app
|
||||
await waitForSessionReady(secondLaunch.page)
|
||||
await expect
|
||||
.poll(
|
||||
async () => secondLaunch.page.evaluate(() => window.__store?.getState().activeWorktreeId),
|
||||
{ timeout: 15_000 }
|
||||
)
|
||||
.toBe(worktreeId)
|
||||
await ensureTerminalVisible(secondLaunch.page)
|
||||
await waitForActiveTerminalManager(secondLaunch.page, 30_000)
|
||||
|
||||
await waitForTerminalOutput(secondLaunch.page, PROVIDER_SESSION_ID, 30_000)
|
||||
if (agent === 'cursor') {
|
||||
expect(
|
||||
await secondApp.evaluate(({ BrowserWindow }) =>
|
||||
BrowserWindow.getAllWindows().every((window) => !window.isVisible())
|
||||
)
|
||||
).toBe(true)
|
||||
const after = testInfo.outputPath('cursor-resume-after.png')
|
||||
await captureOutputRow(secondLaunch.page, `--resume ${PROVIDER_SESSION_ID}`, after)
|
||||
await testInfo.attach('Cursor fixture after cold resume dispatch', {
|
||||
path: after,
|
||||
contentType: 'image/png'
|
||||
})
|
||||
}
|
||||
|
||||
const terminalTabCount = await secondLaunch.page.evaluate(
|
||||
(wtId) => (window.__store?.getState().tabsByWorktree[wtId] ?? []).length,
|
||||
worktreeId
|
||||
)
|
||||
expect(terminalTabCount).toBe(2)
|
||||
} finally {
|
||||
if (secondApp) {
|
||||
await session.close(secondApp)
|
||||
}
|
||||
if (firstApp) {
|
||||
await forceKillElectronApp(firstApp)
|
||||
}
|
||||
await session.dispose()
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -1,393 +0,0 @@
|
||||
import { appendFileSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs'
|
||||
import { execFileSync } from 'node:child_process'
|
||||
import path from 'node:path'
|
||||
import type { ElectronApplication, Page } from '@stablyai/playwright-test'
|
||||
import { expect, test } from './helpers/orca-app'
|
||||
|
||||
const ANCHOR_TOKEN = 'E2E_LIVE_LOG_STABLE_ANCHOR'
|
||||
const INITIAL_PAYLOAD_BYTES = 9 * 1024 * 1024
|
||||
const APPEND_CADENCE_MS = 5_000
|
||||
const SETTLEMENT_MS = 500
|
||||
// Pre-GC peak samples vary with runner scheduling; allow the settled-retention noise floor.
|
||||
const PEAK_MEMORY_NOISE_ALLOWANCE_MB = 25
|
||||
|
||||
type CrashProbe = { processGone: { reason: string; exitCode: number } | null }
|
||||
type MemorySample = {
|
||||
jsHeapMb: number
|
||||
privateMb: number
|
||||
workingSetMb: number
|
||||
}
|
||||
|
||||
declare global {
|
||||
var __liveLogCrashProbe: CrashProbe | undefined
|
||||
}
|
||||
|
||||
test.describe('Agent Session History live log', () => {
|
||||
test.use({
|
||||
orcaAppExtraArgs: ['--js-flags=--expose-gc', '--enable-precise-memory-info']
|
||||
})
|
||||
|
||||
test('keeps a long View Log viewport stable while the transcript grows', async ({
|
||||
electronApp,
|
||||
orcaPage,
|
||||
testRepoPath
|
||||
}, testInfo) => {
|
||||
test.setTimeout(10 * 60_000)
|
||||
const fixture = await seedSyntheticSession(electronApp, testRepoPath)
|
||||
await armMainProcessCrashProbe(electronApp)
|
||||
await electronApp.evaluate(({ BrowserWindow }) => {
|
||||
BrowserWindow.getAllWindows()[0]?.webContents.setZoomFactor(1)
|
||||
})
|
||||
|
||||
await orcaPage.setViewportSize({ width: 520, height: 720 })
|
||||
await openSessionHistory(orcaPage)
|
||||
const title = orcaPage.getByText(fixture.title, { exact: true }).first()
|
||||
await expect(title).toBeVisible({ timeout: 30_000 })
|
||||
await title.click()
|
||||
await orcaPage.getByText('View Log', { exact: true }).click()
|
||||
await expect
|
||||
.poll(() => readProbeOrNull(orcaPage), { timeout: 120_000 })
|
||||
.toMatchObject({ filePath: fixture.filePath, valueLength: fixture.initialLength })
|
||||
await orcaPage.setViewportSize({ width: 900, height: 720 })
|
||||
await orcaPage.evaluate(async () => {
|
||||
const state = window.__store?.getState()
|
||||
state?.setRightSidebarOpen(false)
|
||||
state?.setEditorFontZoomLevel(0)
|
||||
await state?.updateSettings({ terminalFontSize: 13 })
|
||||
})
|
||||
|
||||
let baseline = await restoreAnchorState(orcaPage, true)
|
||||
console.log(`[live-log-stability] geometry ${JSON.stringify(baseline)}`)
|
||||
// Prove content via full 9 MiB length; font-dependent wrap height needs only a generous truncation floor.
|
||||
expect(baseline.valueLength).toBe(fixture.initialLength)
|
||||
expect(baseline.canUndo).toBe(false)
|
||||
expect(baseline.contentHeight).toBeGreaterThanOrEqual(2_000_000)
|
||||
expect(baseline.visibleRanges.length).toBeGreaterThan(0)
|
||||
expect(baseline.find).toMatchObject({ open: true, query: ANCHOR_TOKEN })
|
||||
expect(baseline.find.activeMatch).not.toBe('')
|
||||
|
||||
const suffixMemory: { before: MemorySample; after: MemorySample; settled: MemorySample }[] = []
|
||||
const replacementMemory: {
|
||||
before: MemorySample
|
||||
after: MemorySample
|
||||
settled: MemorySample
|
||||
}[] = []
|
||||
|
||||
for (let batch = 0; batch < 3; batch++) {
|
||||
const equivalentState = baseline
|
||||
replacementMemory.push(await measureLegacyControl(electronApp, orcaPage, baseline, batch))
|
||||
baseline = await restoreAnchorState(orcaPage, baseline.find.open, equivalentState.scrollTop)
|
||||
expect(baseline.contentHeight).toBe(equivalentState.contentHeight)
|
||||
expect(baseline.valueLength).toBe(equivalentState.valueLength)
|
||||
expect(baseline.valueTail).toBe(equivalentState.valueTail)
|
||||
expect(baseline.visibleRanges).toEqual(equivalentState.visibleRanges)
|
||||
expect(baseline.selection).toEqual(equivalentState.selection)
|
||||
expect(baseline.find).toEqual(equivalentState.find)
|
||||
expect(Math.abs(baseline.scrollTop - equivalentState.scrollTop)).toBeLessThanOrEqual(2)
|
||||
const suffix = `${JSON.stringify({ type: 'e2e_append', batch, text: 'tail-only' })}\n`
|
||||
await forceGcAndSettle(orcaPage)
|
||||
const before = await readMemory(electronApp, orcaPage)
|
||||
appendFileSync(fixture.filePath, suffix)
|
||||
fixture.initialLength += suffix.length
|
||||
await orcaPage.waitForTimeout(APPEND_CADENCE_MS)
|
||||
await expect
|
||||
.poll(() => readProbe(orcaPage), { timeout: 30_000 })
|
||||
.toMatchObject({ valueLength: fixture.initialLength })
|
||||
const after = await readMemory(electronApp, orcaPage)
|
||||
await forceGcAndSettle(orcaPage)
|
||||
const settled = await readMemory(electronApp, orcaPage)
|
||||
suffixMemory.push({ before, after, settled })
|
||||
const current = await readProbe(orcaPage)
|
||||
console.log(`[live-log-stability] anchor ${JSON.stringify({ batch, baseline, current })}`)
|
||||
expect(current.visibleRanges).toEqual(baseline.visibleRanges)
|
||||
expect(current.canUndo).toBe(false)
|
||||
expect(current.valueTail).toBe(suffix.trimEnd())
|
||||
expect(current.selection).toEqual(baseline.selection)
|
||||
expect(current.find).toEqual(baseline.find)
|
||||
expect(Math.abs(current.scrollTop - baseline.scrollTop)).toBeLessThanOrEqual(2)
|
||||
expect(await orcaPage.evaluate(() => 2 + 2)).toBe(4)
|
||||
expect((await readMainProcessCrashProbe(electronApp)).processGone).toBeNull()
|
||||
baseline = current
|
||||
if (batch === 0) {
|
||||
await orcaPage.keyboard.press('Escape')
|
||||
await expect(orcaPage.locator('.monaco-editor .find-widget')).toHaveAttribute(
|
||||
'aria-hidden',
|
||||
'true'
|
||||
)
|
||||
baseline = await readProbe(orcaPage)
|
||||
expect(baseline.find.open).toBe(false)
|
||||
}
|
||||
}
|
||||
|
||||
console.log(
|
||||
`[live-log-stability] memory ${JSON.stringify({ suffixMemory, replacementMemory })}`
|
||||
)
|
||||
assertMemoryBudget(suffixMemory, replacementMemory)
|
||||
await testInfo.attach('synthetic-live-log-stable', {
|
||||
body: await orcaPage.screenshot(),
|
||||
contentType: 'image/png'
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
async function seedSyntheticSession(
|
||||
electronApp: ElectronApplication,
|
||||
cwd: string
|
||||
): Promise<{ filePath: string; initialLength: number; title: string }> {
|
||||
const userData = await electronApp.evaluate(({ app }) => app.getPath('userData'))
|
||||
const title = `Synthetic live log ${Date.now()}`
|
||||
const sessionId = `e2e-live-log-${Date.now()}`
|
||||
const sessionsDir = path.join(
|
||||
userData,
|
||||
'codex-runtime-home',
|
||||
'home',
|
||||
'sessions',
|
||||
'2026',
|
||||
'07',
|
||||
'12'
|
||||
)
|
||||
mkdirSync(sessionsDir, { recursive: true })
|
||||
const filePath = path.join(sessionsDir, `rollout-${sessionId}.jsonl`)
|
||||
const records = [
|
||||
JSON.stringify({
|
||||
timestamp: '2026-07-12T12:00:00.000Z',
|
||||
type: 'session_meta',
|
||||
payload: { id: sessionId, cwd }
|
||||
}),
|
||||
JSON.stringify({
|
||||
timestamp: '2026-07-12T12:00:01.000Z',
|
||||
type: 'response_item',
|
||||
payload: { type: 'message', role: 'user', content: [{ type: 'text', text: title }] }
|
||||
}),
|
||||
JSON.stringify({ type: 'synthetic', text: 'x'.repeat(INITIAL_PAYLOAD_BYTES / 2) }),
|
||||
JSON.stringify({ type: 'anchor', text: ANCHOR_TOKEN }),
|
||||
JSON.stringify({ type: 'synthetic', text: 'y'.repeat(INITIAL_PAYLOAD_BYTES / 2) })
|
||||
]
|
||||
const content = `${records.join('\n')}\n`
|
||||
writeFileSync(filePath, content)
|
||||
return { filePath, initialLength: content.length, title }
|
||||
}
|
||||
|
||||
async function openSessionHistory(page: Page): Promise<void> {
|
||||
// Use the activity action because startup hydration can overwrite direct store routes.
|
||||
await page.getByRole('button', { name: 'Agents', exact: true }).click()
|
||||
await page.evaluate(async () => window.api.aiVault.listSessions({ force: true }))
|
||||
await page.getByRole('button', { name: 'Refresh Session History' }).click()
|
||||
}
|
||||
|
||||
async function focusAnchorWithFind(page: Page): Promise<void> {
|
||||
const modifier = process.platform === 'darwin' ? 'Meta' : 'Control'
|
||||
await page.locator('.monaco-editor').click()
|
||||
await page.keyboard.press(`${modifier}+f`)
|
||||
const findInput = page.locator('.monaco-editor .find-widget .input').first()
|
||||
await expect(findInput).toBeVisible()
|
||||
await findInput.fill(ANCHOR_TOKEN)
|
||||
await page.keyboard.press('Enter')
|
||||
}
|
||||
|
||||
async function restoreAnchorState(
|
||||
page: Page,
|
||||
findOpen: boolean,
|
||||
targetScrollTop?: number
|
||||
): Promise<Awaited<ReturnType<typeof readProbe>>> {
|
||||
await focusAnchorWithFind(page)
|
||||
await expect
|
||||
.poll(
|
||||
async () => {
|
||||
const snapshot = await readProbe(page)
|
||||
return (snapshot.selection as { startLineNumber?: number } | null)?.startLineNumber
|
||||
},
|
||||
{ timeout: 60_000 }
|
||||
)
|
||||
.toBe(4)
|
||||
await expect
|
||||
.poll(async () => {
|
||||
const range = (await readProbe(page)).visibleRanges[0] as {
|
||||
startLineNumber?: number
|
||||
endLineNumber?: number
|
||||
}
|
||||
return (range.startLineNumber ?? 0) <= 4 && (range.endLineNumber ?? 0) >= 4
|
||||
})
|
||||
.toBe(true)
|
||||
if (!findOpen) {
|
||||
await page.keyboard.press('Escape')
|
||||
await expect(page.locator('.monaco-editor .find-widget')).toHaveAttribute('aria-hidden', 'true')
|
||||
}
|
||||
if (targetScrollTop !== undefined) {
|
||||
await page.evaluate((scrollTop) => {
|
||||
window.__monacoEditorE2E?.restoreScrollTop(scrollTop)
|
||||
}, targetScrollTop)
|
||||
await expect.poll(async () => (await readProbe(page)).scrollTop).toBe(targetScrollTop)
|
||||
}
|
||||
return readProbe(page)
|
||||
}
|
||||
|
||||
async function readProbe(page: Page): Promise<{
|
||||
canUndo: boolean
|
||||
contentHeight: number
|
||||
filePath: string
|
||||
scrollTop: number
|
||||
selection: unknown
|
||||
valueLength: number
|
||||
valueTail: string
|
||||
visibleRanges: unknown[]
|
||||
find: { open: boolean; query: string; activeMatch: string }
|
||||
}> {
|
||||
return page.evaluate(() => {
|
||||
const probe = window.__monacoEditorE2E
|
||||
if (!probe) {
|
||||
throw new Error('Monaco E2E probe unavailable')
|
||||
}
|
||||
return { filePath: probe.filePath, ...probe.snapshot() }
|
||||
})
|
||||
}
|
||||
|
||||
async function armMainProcessCrashProbe(electronApp: ElectronApplication): Promise<void> {
|
||||
await electronApp.evaluate(({ BrowserWindow }) => {
|
||||
const probe: CrashProbe = { processGone: null }
|
||||
globalThis.__liveLogCrashProbe = probe
|
||||
for (const win of BrowserWindow.getAllWindows()) {
|
||||
win.webContents.on('render-process-gone', (_event, details) => {
|
||||
probe.processGone = { reason: details.reason, exitCode: details.exitCode ?? -1 }
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
async function readMainProcessCrashProbe(electronApp: ElectronApplication): Promise<CrashProbe> {
|
||||
return electronApp.evaluate(() => globalThis.__liveLogCrashProbe ?? { processGone: null })
|
||||
}
|
||||
|
||||
async function forceGcAndSettle(page: Page): Promise<void> {
|
||||
await page.evaluate(() => {
|
||||
const gc = (window as unknown as { gc?: () => void }).gc
|
||||
if (!gc) {
|
||||
throw new Error('Forced GC unavailable; launch must include --js-flags=--expose-gc')
|
||||
}
|
||||
gc()
|
||||
gc()
|
||||
})
|
||||
await page.waitForTimeout(SETTLEMENT_MS)
|
||||
}
|
||||
|
||||
async function readMemory(electronApp: ElectronApplication, page: Page): Promise<MemorySample> {
|
||||
const jsHeapMb = await page.evaluate(() => {
|
||||
const memory = (performance as Performance & { memory?: { usedJSHeapSize?: number } }).memory
|
||||
?.usedJSHeapSize
|
||||
if (!memory) {
|
||||
throw new Error('Precise renderer JS heap metrics unavailable')
|
||||
}
|
||||
return memory / 1024 / 1024
|
||||
})
|
||||
const metric = await electronApp.evaluate(({ app, BrowserWindow }) => {
|
||||
const rendererPid = BrowserWindow.getAllWindows()[0]?.webContents.getOSProcessId()
|
||||
const rendererMetric = app.getAppMetrics().find((candidate) => candidate.pid === rendererPid)
|
||||
if (!rendererMetric) {
|
||||
throw new Error(`Renderer app metric unavailable for pid ${rendererPid ?? 'unknown'}`)
|
||||
}
|
||||
return {
|
||||
pid: rendererMetric.pid,
|
||||
privateMb: rendererMetric.memory.privateBytes
|
||||
? rendererMetric.memory.privateBytes / 1024
|
||||
: null,
|
||||
workingSetMb: rendererMetric.memory.workingSetSize / 1024
|
||||
}
|
||||
})
|
||||
const privateMb = metric.privateMb ?? readPrivateMemoryMb(metric.pid)
|
||||
return { jsHeapMb, privateMb, workingSetMb: metric.workingSetMb }
|
||||
}
|
||||
|
||||
function readPrivateMemoryMb(pid: number): number {
|
||||
if (process.platform === 'linux') {
|
||||
const status = readFileSync(`/proc/${pid}/status`, 'utf8')
|
||||
const privateKb = /RssAnon:\s+(\d+) kB/.exec(status)?.[1]
|
||||
if (!privateKb) {
|
||||
throw new Error(`Unable to parse renderer RssAnon for pid ${pid}`)
|
||||
}
|
||||
return Number(privateKb) / 1024
|
||||
}
|
||||
if (process.platform !== 'darwin') {
|
||||
throw new Error('app.getAppMetrics privateBytes unavailable on Windows')
|
||||
}
|
||||
// Electron omits MemoryInfo.privateBytes on macOS; footprint's
|
||||
// phys_footprint is the OS private-memory equivalent for the same renderer PID.
|
||||
const output = execFileSync('footprint', ['-p', String(pid), '-f', 'bytes', '--noCategories'], {
|
||||
encoding: 'utf8'
|
||||
})
|
||||
const bytes = /phys_footprint:\s+(\d+) B/.exec(output)?.[1]
|
||||
if (!bytes) {
|
||||
throw new Error(`Unable to parse renderer private footprint for pid ${pid}`)
|
||||
}
|
||||
return Number(bytes) / 1024 / 1024
|
||||
}
|
||||
|
||||
async function measureLegacyControl(
|
||||
electronApp: ElectronApplication,
|
||||
page: Page,
|
||||
baseline: Awaited<ReturnType<typeof readProbe>>,
|
||||
batch: number
|
||||
): Promise<{ before: MemorySample; after: MemorySample; settled: MemorySample }> {
|
||||
await forceGcAndSettle(page)
|
||||
const before = await readMemory(electronApp, page)
|
||||
await page.evaluate((index) => {
|
||||
window.__monacoEditorE2E?.runLegacySetValueAppend(
|
||||
`${JSON.stringify({ type: 'legacy_set_value_control', index, text: 'tail-only' })}\n`
|
||||
)
|
||||
}, batch)
|
||||
await page.waitForTimeout(APPEND_CADENCE_MS)
|
||||
const after = await readMemory(electronApp, page)
|
||||
const disrupted = await readProbe(page)
|
||||
console.log(
|
||||
`[live-log-stability] legacy-control ${JSON.stringify({ batch, baseline, disrupted })}`
|
||||
)
|
||||
expect(hasInstabilitySignal(baseline, disrupted)).toBe(true)
|
||||
await forceGcAndSettle(page)
|
||||
const settled = await readMemory(electronApp, page)
|
||||
await page.evaluate(() => window.__monacoEditorE2E?.restoreLegacySetValueControl())
|
||||
await expect.poll(() => readProbe(page)).toMatchObject({ valueLength: baseline.valueLength })
|
||||
expect((await readMainProcessCrashProbe(electronApp)).processGone).toBeNull()
|
||||
return { before, after, settled }
|
||||
}
|
||||
|
||||
function hasInstabilitySignal(
|
||||
baseline: Awaited<ReturnType<typeof readProbe>>,
|
||||
current: Awaited<ReturnType<typeof readProbe>>
|
||||
): boolean {
|
||||
return (
|
||||
JSON.stringify(current.selection) !== JSON.stringify(baseline.selection) ||
|
||||
JSON.stringify(current.find) !== JSON.stringify(baseline.find) ||
|
||||
JSON.stringify(current.visibleRanges) !== JSON.stringify(baseline.visibleRanges) ||
|
||||
Math.abs(current.scrollTop - baseline.scrollTop) > 2
|
||||
)
|
||||
}
|
||||
|
||||
function assertMemoryBudget(
|
||||
suffix: { before: MemorySample; after: MemorySample; settled: MemorySample }[],
|
||||
replacement: { before: MemorySample; after: MemorySample; settled: MemorySample }[]
|
||||
): void {
|
||||
expect(suffix).toHaveLength(replacement.length)
|
||||
expect(suffix.length).toBeGreaterThan(0)
|
||||
for (const sample of suffix) {
|
||||
for (const field of ['jsHeapMb', 'workingSetMb', 'privateMb'] as const) {
|
||||
const retainedAllowance = Math.max(20, sample.before[field] * 0.1)
|
||||
expect(sample.settled[field] - sample.before[field]).toBeLessThanOrEqual(retainedAllowance)
|
||||
}
|
||||
}
|
||||
for (const [index, sample] of suffix.entries()) {
|
||||
const pairedReplacement = replacement[index]
|
||||
expect(pairedReplacement).toBeDefined()
|
||||
for (const field of ['jsHeapMb', 'workingSetMb', 'privateMb'] as const) {
|
||||
const suffixPeak = sample.after[field] - sample.before[field]
|
||||
const replacementPeak = pairedReplacement.after[field] - pairedReplacement.before[field]
|
||||
// The replacement control allocates more; allow peak-sample GC noise without weakening settled retention.
|
||||
expect(suffixPeak).toBeLessThanOrEqual(replacementPeak + PEAK_MEMORY_NOISE_ALLOWANCE_MB)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function readProbeOrNull(page: Page): Promise<Awaited<ReturnType<typeof readProbe>> | null> {
|
||||
return page.evaluate(() => {
|
||||
const probe = window.__monacoEditorE2E
|
||||
return probe ? { filePath: probe.filePath, ...probe.snapshot() } : null
|
||||
})
|
||||
}
|
||||
@@ -1,162 +0,0 @@
|
||||
import { mutateStoppedProfileState } from './helpers/persisted-profile-state'
|
||||
import { existsSync, readFileSync } from 'node:fs'
|
||||
import path from 'node:path'
|
||||
import type { ElectronApplication } from '@stablyai/playwright-test'
|
||||
import { test, expect } from './helpers/orca-app'
|
||||
import { TEST_REPO_PATH_FILE } from './global-setup'
|
||||
import {
|
||||
execInTerminal,
|
||||
waitForActivePaneHookDescriptor,
|
||||
waitForActivePanePtyId,
|
||||
waitForActiveTerminalManager,
|
||||
waitForPaneCount,
|
||||
waitForTerminalOutput
|
||||
} from './helpers/terminal'
|
||||
import { ensureTerminalVisible, waitForActiveWorktree, waitForSessionReady } from './helpers/store'
|
||||
import { attachRepoAndOpenTerminal, createRestartSession } from './helpers/orca-restart'
|
||||
import { PROTOCOL_VERSION } from '../../src/main/daemon/protocol/daemon-protocol-version'
|
||||
|
||||
const PROVIDER_SESSION_ID = 'e2e-quit-resume-session'
|
||||
|
||||
function stubPersistedResumeCommand(userDataDir: string): void {
|
||||
return mutateStoppedProfileState(userDataDir, (state) => {
|
||||
// oxlint-disable-next-line typescript/consistent-type-assertions -- SAFETY: This test owns the persisted fixture; optional fields are checked at use sites.
|
||||
const data = state as {
|
||||
workspaceSession?: {
|
||||
sleepingAgentSessionsByPaneKey?: Record<
|
||||
string,
|
||||
{
|
||||
providerSession?: { id?: unknown }
|
||||
launchConfig?: {
|
||||
agentCommand?: string
|
||||
agentArgs?: string
|
||||
agentEnv?: Record<string, string>
|
||||
}
|
||||
}
|
||||
>
|
||||
}
|
||||
}
|
||||
const record = Object.values(data.workspaceSession?.sleepingAgentSessionsByPaneKey ?? {}).find(
|
||||
(candidate) => candidate.providerSession?.id === PROVIDER_SESSION_ID
|
||||
)
|
||||
if (!record) {
|
||||
throw new Error('Expected a persisted resumable agent session')
|
||||
}
|
||||
record.launchConfig = { agentCommand: 'echo', agentArgs: '', agentEnv: {} }
|
||||
})
|
||||
}
|
||||
|
||||
function readDaemonPid(userDataDir: string): number {
|
||||
const raw = readFileSync(
|
||||
path.join(userDataDir, 'daemon', `daemon-v${PROTOCOL_VERSION}.pid`),
|
||||
'utf8'
|
||||
)
|
||||
const parsed = JSON.parse(raw) as { pid?: unknown }
|
||||
if (typeof parsed.pid !== 'number') {
|
||||
throw new Error(`Daemon pid file did not contain a numeric pid: ${raw}`)
|
||||
}
|
||||
return parsed.pid
|
||||
}
|
||||
|
||||
test.describe.configure({ mode: 'serial' })
|
||||
|
||||
test('resumes an agent session after quit when its daemon PTY died while the app was closed', async (// oxlint-disable-next-line no-empty-pattern -- Playwright's second fixture arg is testInfo; the first must be an object destructure to opt out of the default fixture set.
|
||||
{}, testInfo) => {
|
||||
const repoPath = readFileSync(TEST_REPO_PATH_FILE, 'utf-8').trim()
|
||||
if (!repoPath || !existsSync(repoPath)) {
|
||||
test.skip(true, 'Global setup did not produce a seeded test repo')
|
||||
return
|
||||
}
|
||||
test.skip(process.platform === 'win32', 'Uses POSIX SIGKILL to simulate daemon death')
|
||||
|
||||
const session = createRestartSession(testInfo)
|
||||
let firstApp: ElectronApplication | null = null
|
||||
let secondApp: ElectronApplication | null = null
|
||||
|
||||
try {
|
||||
const firstLaunch = await session.launch()
|
||||
firstApp = firstLaunch.app
|
||||
const page = await firstApp.firstWindow()
|
||||
const worktreeId = await attachRepoAndOpenTerminal(page, repoPath)
|
||||
await waitForSessionReady(page)
|
||||
await waitForActiveWorktree(page)
|
||||
await ensureTerminalVisible(page)
|
||||
await waitForActiveTerminalManager(page, 30_000)
|
||||
await waitForPaneCount(page, 1, 30_000)
|
||||
|
||||
const marker = `AGENT_QUIT_RESUME_${Date.now()}`
|
||||
const descriptor = await waitForActivePaneHookDescriptor(page)
|
||||
const firstPtyId = await waitForActivePanePtyId(page)
|
||||
const transcriptPath = session.seedCodexResumeRollout(PROVIDER_SESSION_ID, repoPath)
|
||||
await execInTerminal(page, firstPtyId, `echo ${marker}`)
|
||||
await waitForTerminalOutput(page, marker)
|
||||
|
||||
// Seed the real hook-written resume record without requiring an installed/authenticated agent CLI.
|
||||
await page.evaluate(
|
||||
({ paneKey, worktreeId: wtId, providerSessionId, transcriptPath }) => {
|
||||
window.__store?.getState().setAgentStatus(
|
||||
paneKey,
|
||||
{ state: 'working', prompt: 'finish the task', agentType: 'codex' },
|
||||
'Codex',
|
||||
undefined,
|
||||
{ worktreeId: wtId },
|
||||
{
|
||||
providerSession: {
|
||||
key: 'session_id',
|
||||
id: providerSessionId,
|
||||
transcriptPath
|
||||
}
|
||||
}
|
||||
)
|
||||
},
|
||||
{
|
||||
paneKey: descriptor.paneKey,
|
||||
worktreeId: descriptor.worktreeId,
|
||||
providerSessionId: PROVIDER_SESSION_ID,
|
||||
transcriptPath
|
||||
}
|
||||
)
|
||||
|
||||
const daemonPid = readDaemonPid(session.userDataDir)
|
||||
|
||||
await session.close(firstApp)
|
||||
firstApp = null
|
||||
stubPersistedResumeCommand(session.userDataDir)
|
||||
|
||||
// SIGKILL models reboot/crash while closed and leaves unclean checkpoints for cold restore.
|
||||
process.kill(daemonPid, 'SIGKILL')
|
||||
|
||||
const secondLaunch = await session.launch()
|
||||
secondApp = secondLaunch.app
|
||||
await waitForSessionReady(secondLaunch.page)
|
||||
await expect
|
||||
.poll(
|
||||
async () => secondLaunch.page.evaluate(() => window.__store?.getState().activeWorktreeId),
|
||||
{ timeout: 15_000 }
|
||||
)
|
||||
.toBe(worktreeId)
|
||||
await ensureTerminalVisible(secondLaunch.page)
|
||||
await waitForActiveTerminalManager(secondLaunch.page, 30_000)
|
||||
await waitForPaneCount(secondLaunch.page, 1, 30_000)
|
||||
|
||||
// The quit-captured provider session id must drive a resume command into
|
||||
// the cold-restored pane (the command text echoes in the terminal).
|
||||
await waitForTerminalOutput(secondLaunch.page, PROVIDER_SESSION_ID, 30_000)
|
||||
|
||||
// No duplicate resume tab: the quit-origin record must not be consumed by
|
||||
// worktree activation on top of the pane-level cold-restore.
|
||||
const terminalTabCount = await secondLaunch.page.evaluate(
|
||||
(wtId) => (window.__store?.getState().tabsByWorktree[wtId] ?? []).length,
|
||||
worktreeId
|
||||
)
|
||||
expect(terminalTabCount).toBe(1)
|
||||
} finally {
|
||||
if (secondApp) {
|
||||
await session.close(secondApp)
|
||||
}
|
||||
if (firstApp) {
|
||||
await session.close(firstApp)
|
||||
}
|
||||
await session.dispose()
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,33 @@
|
||||
// Completed tab and composer actions return keyboard input to the chat draft.
|
||||
|
||||
import type { Locator } from '@stablyai/playwright-test'
|
||||
import '../../desktop/electron-fixtures/orca-app'
|
||||
import { expect } from '@stablyai/playwright-test'
|
||||
import { SUPPORTED, openStubChat, test } from '../session-fixtures/structured-claude-stub'
|
||||
|
||||
function focusIsIn(composer: Locator): Promise<boolean> {
|
||||
return composer.evaluate((element) => element.contains(element.ownerDocument.activeElement))
|
||||
}
|
||||
|
||||
test.describe('native chat composer focus', () => {
|
||||
test.skip(!SUPPORTED, 'the Claude stub wrapper is POSIX-only')
|
||||
|
||||
test('when Send disables at the end of the turn', async ({ orcaPage: page, claudeStub }) => {
|
||||
const { composer, send, stop, reply } = await openStubChat(page, claudeStub.command)
|
||||
await page.keyboard.type('hello')
|
||||
await send.click()
|
||||
await expect(reply).toBeVisible({ timeout: 30_000 })
|
||||
await expect(stop).toHaveCount(0)
|
||||
await expect.poll(() => focusIsIn(composer)).toBe(true)
|
||||
})
|
||||
|
||||
test('when Stop disables while the stop is in flight', async ({ orcaPage: page, claudeStub }) => {
|
||||
const { composer, send, stop } = await openStubChat(page, claudeStub.command)
|
||||
// The stub runs a prompt containing "slow" until it is interrupted.
|
||||
await page.keyboard.type('slow')
|
||||
await send.click()
|
||||
await stop.click()
|
||||
await expect(stop).toHaveCount(0, { timeout: 30_000 })
|
||||
await expect.poll(() => focusIsIn(composer)).toBe(true)
|
||||
})
|
||||
})
|
||||
+4
-4
@@ -2,10 +2,10 @@ import { mkdtempSync, mkdirSync, rmSync, writeFileSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { dirname, join } from 'node:path'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
||||
import type { AgentStatusIpcPayload } from '../../src/shared/agent-status/contracts/agent-status-ipc-payload'
|
||||
import type { NativeChatMessage } from '../../src/shared/native-chat/native-chat-types'
|
||||
import { eraseRpcMethods, type RpcContext } from '../../src/main/runtime/rpc/core'
|
||||
import { NATIVE_CHAT_METHODS } from '../../src/main/runtime/rpc/methods/native-chat/native-chat'
|
||||
import type { AgentStatusIpcPayload } from '../../../../src/shared/agent-status/contracts/agent-status-ipc-payload'
|
||||
import type { NativeChatMessage } from '../../../../src/shared/native-chat/native-chat-types'
|
||||
import { eraseRpcMethods, type RpcContext } from '../../../../src/main/runtime/rpc/core'
|
||||
import { NATIVE_CHAT_METHODS } from '../../../../src/main/runtime/rpc/methods/native-chat/native-chat'
|
||||
|
||||
const CONNECTION_ID = 'ssh-target-26057'
|
||||
const SESSION_ID = 'claude-session-26057'
|
||||
+14
-16
@@ -1,38 +1,38 @@
|
||||
import { acceptedAgentStatuses } from '@/store/slices/agent-status/status-ownership/accepted-agent-statuses'
|
||||
// @vitest-environment happy-dom
|
||||
import { transport } from './__mocks__/structured-attention-read-surfaces'
|
||||
import { transport } from '../../__mocks__/structured-attention-read-surfaces'
|
||||
import { cleanup } from '@testing-library/react'
|
||||
import { beforeEach, afterEach, vi } from 'vitest'
|
||||
import { mkdtempSync, rmSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
import type { RuntimeClientTarget } from '../../src/shared/remote-runtime/host-catalog/runtime-client-target'
|
||||
import type { NotificationSettings } from '../../src/shared/notifications/notification-settings-types'
|
||||
import type { AgentJournalRenderItem } from '../../src/shared/agent-session/journal/agent-session-journal-types'
|
||||
import type { AgentSessionHistoryPage } from '../../src/shared/agent-session/agent-session-wire'
|
||||
import type { RuntimeRpcResponse } from '../../src/shared/remote-runtime/rpc/runtime-rpc-envelope'
|
||||
import { createGlobalSettingsFixture } from '../../src/shared/settings/global-settings-test-fixture'
|
||||
import type { RuntimeClientTarget } from '../../../../src/shared/remote-runtime/host-catalog/runtime-client-target'
|
||||
import type { NotificationSettings } from '../../../../src/shared/notifications/notification-settings-types'
|
||||
import type { AgentJournalRenderItem } from '../../../../src/shared/agent-session/journal/agent-session-journal-types'
|
||||
import type { AgentSessionHistoryPage } from '../../../../src/shared/agent-session/agent-session-wire'
|
||||
import type { RuntimeRpcResponse } from '../../../../src/shared/remote-runtime/rpc/runtime-rpc-envelope'
|
||||
import { createGlobalSettingsFixture } from '../../../../src/shared/settings/global-settings-test-fixture'
|
||||
import {
|
||||
structuredAgentSessionPaneKey,
|
||||
projectStructuredAgentSessionStatusState
|
||||
} from '../../src/shared/agent-session/view/structured-agent-session-projection'
|
||||
import { getStructuredAgentSessionHost } from '../../src/main/native-chat/agent-session-wire/host/structured-agent-session-registry'
|
||||
import { StructuredAgentSessionTurnCompletionFeed } from '../../src/main/native-chat/agent-session-wire/observations/structured-agent-session-turn-completion-feed'
|
||||
} from '../../../../src/shared/agent-session/view/structured-agent-session-projection'
|
||||
import { getStructuredAgentSessionHost } from '../../../../src/main/native-chat/agent-session-wire/host/structured-agent-session-registry'
|
||||
import { StructuredAgentSessionTurnCompletionFeed } from '../../../../src/main/native-chat/agent-session-wire/observations/structured-agent-session-turn-completion-feed'
|
||||
import {
|
||||
RuntimeMobileNotificationController,
|
||||
type MobileNotificationEvent
|
||||
} from '../../src/main/runtime/push/notifications/runtime-mobile-notification-controller'
|
||||
import { createStructuredAttentionMobileDelivery } from '../../src/main/runtime/agent-session/lifecycle/structured-agent-session-mobile-attention'
|
||||
} from '../../../../src/main/runtime/push/notifications/runtime-mobile-notification-controller'
|
||||
import { createStructuredAttentionMobileDelivery } from '../../../../src/main/runtime/agent-session/lifecycle/structured-agent-session-mobile-attention'
|
||||
import {
|
||||
call,
|
||||
installStructuredHostStub,
|
||||
clearStructuredHostStub
|
||||
} from '../../src/main/runtime/rpc/methods/structured-sessions/protocol/structured-agent-session-rpc.test-fixture'
|
||||
} from '../../../../src/main/runtime/rpc/methods/structured-sessions/protocol/structured-agent-session-rpc.test-fixture'
|
||||
|
||||
import {
|
||||
STRUCTURED_CLIENT,
|
||||
SESSION
|
||||
} from '../../src/main/runtime/rpc/methods/structured-sessions/protocol/structured-agent-session-rpc-client.test-fixture'
|
||||
} from '../../../../src/main/runtime/rpc/methods/structured-sessions/protocol/structured-agent-session-rpc-client.test-fixture'
|
||||
import { makeUnifiedTab, makeTabGroup } from '@/store/slices/tabs/tab-group.test-fixture'
|
||||
import { makeWorktree } from '@/store/slices/worktrees/worktree.test-fixture'
|
||||
import { TEST_REPO } from '@/store/repos/repo.test-fixture'
|
||||
@@ -81,8 +81,6 @@ export let fixture: {
|
||||
hydrate: (() => void) | undefined
|
||||
}
|
||||
|
||||
export { transport }
|
||||
|
||||
function history(): AgentSessionHistoryPage {
|
||||
return {
|
||||
sessionId: SESSION,
|
||||
+3
-3
@@ -68,12 +68,12 @@ export function resolveActiveSessionTab47713<T extends SessionTabLike>(
|
||||
}
|
||||
}
|
||||
|
||||
import { parsePaneKey } from '../../src/shared/workspace-layout/stable-pane-id'
|
||||
import { parsePaneKey } from '../../../../src/shared/workspace-layout/stable-pane-id'
|
||||
import {
|
||||
structuredAgentSessionPaneKey,
|
||||
structuredAgentSessionTabId
|
||||
} from '../../src/shared/agent-session/view/structured-agent-session-projection'
|
||||
import type { MobileSessionTab } from '../../mobile/src/session/tabs/mobile-session-tabs'
|
||||
} from '../../../../src/shared/agent-session/view/structured-agent-session-projection'
|
||||
import type { MobileSessionTab } from '../../../../mobile/src/session/tabs/mobile-session-tabs'
|
||||
|
||||
// Keep native/web navigation’s pane lookup separate: importing the native sibling by name on web resolves back to the web file itself.
|
||||
export function notificationPaneTab47713(tabs: readonly MobileSessionTab[], paneKey: string) {
|
||||
+11
-7
@@ -4,13 +4,17 @@
|
||||
* beside the new shell, yet must still find the conversation through its provider session. A phone
|
||||
* that cannot read unverifiable rows keeps the legacy Done it always received.
|
||||
*/
|
||||
import { expect, test } from './helpers/orca-app'
|
||||
import { launchPhoneMirrorTopology } from './helpers/phone-mirror-topology'
|
||||
import { pairMobileClient, type PairedMobileClient } from './helpers/paired-mobile-client'
|
||||
import { emitCodexHookStatus, readHookEndpoint } from './helpers/agent-hook-endpoint'
|
||||
import { cleanupE2EDaemons } from './helpers/electron-process-shutdown'
|
||||
import type { RuntimeWorktreePsSummary } from '../../src/shared/worktree/catalog/runtime-worktree-contracts'
|
||||
import type { RuntimeMobileSessionTabsResult } from '../../src/shared/remote-runtime/session-graph/runtime-session-contracts'
|
||||
import { test } from '../../desktop/electron-fixtures/orca-app'
|
||||
import { expect } from '@stablyai/playwright-test'
|
||||
import { launchPhoneMirrorTopology } from '../../remote/mobile-mirror/phone-mirror-topology'
|
||||
import {
|
||||
pairMobileClient,
|
||||
type PairedMobileClient
|
||||
} from '../../remote/mobile-mirror/paired-mobile-client'
|
||||
import { emitCodexHookStatus, readHookEndpoint } from '../session-fixtures/agent-hook-endpoint'
|
||||
import { cleanupE2EDaemons } from '../../desktop/electron-fixtures/electron-process-shutdown'
|
||||
import type { RuntimeWorktreePsSummary } from '../../../../src/shared/worktree/catalog/runtime-worktree-contracts'
|
||||
import type { RuntimeMobileSessionTabsResult } from '../../../../src/shared/remote-runtime/session-graph/runtime-session-contracts'
|
||||
|
||||
const SESSION_ID = '0199a1b2-c3d4-7e5f-8a9b-0c1d2e3f4a5b'
|
||||
|
||||
+5
-4
@@ -1,12 +1,13 @@
|
||||
import { createServer, type Server } from 'node:http'
|
||||
import type { ElectronApplication, Page } from '@stablyai/playwright-test'
|
||||
import { launchHeadlessPairedRuntimeHost } from './helpers/headless-paired-runtime-host'
|
||||
import { expect, test } from './helpers/orca-app'
|
||||
import { launchPairedElectronClient } from './helpers/paired-electron-client'
|
||||
import { launchHeadlessPairedRuntimeHost } from '../../remote/paired-runtime/client-hosts/headless-paired-runtime-host'
|
||||
import { test } from '../../desktop/electron-fixtures/orca-app'
|
||||
import { expect } from '@stablyai/playwright-test'
|
||||
import { launchPairedElectronClient } from '../../remote/paired-runtime/client-hosts/paired-electron-client'
|
||||
import {
|
||||
callPairedRuntime,
|
||||
waitForPairedClientWorktree
|
||||
} from './helpers/paired-client-host-session'
|
||||
} from '../../remote/paired-runtime/client-hosts/paired-client-host-session'
|
||||
|
||||
// #41682: a tab the server's own agent opens goes on a paired "This device" desktop, else it streams.
|
||||
|
||||
@@ -0,0 +1,95 @@
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { createTerminalTitleTracker } from '../../../../src/shared/terminal/output/terminal-output-side-effects'
|
||||
import { createAgentCompletionCoordinator } from '../../../../src/renderer/src/components/terminal-pane/agent-completion/agent-completion-coordinator'
|
||||
import { resetAgentCompletionCoordinatorIdentitiesForTest } from '../../../../src/renderer/src/components/terminal-pane/agent-completion/agent-completion-identity-store'
|
||||
import type { AgentCompletionDispatchMeta } from '../../../../src/renderer/src/components/terminal-pane/agent-completion/agent-completion-coordinator-types'
|
||||
import { inspectRuntimeTerminalProcess } from '../../../../src/renderer/src/runtime/hosted-terminals/inspection/runtime-terminal-process-inspection'
|
||||
import { clearRuntimeCompatibilityCache as clearRuntimeCompatibilityCacheForTests } from '../../../../src/renderer/src/runtime/rpc/compatibility/runtime-compatibility-cache'
|
||||
import {
|
||||
createCompatibleRuntimeStatusResponseIfNeeded,
|
||||
type RuntimeEnvironmentCallRequest
|
||||
} from '../../../../src/renderer/src/runtime/rpc/testing/runtime-compatibility-test-fixture'
|
||||
|
||||
const REMOTE_PTY_ID = 'remote:remote-host@@term_remote_agent'
|
||||
|
||||
describe('remote agent completion authority', () => {
|
||||
const runtimeCall = vi.fn()
|
||||
const runtimeTransportCall = vi.fn((args: RuntimeEnvironmentCallRequest) => {
|
||||
return createCompatibleRuntimeStatusResponseIfNeeded(args) ?? runtimeCall(args)
|
||||
})
|
||||
|
||||
beforeEach(() => {
|
||||
vi.useFakeTimers()
|
||||
vi.spyOn(Math, 'random').mockReturnValue(0.5)
|
||||
clearRuntimeCompatibilityCacheForTests()
|
||||
vi.stubGlobal('window', {
|
||||
api: {
|
||||
runtimeEnvironments: { call: runtimeTransportCall },
|
||||
pty: {
|
||||
getForegroundProcess: vi.fn(),
|
||||
hasChildProcesses: vi.fn()
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
afterEach(() => {
|
||||
resetAgentCompletionCoordinatorIdentitiesForTest()
|
||||
vi.useRealTimers()
|
||||
vi.unstubAllGlobals()
|
||||
vi.clearAllMocks()
|
||||
vi.restoreAllMocks()
|
||||
})
|
||||
|
||||
it('preserves distinct stopped, exited, and successful completion evidence', async () => {
|
||||
const outcomes: (
|
||||
| { kind: 'hook'; interrupted: boolean }
|
||||
| { kind: 'process-exit'; exitCode: number | null }
|
||||
)[] = []
|
||||
const createHookCoordinator = (paneKey: string) =>
|
||||
createAgentCompletionCoordinator({
|
||||
paneKey,
|
||||
getPtyId: () => REMOTE_PTY_ID,
|
||||
isRemotePtyId: () => true,
|
||||
getExpectedIncarnationId: () => 'inc-remote',
|
||||
inspectProcess: inspectRuntimeTerminalProcess,
|
||||
dispatchCompletion: (_title: string, meta?: AgentCompletionDispatchMeta) => {
|
||||
outcomes.push({
|
||||
kind: 'hook',
|
||||
interrupted: meta?.agentStatus?.interrupted === true
|
||||
})
|
||||
},
|
||||
isLive: () => true
|
||||
})
|
||||
|
||||
const stopped = createHookCoordinator('tab-remote:leaf-stopped')
|
||||
stopped.observeHookStatus({ state: 'working', prompt: 'stop me', agentType: 'codex' })
|
||||
stopped.observeHookStatus({
|
||||
state: 'done',
|
||||
prompt: 'stop me',
|
||||
agentType: 'codex',
|
||||
interrupted: true
|
||||
})
|
||||
await vi.advanceTimersByTimeAsync(1_500)
|
||||
|
||||
const tracker = createTerminalTitleTracker({
|
||||
onCommandFinished: (exitCode) => outcomes.push({ kind: 'process-exit', exitCode })
|
||||
})
|
||||
tracker.handleChunk('\u001b]133;D;130\u0007')
|
||||
|
||||
const succeeded = createHookCoordinator('tab-remote:leaf-succeeded')
|
||||
succeeded.observeHookStatus({ state: 'working', prompt: 'finish me', agentType: 'codex' })
|
||||
succeeded.observeHookStatus({ state: 'done', prompt: 'finish me', agentType: 'codex' })
|
||||
await vi.advanceTimersByTimeAsync(1_500)
|
||||
|
||||
expect(outcomes).toEqual([
|
||||
{ kind: 'hook', interrupted: true },
|
||||
{ kind: 'process-exit', exitCode: 130 },
|
||||
{ kind: 'hook', interrupted: false }
|
||||
])
|
||||
|
||||
stopped.dispose()
|
||||
succeeded.dispose()
|
||||
tracker.dispose()
|
||||
})
|
||||
})
|
||||
+1
-1
@@ -5,7 +5,7 @@ import {
|
||||
isAgentHookEndpointFileName,
|
||||
parseAgentHookEndpointFile,
|
||||
type AgentHookEndpoint
|
||||
} from '../../../src/shared/agent-hook-listener/transport/agent-hook-endpoint-file'
|
||||
} from '../../../../src/shared/agent-hook-listener/transport/agent-hook-endpoint-file'
|
||||
|
||||
function findEndpointEnvFile(root: string): string | null {
|
||||
if (!existsSync(root)) {
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
import {
|
||||
quoteStartupArg,
|
||||
resolveStartupShell
|
||||
} from '../../../src/shared/agent-launch/startup/tui-agent-startup-shell'
|
||||
import { resolveLocalWindowsAgentStartupShell } from '../../../src/shared/shell/launch/windows-terminal-shell'
|
||||
} from '../../../../src/shared/agent-launch/startup/tui-agent-startup-shell'
|
||||
import { resolveLocalWindowsAgentStartupShell } from '../../../../src/shared/shell/launch/windows-terminal-shell'
|
||||
|
||||
/** Specs must apply this through `updateSettings`; the override below is quoted for it. */
|
||||
export const FAKE_AGENT_WINDOWS_SHELL = 'powershell.exe'
|
||||
+3
-2
@@ -1,6 +1,7 @@
|
||||
import type { Page } from '@stablyai/playwright-test'
|
||||
import type { AgentType } from '../../../src/shared/agent-status/contracts/agent-status-types'
|
||||
import { waitForActivePaneHookDescriptor } from './terminal'
|
||||
import type { AgentType } from '../../../../src/shared/agent-status/contracts/agent-status-types'
|
||||
import '../../terminal/input/terminal'
|
||||
import { waitForActivePaneHookDescriptor } from '../../terminal/input/terminal-active-pane'
|
||||
|
||||
export async function showActivePaneAsNativeChat(
|
||||
page: Page,
|
||||
+6
-5
@@ -12,15 +12,16 @@ import {
|
||||
import os from 'node:os'
|
||||
import path from 'node:path'
|
||||
import type { Page } from '@stablyai/playwright-test'
|
||||
import { test as base, expect } from './orca-app'
|
||||
import { waitForActiveWorktree, waitForSessionReady } from './store'
|
||||
import { test as base } from '../../desktop/electron-fixtures/orca-app'
|
||||
import { expect } from '@stablyai/playwright-test'
|
||||
import { waitForActiveWorktree, waitForSessionReady } from '../../desktop/renderer-probes/store'
|
||||
import { buildFakeAgentCommandOverride } from './fake-agent-command-override'
|
||||
import { resolveCliCommand } from '../../../src/shared/shell/command-resolution/node-cli-command-resolution'
|
||||
import { createOrcaSessionId } from '../../../src/shared/agent-session/identity/orca-session-address'
|
||||
import { resolveCliCommand } from '../../../../src/shared/shell/command-resolution/node-cli-command-resolution'
|
||||
import { createOrcaSessionId } from '../../../../src/shared/agent-session/identity/orca-session-address'
|
||||
import {
|
||||
createStructuredAgentSessionOperationId,
|
||||
structuredAgentSessionCreateFingerprint
|
||||
} from '../../../src/shared/agent-session/lifecycle/operations/structured-agent-session-mutation'
|
||||
} from '../../../../src/shared/agent-session/lifecycle/operations/structured-agent-session-mutation'
|
||||
|
||||
// Skip Windows until the POSIX stub wrapper has a verified .cmd equivalent.
|
||||
export const SUPPORTED = process.platform !== 'win32'
|
||||
+3
-2
@@ -1,8 +1,9 @@
|
||||
import { chmodSync, existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
import { test, expect } from './helpers/orca-app'
|
||||
import { waitForActiveWorktree, waitForSessionReady } from './helpers/store'
|
||||
import { test } from '../../desktop/electron-fixtures/orca-app'
|
||||
import { expect } from '@stablyai/playwright-test'
|
||||
import { waitForActiveWorktree, waitForSessionReady } from '../../desktop/renderer-probes/store'
|
||||
|
||||
function isProcessAlive(pid: number): boolean {
|
||||
try {
|
||||
+3
-2
@@ -1,8 +1,9 @@
|
||||
import { existsSync, readFileSync, writeFileSync } from 'node:fs'
|
||||
import path from 'node:path'
|
||||
import type { ElectronApplication } from '@stablyai/playwright-test'
|
||||
import { expect, test } from './helpers/orca-app'
|
||||
import { createRestartSession } from './helpers/orca-restart'
|
||||
import { test } from '../../desktop/electron-fixtures/orca-app'
|
||||
import { expect } from '@stablyai/playwright-test'
|
||||
import { createRestartSession } from '../../desktop/electron-fixtures/orca-restart'
|
||||
|
||||
const STUB_AGENT_DIR = path.join(process.cwd(), 'tests', 'e2e', 'fixtures', 'golden-stub-agent')
|
||||
const LAUNCH_ENV = { PATH: `${STUB_AGENT_DIR}${path.delimiter}${process.env.PATH ?? ''}` }
|
||||
+11
-6
@@ -1,16 +1,21 @@
|
||||
import { test, expect } from './helpers/orca-app'
|
||||
import { ensureTerminalVisible, waitForActiveWorktree, waitForSessionReady } from './helpers/store'
|
||||
import { test } from '../../desktop/electron-fixtures/orca-app'
|
||||
import { expect } from '@stablyai/playwright-test'
|
||||
import {
|
||||
ensureTerminalVisible,
|
||||
waitForActiveWorktree,
|
||||
waitForSessionReady
|
||||
} from '../../desktop/renderer-probes/store'
|
||||
import { waitForActivePanePtyId } from '../../terminal/input/terminal'
|
||||
import {
|
||||
sendToTerminal,
|
||||
waitForActivePanePtyId,
|
||||
waitForActiveTerminalManager,
|
||||
waitForTerminalOutput
|
||||
} from './helpers/terminal'
|
||||
} from '../../terminal/layout/terminal-pane-operations'
|
||||
import {
|
||||
stageNodeScriptForTerminal,
|
||||
type StagedTerminalNodeScript
|
||||
} from './helpers/run-node-script-in-terminal'
|
||||
import { worktreeRow } from './worktree-row-locators'
|
||||
} from '../../terminal/input/run-node-script-in-terminal'
|
||||
import { worktreeRow } from '../../workspaces/sidebar/worktree-row-locators'
|
||||
|
||||
test('Pi EOF removes the completed agent row from the live Electron sidebar (#12907)', async ({
|
||||
orcaPage
|
||||
+10
-5
@@ -1,13 +1,18 @@
|
||||
import { chmod, mkdir, readFile, readdir, writeFile } from 'node:fs/promises'
|
||||
import { dirname, delimiter, join } from 'node:path'
|
||||
import { test as base, expect } from './helpers/orca-app'
|
||||
import { buildShellCommandFromArgv } from '../../src/shared/agent-launch/startup/tui-agent-startup-shell'
|
||||
import { ensureTerminalVisible, waitForActiveWorktree, waitForSessionReady } from './helpers/store'
|
||||
import { test as base } from '../../desktop/electron-fixtures/orca-app'
|
||||
import { expect } from '@stablyai/playwright-test'
|
||||
import { buildShellCommandFromArgv } from '../../../../src/shared/agent-launch/startup/tui-agent-startup-shell'
|
||||
import {
|
||||
ensureTerminalVisible,
|
||||
waitForActiveWorktree,
|
||||
waitForSessionReady
|
||||
} from '../../desktop/renderer-probes/store'
|
||||
import { waitForActivePanePtyId } from '../../terminal/input/terminal'
|
||||
import {
|
||||
execInTerminal,
|
||||
waitForActivePanePtyId,
|
||||
waitForActiveTerminalManager
|
||||
} from './helpers/terminal'
|
||||
} from '../../terminal/layout/terminal-pane-operations'
|
||||
|
||||
const test = base.extend({
|
||||
launchEnv: async ({ seedTestRepo }, run, testInfo) => {
|
||||
+11
-6
@@ -1,13 +1,18 @@
|
||||
import { readFile, writeFile } from 'node:fs/promises'
|
||||
import { buildShellCommandFromArgv } from '../../src/shared/agent-launch/startup/tui-agent-startup-shell'
|
||||
import { test, expect } from './helpers/orca-app'
|
||||
import { ensureTerminalVisible, waitForActiveWorktree, waitForSessionReady } from './helpers/store'
|
||||
import { buildShellCommandFromArgv } from '../../../../src/shared/agent-launch/startup/tui-agent-startup-shell'
|
||||
import { test } from '../../desktop/electron-fixtures/orca-app'
|
||||
import { expect } from '@stablyai/playwright-test'
|
||||
import {
|
||||
ensureTerminalVisible,
|
||||
waitForActiveWorktree,
|
||||
waitForSessionReady
|
||||
} from '../../desktop/renderer-probes/store'
|
||||
import { waitForActivePanePtyId } from '../../terminal/input/terminal'
|
||||
import {
|
||||
execInTerminal,
|
||||
waitForActivePaneHookDescriptor,
|
||||
waitForActivePanePtyId,
|
||||
waitForActiveTerminalManager
|
||||
} from './helpers/terminal'
|
||||
} from '../../terminal/layout/terminal-pane-operations'
|
||||
import { waitForActivePaneHookDescriptor } from '../../terminal/input/terminal-active-pane'
|
||||
|
||||
test('OMP model picker dispatches its advertised command and adopts the host report', async ({
|
||||
orcaPage,
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user