Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed app/test/e2e/specs/login-flow.spec.ts,app/test/playwright/specs/chat-tool-error

Steven Enamakelcf5e9dfc8d69
diff --git a/app/test/e2e/specs/login-flow.spec.ts b/app/test/e2e/specs/login-flow.spec.ts
index fd86d6d873..6cdf7da05f 100644
--- a/app/test/e2e/specs/login-flow.spec.ts
+++ b/app/test/e2e/specs/login-flow.spec.ts
@@ -21,11 +21,7 @@
*/
import { waitForApp, waitForAppReady, waitForAuthBootstrap } from '../helpers/app-helpers';
import { buildBypassJwt, triggerAuthDeepLink, triggerDeepLink } from '../helpers/deep-link-helpers';
-import {
- hasAppChrome,
- waitForWebView,
- waitForWindowVisible,
-} from '../helpers/element-helpers';
+import { hasAppChrome, waitForWebView, waitForWindowVisible } from '../helpers/element-helpers';
import { resetApp } from '../helpers/reset-app';
import { waitForHomePage, walkOnboarding } from '../helpers/shared-flows';
import {
diff --git a/app/test/playwright/specs/chat-tool-error-recovery.spec.ts b/app/test/playwright/specs/chat-tool-error-recovery.spec.ts
index 0d8a785ee8..84fbaf8c29 100644
--- a/app/test/playwright/specs/chat-tool-error-recovery.spec.ts
+++ b/app/test/playwright/specs/chat-tool-error-recovery.spec.ts
@@ -1,11 +1,11 @@
import { expect, type Page, test } from '@playwright/test';
+import { inFlightThreadKey } from '../helpers/chat-transcript';
import {
bootAuthenticatedPage,
dismissWalkthroughIfPresent,
waitForAppReady,
} from '../helpers/core-rpc';
-import { inFlightThreadKey } from '../helpers/chat-transcript';
const MOCK_ADMIN_BASE = `http://127.0.0.1:${process.env.E2E_MOCK_PORT || '18473'}`;
const USER_ID = 'pw-chat-error-recovery';
diff --git a/app/test/playwright/specs/webhooks-ingress-flow.spec.ts b/app/test/playwright/specs/webhooks-ingress-flow.spec.ts
index cc8ceed6be..1ff5a21038 100644
--- a/app/test/playwright/specs/webhooks-ingress-flow.spec.ts
+++ b/app/test/playwright/specs/webhooks-ingress-flow.spec.ts
@@ -32,10 +32,7 @@ test.describe('Webhooks ingress surface (stub-level)', () => {
expect(logs.result.logs).toEqual([]);
expect(logs.logs[0]).toContain('webhooks.list_logs returned 0');
- let register: {
- result: { registrations: unknown[] };
- logs: string[];
- };
+ let register: { result: { registrations: unknown[] }; logs: string[] };
try {
register = await callCoreRpc('openhuman.webhooks_register_echo', {
tunnel_uuid: tunnelUuid,
@@ -59,13 +56,11 @@ test.describe('Webhooks ingress surface (stub-level)', () => {
expect(clear.result.cleared).toBe(0);
expect(clear.logs[0]).toContain('webhooks.clear_logs removed 0');
- const unregister = await callCoreRpc<{
- result: { registrations: unknown[] };
- logs: string[];
- }>('openhuman.webhooks_unregister_echo', { tunnel_uuid: tunnelUuid });
- expect(unregister.result.registrations).toEqual([]);
- expect(unregister.logs[0]).toContain(
- `webhooks.unregister_echo removed tunnel ${tunnelUuid}`
+ const unregister = await callCoreRpc<{ result: { registrations: unknown[] }; logs: string[] }>(
+ 'openhuman.webhooks_unregister_echo',
+ { tunnel_uuid: tunnelUuid }
);
+ expect(unregister.result.registrations).toEqual([]);
+ expect(unregister.logs[0]).toContain(`webhooks.unregister_echo removed tunnel ${tunnelUuid}`);
});
});
diff --git a/docs/gitbooks/en/developing/e2e-testing.md b/docs/gitbooks/en/developing/e2e-testing.md
index faa1f8d4f0..64c27289d0 100644
--- a/docs/gitbooks/en/developing/e2e-testing.md
+++ b/docs/gitbooks/en/developing/e2e-testing.md
@@ -13,9 +13,9 @@ End-to-end coverage uses the Rust mock backend, Playwright in a real browser, an
Desktop E2E tests use WebDriverIO (WDIO) to drive the app through a single `tauri-driver` (WebDriver) session against its native Wry/WebKit webview:
-| Platform | Driver | Port | App format | Selectors |
-| --------- | ------------------------------ | ---- | ------------ | --------- |
-| Linux | tauri-driver + WebKitWebDriver | 4444 | Debug binary | CSS / DOM |
+| Platform | Driver | Port | App format | Selectors |
+| -------- | ------------------------------ | ---- | ------------ | --------- |
+| Linux | tauri-driver + WebKitWebDriver | 4444 | Debug binary | CSS / DOM |
Linux CI drives the debug binary under Xvfb through `tauri-driver`. macOS and Windows have no automated desktop E2E coverage yet. The Chromium-based driver they used is gone, and a native driver (Appium Mac2 on macOS, WinAppDriver on Windows) would have to replace it. `pnpm --filter openhuman-app test:e2e:build` still produces a `.app` bundle on macOS for manual testing, but there is no supported automated session there.
@@ -177,11 +177,11 @@ runs on a pull request to `main`.
on every push to it. Its final gate requires the Playwright matrix, native
desktop suite and Rust E2E:
-| Lane | Job | Platform |
-| --- | --- | --- |
-| Rust mock backend | `rust-e2e` | Linux |
-| Playwright web | `playwright-e2e` | Four Linux jobs, 16 ordinary shards per job plus round-robin special cases |
-| Desktop | `e2e-desktop`, via `e2e-reusable.yml` | Four Linux suite groups |
+| Lane | Job | Platform |
+| ----------------- | ------------------------------------- | -------------------------------------------------------------------------- |
+| Rust mock backend | `rust-e2e` | Linux |
+| Playwright web | `playwright-e2e` | Four Linux jobs, 16 ordinary shards per job plus round-robin special cases |
+| Desktop | `e2e-desktop`, via `e2e-reusable.yml` | Four Linux suite groups |
Playwright builds its web bundle and standalone core once, then uploads the same artifact to all four lanes. Each of the 64 ordinary Playwright shards starts its own core and workspace. The nine isolated cases (Connections aliases, Connections deep links, and seven Skills search/install cases) also each start their own core and workspace. Every lane is required; the scheduler continues through assigned units to collect failures and exits nonzero if any unit fails. The final gate checks the Playwright matrix result. Manual Playwright uses the same artifact and scheduler.
@@ -202,13 +202,13 @@ desktop test. Keep shared element actions in
Five files intentionally exist in both runner directories because each side
proves a different contract:
-| File | Native WDIO assertion | Playwright assertion |
-| --- | --- | --- |
-| `smoke.spec.ts` | Live Wry window, app chrome and normal embedded-core startup | Browser root/chrome, standalone core bootstrap URL/token and RPC |
-| `login-flow.spec.ts` | Desktop window and deep-link token handling, including invalid, expired or bypass cases | Browser callback entry, token/profile outcome, browser bypass and onboarding |
-| `auth-access-control.spec.ts` | Desktop reauthentication and native auth-expiry event delivery | Account/billing/logout/revocation UI and authoritative auth state |
-| `notifications.spec.ts` | OS permission state and real notification plugin calls | Rendered notification title/body and System Events/empty Alerts UI |
-| `settings-data-management.spec.ts` | Reset IPC, user-data wipe and embedded-core restart | Clear-data confirmation and cancellation UI |
+| File | Native WDIO assertion | Playwright assertion |
+| ---------------------------------- | --------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
+| `smoke.spec.ts` | Live Wry window, app chrome and normal embedded-core startup | Browser root/chrome, standalone core bootstrap URL/token and RPC |
+| `login-flow.spec.ts` | Desktop window and deep-link token handling, including invalid, expired or bypass cases | Browser callback entry, token/profile outcome, browser bypass and onboarding |
+| `auth-access-control.spec.ts` | Desktop reauthentication and native auth-expiry event delivery | Account/billing/logout/revocation UI and authoritative auth state |
+| `notifications.spec.ts` | OS permission state and real notification plugin calls | Rendered notification title/body and System Events/empty Alerts UI |
+| `settings-data-management.spec.ts` | Reset IPC, user-data wipe and embedded-core restart | Clear-data confirmation and cancellation UI |
The executable guard `pnpm e2e:ownership:check` rejects every other duplicate,
stale exception or missing file. Before adding a spec, decide which runtime owns
diff --git a/docs/plans/2026-10-20-e2e-runner-consolidation.md b/docs/plans/2026-10-20-e2e-runner-consolidation.md
index fd99de5c07..155715ef4f 100644
--- a/docs/plans/2026-10-20-e2e-runner-consolidation.md
+++ b/docs/plans/2026-10-20-e2e-runner-consolidation.md
@@ -10,13 +10,13 @@ A mixed spec is split by assertions, not renamed wholesale. Move every distinct
The documented basename allowlist will contain exactly these five mixed files, with the restricted native responsibilities below:
-| Basename | Native assertions retained | Playwright responsibility |
-| --- | --- | --- |
-| `smoke.spec.ts` | Live WebDriver session, mapped native window/app chrome, nonempty main webview and normal embedded-core startup | Browser root/chrome, standalone core bootstrap URL/token and RPC reachability |
-| `login-flow.spec.ts` | Actual desktop window/process and deep-link token handling, including expired/invalid and bypass cases | Web callback entry, token/profile outcome, browser bypass and onboarding |
-| `auth-access-control.spec.ts` | Desktop reauthentication/device deep-link handoff and native auth-expiry event delivery | Account/billing/logout/revocation UI and cleared authoritative auth state |
-| `notifications.spec.ts` | Real notification permission and notification plugin command calls | Integration notification body/title and System Events/empty Alerts UI |
-| `settings-data-management.spec.ts` | Confirm Clear App Data invokes the real reset_local_data host path, resets the signed-in user and restarts the embedded core | Confirmation, Cancel and signed-in UI behavior |
+| Basename | Native assertions retained | Playwright responsibility |
+| ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
+| `smoke.spec.ts` | Live WebDriver session, mapped native window/app chrome, nonempty main webview and normal embedded-core startup | Browser root/chrome, standalone core bootstrap URL/token and RPC reachability |
+| `login-flow.spec.ts` | Actual desktop window/process and deep-link token handling, including expired/invalid and bypass cases | Web callback entry, token/profile outcome, browser bypass and onboarding |
+| `auth-access-control.spec.ts` | Desktop reauthentication/device deep-link handoff and native auth-expiry event delivery | Account/billing/logout/revocation UI and cleared authoritative auth state |
+| `notifications.spec.ts` | Real notification permission and notification plugin command calls | Integration notification body/title and System Events/empty Alerts UI |
+| `settings-data-management.spec.ts` | Confirm Clear App Data invokes the real reset_local_data host path, resets the signed-in user and restarts the embedded core | Confirmation, Cancel and signed-in UI behavior |
`tauri-commands.spec.ts` remains native only. Move its browser bootstrap/RPC assertions into the existing browser `smoke.spec.ts`, then delete its browser file. Both `core-port-conflict-recovery` copies only assert normal startup: move their useful startup assertions to the respective smoke cases, delete both files and record that neither established occupied-port recovery. Do not claim new port-conflict coverage.
@@ -26,59 +26,59 @@ This plan does not move the 24 non-twin native files wholesale. They have no los
Paths in the table are relative to `app/test/{e2e,playwright}/specs/`; each basename below exists in both at the design baseline. There are currently 52 intersections: `telegram-channel-flow.spec.ts` is the additional pair being retired by issue 233 and is excluded from this issue. Recheck that dependency before execution. “PW” means retain/strengthen the browser file, then remove the native file and its master-runner entry after the migration passes. “Mixed” means apply the restricted split above, not retaining both original suites unchanged.
-| # | Basename | Owner and required preservation before deletion |
-| --- | --- | --- |
-| 1 | `agent-review.spec.ts` | PW. Preserve reach-shell and privacy Product Analytics label/toggle copy plus native artifact checkpoints (screenshot, page source and mock request log), using browser screenshots/testInfo attachments rather than silently dropping the observability contract. Managed onboarding now completes automatically; use the current self-hosted onboarding test for actual step interaction, not obsolete welcome-step text. |
-| 2 | `auth-access-control.spec.ts` | Mixed. Preserve desktop reauth/device token consume and event-delivered expiration. Move four billing/dashboard entry/handoff assertions plus UI logout credential clearing and revoked-session return-to-Welcome into browser cases. PW bypass must continue asserting zero token-consume requests. |
-| 3 | `card-payment-flow.spec.ts` | PW. Current Account `account-open-billing` presence, Plan & billing handoff and back-to-settings navigation. No historical card processing claim. |
-| 4 | `channels-smoke.spec.ts` | PW with mandatory migration M1: actual Telegram badge Not configured → Connected → Not configured, matching real RPC status on both edges; retain Discord panel presence. |
-| 5 | `chat-conversation-history.spec.ts` | PW with M3. Preserve both user turns and first assistant in the second model request, final canary and durable transcript containing both exchanges. Existing PW only proves request context and visible canary. |
-| 6 | `chat-harness-cancel.spec.ts` | PW with M3. Observe an early delta before cancel, no late chunks in DOM or durable transcript, no in-flight entry, composer/send enabled. Existing browser case lacks durable cancellation oracle. |
-| 7 | `chat-harness-scroll-render.spec.ts` | PW. Preserve bold/code/link structure, overflow/bottom anchor, scroll-up release and native distance tolerances. Keep browser indented code block completeness and href assertion. |
-| 8 | `chat-harness-send-stream.spec.ts` | PW with M3. Streaming request flag, full reply, finished in-flight state, durable prompt+reply, nonempty workspace transcript list/positive sizes. Browser title currently overstates persistence. |
-| 9 | `chat-harness-wallet-flow.spec.ts` | PW with M4. Recovery Phrase real UI, visible Copy action/saved confirmation plus durable consentGranted=true, source=generated and EVM/BTC/Solana/Tron accounts. Do not replace state oracle with canned text. |
-| 10 | `chat-multi-tool-round.spec.ts` | PW with M5. Native file_read/grep suite is wholly skipped by its before hook (#236); retain active browser web_fetch/web_search cards/order. Retire dormant native intent honestly, without claiming filesystem-tool coverage was transferred. |
-| 11 | `chat-tool-call-flow.spec.ts` | PW. Preserve browser’s stronger one final bubble, second paragraph once, successful terminal tool outcome/body, done status, no running/task-insights and no in-flight turn. |
-| 12 | `chat-tool-error-recovery.spec.ts` | PW. Interrupted-turn error, reenabled composer, cleared in-flight and successful new send/reply; observe the exact thread's live in-flight key and require its removal after both the error and retry. |
-| 13 | `command-palette.spec.ts` | PW with M6. Preserve five seed actions, Enter navigation/Escape, reopen-after-close listener survival, mod+/ directory headings/New Chat/Toggle Sidebar and unfocused ? opening/closing. Existing arrow-key companion remains. |
-| 14 | `composio-triggers-flow.spec.ts` | PW. ACTIVE Gmail manage dialog, trigger-toggles and New Gmail Message label, using existing local Composio fixtures. |
-| 15 | `connectivity-state-differentiation.spec.ts` | Retire both stale E2E copies. Source history shows the Home surface that consumed the offline selector was removed before the baseline; the selector and listener remain covered by focused unit tests. Do not claim this obsolete banner as migrated browser UI coverage or replace it with generic shell/ping checks. |
-| 16 | `connector-gmail-composio.spec.ts` | PW. Card selectable, failed state stays usable, expired auth management/reconnect affordance remains signed in. Transfer the explicit native reconnect affordance if absent. |
-| 17 | `conversations-web-channel-flow.spec.ts` | PW with M3. Preserve UI send and actual inference request, no chat_send-unavailable error; add native in-flight navigation-away/back continuation and no generic error. Native suite is skipped on Linux but active on other platforms; record that origin, not a Linux passing baseline. |
-| 18 | `core-port-conflict-recovery.spec.ts` | Remove both after moving normal startup into native/browser smoke. No occupied port is established by either source. |
-| 19 | `cron-jobs-flow.spec.ts` | PW with M2. Replace fallback-or-error success with actual row, Pause→Resume persisted after Refresh, Resume→Pause and Remove/UI+RPC absence. Keep no scheduler-execution or guaranteed-auto-seed claim: native creates missing seed too. |
-| 20 | `crypto-payment-flow.spec.ts` | PW. Current Plan & billing/Open dashboard handoff/explanation and explicit user action; replace stale moved-to-web text with current account UI selectors already used by card/account tests. No crypto transaction claim. |
-| 21 | `gmail-flow.spec.ts` | PW with M7. Preserve setup/cancel, current management/disconnect and card returns to Connect; revoked/expired state stays signed in, reauthorization opens setup after disconnect, post-disconnect state blocked. Some native checks only prove shell survives: describe their actual assertion. |
-| 22 | `guided-tour-gates.spec.ts` | PW with M8. Migrate current native seven-step chat→Apps contract, final seeded welcome note, no lingering Skip and pending reload. Existing browser ten-step/home-card expectations contradict current source. |
-| 23 | `harness-composio-tool-flow.spec.ts` | PW. Both drive scripted Gmail action then final subject/canary; preserve rendered subject and final reply. Do not claim the canned subject proves live Gmail execution. |
-| 24 | `local-model-runtime.spec.ts` | PW. Retired settings/local-model-debug lands Connections LLM tab, hash excludes legacy slug and Runtime Status absent. Browser currently only checks Connections substring. |
-| 25 | `login-flow.spec.ts` | Mixed. Keep host entry assertions only; preserve token/profile/onboarding outcome plus invalid/expired/bypass cases in their actual host. Web callback stays web. |
-| 26 | `logout-relogin-onboarding.spec.ts` | PW with M9. Add native same-account completion survives logout/relogin case. Keep browser explicit-reset→automatic-completion case separately; it tests a different precondition. |
-| 27 | `navigation-settings-panels.spec.ts` | PW with M10. Union actual visited native settings/memory-data, /brain, developer-options, account, appearance, tools and browser inventory. Preserve nonblank checks/back-to-chat; resolve redirects from AppRoutes, not stale comments. |
-| 28 | `navigation-smoothness.spec.ts` | PW with M10. Union actual routes including notifications and Memory query, two consecutive cycles, route budget/nonblank and final /home→/chat content. |
-| 29 | `navigation.spec.ts` | PW with M10. Add native /flows and /connections?tab=brain plus memory-page marker. Keep browser /human and legacy /home,/skills,/activity,/intelligence redirect inventory. Keep >50 nonblank threshold on comparable native routes; sparse Human can retain its current >20 rule. |
-| 30 | `notifications.spec.ts` | Mixed. Native only permission-state enum and real plugin invocation. Browser already owns stronger visible notification title/body and System Events/Alerts empty state. |
-| 31 | `onboarding-modes.spec.ts` | PW. Self-hosted Inference→Search(skip)→Vault, labels/order, completion flag, no retired Voice/OAuth/Embeddings steps; managed automatic chat landing/completion. |
-| 32 | `runtime-picker-login.spec.ts` | PW with M9. Preserve welcome self-hosted/managed/provider choices, complete custom wizard, managed auth/me + completion and logout welcome choices. Existing browser only provider login/logout. Reuse onboarding helper, no duplicated full wizard. |
-| 33 | `settings-account-preferences.spec.ts` | PW. Account/preferences/language, generated phrase configured accounts, analytics snapshot, billing action; keep browser’s additional time-zone persistence. |
-| 34 | `settings-advanced-config.spec.ts` | PW with M10. Keep triage/autonomy/Composio direct→backend persistence. Add native retired notifications→account and agent-chat→LLM redirects; about Check for updates and local-model/LLM destinations, alongside browser Resources/current controls. |
-| 35 | `settings-ai-skills.spec.ts` | PW. Providers/routing tabs and Tools toggles. Preserve existing tracked #6395 default-model reload skip as a skip, never count it as passing evidence. |
-| 36 | `settings-channels-permissions.spec.ts` | PW. Telegram/Web selection/redux state, analytics privacy control and label. Keep browser privacy-mode-options. |
-| 37 | `settings-data-management.spec.ts` | Mixed with M11. Browser confirmation/Cancel; native only real reset_local_data IPC/user wipe/core restart plus E2E renderer reload. Never count arbitrary WebDriver exception as restart success. |
-| 38 | `settings-feature-preferences.spec.ts` | PW with M10. Union all native retired feature/notifications routes; preserve channel redux, enabled-tools snapshot, mascot color and custom voice. Keep browser manifest mascot selection/Human route coverage. |
-| 39 | `skill-execution-flow.spec.ts` | PW. Authenticated shell, core.ping and Connections content only. Does not prove execution. |
-| 40 | `skill-lifecycle.spec.ts` | PW. Connections route, current Apps/Messaging/Tools labels and flows_list array. No install/uninstall lifecycle claim. |
-| 41 | `skill-multi-round.spec.ts` | PW. Chat route plus actual chat-agent-panel marker. Neither source proves multi-round execution; do not create another scripted canary. |
-| 42 | `skill-oauth.spec.ts` | PW. Current connector row/action affordance after login only. No OAuth roundtrip claim. |
-| 43 | `skill-socket-reconnect.spec.ts` | PW. Authenticated chat baseline only. Neither source reconnects socket. |
-| 44 | `skills-registry.spec.ts` | PW. Current Apps/Messaging/Tools/MCP UI plus existing sources/browse/search/filter RPC assertions. Native conditional install/uninstall must be inventoried as conditional: if actual current UI exposes its affordance, preserve its request assertion in existing install browser suite; never fabricate an executed lifecycle when branch was absent. |
-| 45 | `smoke.spec.ts` | Mixed. See restricted responsibility and bootstrap transfer from browser Tauri/port files. |
-| 46 | `tauri-commands.spec.ts` | Native only for real IPC URL/token/relay and driver screenshot. Transfer browser standalone bootstrap/ping/about-app checks to browser smoke before removing browser copy. |
-| 47 | `user-journey-full-task.spec.ts` | PW. Send/user bubble, tool timeline, final reply and navigation-away/back persistence. Native timeline OR final canary is weaker; retain canonical browser tool assertions elsewhere rather than duplicating full flow. |
-| 48 | `user-journey-settings-round-trip.spec.ts` | PW. Preserve account Plan & billing/Open dashboard text, >50 content, memory/developer routes and final chat readiness. |
-| 49 | `voice-mode.spec.ts` | PW. Mode/text toggle, live Human controls, denied/missing mic specific errors and no phantom beep/user message. Both hosted STT-status RPC shape cases preserved. Native skipped mic block/#435 stays documented as unverified; do not manufacture PTT proof. Existing non-twin native PTT host coverage remains separately owned. |
-| 50 | `webhooks-ingress-flow.spec.ts` | PW. Preserve exact registrations/logs/clear/unregister outcomes and native response log messages, not browser’s weaker array/number checks. Stub-level RPC contract, not real ingress. |
-| 51 | `webhooks-tunnel-flow.spec.ts` | PW. Stronger browser create/list/delete and mock traffic retained; add native legacy Webhooks route→Connections redirect. |
+| # | Basename | Owner and required preservation before deletion |
+| --- | -------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| 1 | `agent-review.spec.ts` | PW. Preserve reach-shell and privacy Product Analytics label/toggle copy plus native artifact checkpoints (screenshot, page source and mock request log), using browser screenshots/testInfo attachments rather than silently dropping the observability contract. Managed onboarding now completes automatically; use the current self-hosted onboarding test for actual step interaction, not obsolete welcome-step text. |
+| 2 | `auth-access-control.spec.ts` | Mixed. Preserve desktop reauth/device token consume and event-delivered expiration. Move four billing/dashboard entry/handoff assertions plus UI logout credential clearing and revoked-session return-to-Welcome into browser cases. PW bypass must continue asserting zero token-consume requests. |
+| 3 | `card-payment-flow.spec.ts` | PW. Current Account `account-open-billing` presence, Plan & billing handoff and back-to-settings navigation. No historical card processing claim. |
+| 4 | `channels-smoke.spec.ts` | PW with mandatory migration M1: actual Telegram badge Not configured → Connected → Not configured, matching real RPC status on both edges; retain Discord panel presence. |
+| 5 | `chat-conversation-history.spec.ts` | PW with M3. Preserve both user turns and first assistant in the second model request, final canary and durable transcript containing both exchanges. Existing PW only proves request context and visible canary. |
+| 6 | `chat-harness-cancel.spec.ts` | PW with M3. Observe an early delta before cancel, no late chunks in DOM or durable transcript, no in-flight entry, composer/send enabled. Existing browser case lacks durable cancellation oracle. |
+| 7 | `chat-harness-scroll-render.spec.ts` | PW. Preserve bold/code/link structure, overflow/bottom anchor, scroll-up release and native distance tolerances. Keep browser indented code block completeness and href assertion. |
+| 8 | `chat-harness-send-stream.spec.ts` | PW with M3. Streaming request flag, full reply, finished in-flight state, durable prompt+reply, nonempty workspace transcript list/positive sizes. Browser title currently overstates persistence. |
+| 9 | `chat-harness-wallet-flow.spec.ts` | PW with M4. Recovery Phrase real UI, visible Copy action/saved confirmation plus durable consentGranted=true, source=generated and EVM/BTC/Solana/Tron accounts. Do not replace state oracle with canned text. |
+| 10 | `chat-multi-tool-round.spec.ts` | PW with M5. Native file_read/grep suite is wholly skipped by its before hook (#236); retain active browser web_fetch/web_search cards/order. Retire dormant native intent honestly, without claiming filesystem-tool coverage was transferred. |
+| 11 | `chat-tool-call-flow.spec.ts` | PW. Preserve browser’s stronger one final bubble, second paragraph once, successful terminal tool outcome/body, done status, no running/task-insights and no in-flight turn. |
+| 12 | `chat-tool-error-recovery.spec.ts` | PW. Interrupted-turn error, reenabled composer, cleared in-flight and successful new send/reply; observe the exact thread's live in-flight key and require its removal after both the error and retry. |
+| 13 | `command-palette.spec.ts` | PW with M6. Preserve five seed actions, Enter navigation/Escape, reopen-after-close listener survival, mod+/ directory headings/New Chat/Toggle Sidebar and unfocused ? opening/closing. Existing arrow-key companion remains. |
+| 14 | `composio-triggers-flow.spec.ts` | PW. ACTIVE Gmail manage dialog, trigger-toggles and New Gmail Message label, using existing local Composio fixtures. |
+| 15 | `connectivity-state-differentiation.spec.ts` | Retire both stale E2E copies. Source history shows the Home surface that consumed the offline selector was removed before the baseline; the selector and listener remain covered by focused unit tests. Do not claim this obsolete banner as migrated browser UI coverage or replace it with generic shell/ping checks. |
+| 16 | `connector-gmail-composio.spec.ts` | PW. Card selectable, failed state stays usable, expired auth management/reconnect affordance remains signed in. Transfer the explicit native reconnect affordance if absent. |
+| 17 | `conversations-web-channel-flow.spec.ts` | PW with M3. Preserve UI send and actual inference request, no chat_send-unavailable error; add native in-flight navigation-away/back continuation and no generic error. Native suite is skipped on Linux but active on other platforms; record that origin, not a Linux passing baseline. |
+| 18 | `core-port-conflict-recovery.spec.ts` | Remove both after moving normal startup into native/browser smoke. No occupied port is established by either source. |
+| 19 | `cron-jobs-flow.spec.ts` | PW with M2. Replace fallback-or-error success with actual row, Pause→Resume persisted after Refresh, Resume→Pause and Remove/UI+RPC absence. Keep no scheduler-execution or guaranteed-auto-seed claim: native creates missing seed too. |
+| 20 | `crypto-payment-flow.spec.ts` | PW. Current Plan & billing/Open dashboard handoff/explanation and explicit user action; replace stale moved-to-web text with current account UI selectors already used by card/account tests. No crypto transaction claim. |
+| 21 | `gmail-flow.spec.ts` | PW with M7. Preserve setup/cancel, current management/disconnect and card returns to Connect; revoked/expired state stays signed in, reauthorization opens setup after disconnect, post-disconnect state blocked. Some native checks only prove shell survives: describe their actual assertion. |
+| 22 | `guided-tour-gates.spec.ts` | PW with M8. Migrate current native seven-step chat→Apps contract, final seeded welcome note, no lingering Skip and pending reload. Existing browser ten-step/home-card expectations contradict current source. |
+| 23 | `harness-composio-tool-flow.spec.ts` | PW. Both drive scripted Gmail action then final subject/canary; preserve rendered subject and final reply. Do not claim the canned subject proves live Gmail execution. |
+| 24 | `local-model-runtime.spec.ts` | PW. Retired settings/local-model-debug lands Connections LLM tab, hash excludes legacy slug and Runtime Status absent. Browser currently only checks Connections substring. |
+| 25 | `login-flow.spec.ts` | Mixed. Keep host entry assertions only; preserve token/profile/onboarding outcome plus invalid/expired/bypass cases in their actual host. Web callback stays web. |
+| 26 | `logout-relogin-onboarding.spec.ts` | PW with M9. Add native same-account completion survives logout/relogin case. Keep browser explicit-reset→automatic-completion case separately; it tests a different precondition. |
+| 27 | `navigation-settings-panels.spec.ts` | PW with M10. Union actual visited native settings/memory-data, /brain, developer-options, account, appearance, tools and browser inventory. Preserve nonblank checks/back-to-chat; resolve redirects from AppRoutes, not stale comments. |
+| 28 | `navigation-smoothness.spec.ts` | PW with M10. Union actual routes including notifications and Memory query, two consecutive cycles, route budget/nonblank and final /home→/chat content. |
+| 29 | `navigation.spec.ts` | PW with M10. Add native /flows and /connections?tab=brain plus memory-page marker. Keep browser /human and legacy /home,/skills,/activity,/intelligence redirect inventory. Keep >50 nonblank threshold on comparable native routes; sparse Human can retain its current >20 rule. |
+| 30 | `notifications.spec.ts` | Mixed. Native only permission-state enum and real plugin invocation. Browser already owns stronger visible notification title/body and System Events/Alerts empty state. |
+| 31 | `onboarding-modes.spec.ts` | PW. Self-hosted Inference→Search(skip)→Vault, labels/order, completion flag, no retired Voice/OAuth/Embeddings steps; managed automatic chat landing/completion. |
+| 32 | `runtime-picker-login.spec.ts` | PW with M9. Preserve welcome self-hosted/managed/provider choices, complete custom wizard, managed auth/me + completion and logout welcome choices. Existing browser only provider login/logout. Reuse onboarding helper, no duplicated full wizard. |
+| 33 | `settings-account-preferences.spec.ts` | PW. Account/preferences/language, generated phrase configured accounts, analytics snapshot, billing action; keep browser’s additional time-zone persistence. |
+| 34 | `settings-advanced-config.spec.ts` | PW with M10. Keep triage/autonomy/Composio direct→backend persistence. Add native retired notifications→account and agent-chat→LLM redirects; about Check for updates and local-model/LLM destinations, alongside browser Resources/current controls. |
+| 35 | `settings-ai-skills.spec.ts` | PW. Providers/routing tabs and Tools toggles. Preserve existing tracked #6395 default-model reload skip as a skip, never count it as passing evidence. |
+| 36 | `settings-channels-permissions.spec.ts` | PW. Telegram/Web selection/redux state, analytics privacy control and label. Keep browser privacy-mode-options. |
+| 37 | `settings-data-management.spec.ts` | Mixed with M11. Browser confirmation/Cancel; native only real reset_local_data IPC/user wipe/core restart plus E2E renderer reload. Never count arbitrary WebDriver exception as restart success. |
+| 38 | `settings-feature-preferences.spec.ts` | PW with M10. Union all native retired feature/notifications routes; preserve channel redux, enabled-tools snapshot, mascot color and custom voice. Keep browser manifest mascot selection/Human route coverage. |
+| 39 | `skill-execution-flow.spec.ts` | PW. Authenticated shell, core.ping and Connections content only. Does not prove execution. |
+| 40 | `skill-lifecycle.spec.ts` | PW. Connections route, current Apps/Messaging/Tools labels and flows_list array. No install/uninstall lifecycle claim. |
+| 41 | `skill-multi-round.spec.ts` | PW. Chat route plus actual chat-agent-panel marker. Neither source proves multi-round execution; do not create another scripted canary. |
+| 42 | `skill-oauth.spec.ts` | PW. Current connector row/action affordance after login only. No OAuth roundtrip claim. |
+| 43 | `skill-socket-reconnect.spec.ts` | PW. Authenticated chat baseline only. Neither source reconnects socket. |
+| 44 | `skills-registry.spec.ts` | PW. Current Apps/Messaging/Tools/MCP UI plus existing sources/browse/search/filter RPC assertions. Native conditional install/uninstall must be inventoried as conditional: if actual current UI exposes its affordance, preserve its request assertion in existing install browser suite; never fabricate an executed lifecycle when branch was absent. |
+| 45 | `smoke.spec.ts` | Mixed. See restricted responsibility and bootstrap transfer from browser Tauri/port files. |
+| 46 | `tauri-commands.spec.ts` | Native only for real IPC URL/token/relay and driver screenshot. Transfer browser standalone bootstrap/ping/about-app checks to browser smoke before removing browser copy. |
+| 47 | `user-journey-full-task.spec.ts` | PW. Send/user bubble, tool timeline, final reply and navigation-away/back persistence. Native timeline OR final canary is weaker; retain canonical browser tool assertions elsewhere rather than duplicating full flow. |
+| 48 | `user-journey-settings-round-trip.spec.ts` | PW. Preserve account Plan & billing/Open dashboard text, >50 content, memory/developer routes and final chat readiness. |
+| 49 | `voice-mode.spec.ts` | PW. Mode/text toggle, live Human controls, denied/missing mic specific errors and no phantom beep/user message. Both hosted STT-status RPC shape cases preserved. Native skipped mic block/#435 stays documented as unverified; do not manufacture PTT proof. Existing non-twin native PTT host coverage remains separately owned. |
+| 50 | `webhooks-ingress-flow.spec.ts` | PW. Preserve exact registrations/logs/clear/unregister outcomes and native response log messages, not browser’s weaker array/number checks. Stub-level RPC contract, not real ingress. |
+| 51 | `webhooks-tunnel-flow.spec.ts` | PW. Stronger browser create/list/delete and mock traffic retained; add native legacy Webhooks route→Connections redirect. |
## Migration recipes and gates
@@ -89,12 +89,12 @@ Every migration uses existing `bootAuthenticatedPage`, `callCoreRpc`, mock contr
In `app/test/playwright/specs/channels-smoke.spec.ts`, preserve current panel presence then add one actual lifecycle case. Use the surviving issue-233 RPC field contract directly through browser `callCoreRpc`:
```ts
-const channel = { channel: 'telegram', authMode: 'bot_token' };
-await callCoreRpc('openhuman.channels_disconnect', channel);
+const channel = { channel: "telegram", authMode: "bot_token" };
+await callCoreRpc("openhuman.channels_disconnect", channel);
// Require a status entry selected by channel_id === telegram AND auth_mode === bot_token.
-await callCoreRpc('openhuman.channels_connect', {
+await callCoreRpc("openhuman.channels_connect", {
...channel,
- credentials: { bot_token: '111111:e2e-channels-smoke-token' },
+ credentials: { bot_token: "111111:e2e-channels-smoke-token" },
});
```
@@ -222,12 +222,12 @@ The PR and documentation must state the final decision explicitly: either the co
Historical baseline is upstream run `39011962001`, captured in workflow receipt `8089-baseline-ci-full-jobs.json`:
-| Scope | Observed wall time | Limitation |
-| --- | --- | --- |
-| Playwright job | 78m55s | Historical source/cache context |
-| Playwright test step | 76m46s | 64 serial shards + special units |
-| Native build start through last desktop shard finish | 39m32s | Chat shard failed; not a green suite comparison |
-| Combined E2E envelope | 86m29s | Includes build/fanout; not total CI Full duration |
+| Scope | Observed wall time | Limitation |
+| ---------------------------------------------------- | ------------------ | ------------------------------------------------- |
+| Playwright job | 78m55s | Historical source/cache context |
+| Playwright test step | 76m46s | 64 serial shards + special units |
+| Native build start through last desktop shard finish | 39m32s | Chat shard failed; not a green suite comparison |
+| Combined E2E envelope | 86m29s | Includes build/fanout; not total CI Full duration |
No after time exists yet. Do not put an estimate into the PR body as a measurement.
diff --git a/scripts/ci/check-e2e-runner-ownership.mjs b/scripts/ci/check-e2e-runner-ownership.mjs
index 83aa3dca96..b80f309a1b 100644
--- a/scripts/ci/check-e2e-runner-ownership.mjs
+++ b/scripts/ci/check-e2e-runner-ownership.mjs
@@ -4,17 +4,34 @@ import path from "node:path";
import { fileURLToPath } from "node:url";
export const MIXED_RUNNER_EXCEPTIONS = [
- { basename: "smoke.spec.ts", reason: "Native smoke proves a live Wry window and embedded core; Playwright smoke proves standalone browser bootstrap and RPC." },
- { basename: "login-flow.spec.ts", reason: "Native login proves desktop window and deep-link token handling; Playwright login proves browser callback entry." },
- { basename: "auth-access-control.spec.ts", reason: "Native auth proves desktop deep-link reauthentication and native auth-expiry event delivery; Playwright owns account, billing, logout and revocation UI." },
- { basename: "notifications.spec.ts", reason: "Native notifications prove OS permission state and real plugin calls; Playwright owns rendered notification content and empty-state UI." },
- { basename: "settings-data-management.spec.ts", reason: "Native reset proves the host reset IPC and embedded-core restart; Playwright proves confirmation and cancellation UI." },
+ {
+ basename: "smoke.spec.ts",
+ reason:
+ "Native smoke proves a live Wry window and embedded core; Playwright smoke proves standalone browser bootstrap and RPC.",
+ },
+ {
+ basename: "login-flow.spec.ts",
+ reason:
+ "Native login proves desktop window and deep-link token handling; Playwright login proves browser callback entry.",
+ },
+ {
+ basename: "auth-access-control.spec.ts",
+ reason:
+ "Native auth proves desktop deep-link reauthentication and native auth-expiry event delivery; Playwright owns account, billing, logout and revocation UI.",
+ },
+ {
+ basename: "notifications.spec.ts",
+ reason:
+ "Native notifications prove OS permission state and real plugin calls; Playwright owns rendered notification content and empty-state UI.",
+ },
+ {
+ basename: "settings-data-management.spec.ts",
+ reason:
+ "Native reset proves the host reset IPC and embedded-core restart; Playwright proves confirmation and cancellation UI.",
+ },
];
-const defaultRoots = [
- "app/test/e2e/specs",
- "app/test/playwright/specs",
-];
+const defaultRoots = ["app/test/e2e/specs", "app/test/playwright/specs"];
export function checkOwnership(root, exceptions = MIXED_RUNNER_EXCEPTIONS) {
const problems = [];
@@ -26,7 +43,13 @@ export function checkOwnership(root, exceptions = MIXED_RUNNER_EXCEPTIONS) {
continue;
}
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
- if (!entry.isFile() || !/\.(?:spec\.(?:ts|tsx|js|mjs)|browser\.(?:ts|tsx|js|mjs))$/.test(entry.name)) continue;
+ if (
+ !entry.isFile() ||
+ !/\.(?:spec\.(?:ts|tsx|js|mjs)|browser\.(?:ts|tsx|js|mjs))$/.test(
+ entry.name,
+ )
+ )
+ continue;
const matches = byName.get(entry.name) ?? [];
matches.push(relativeDir);
byName.set(entry.name, matches);
@@ -35,21 +58,32 @@ export function checkOwnership(root, exceptions = MIXED_RUNNER_EXCEPTIONS) {
const allowlist = new Map();
for (const exception of exceptions) {
- if (!exception?.basename || typeof exception.reason !== "string" || !exception.reason.trim()) {
- problems.push(`allowlist entry must have a basename and nonempty reason: ${JSON.stringify(exception)}`);
+ if (
+ !exception?.basename ||
+ typeof exception.reason !== "string" ||
+ !exception.reason.trim()
+ ) {
+ problems.push(
+ `allowlist entry must have a basename and nonempty reason: ${JSON.stringify(exception)}`,
+ );
continue;
}
- if (allowlist.has(exception.basename)) problems.push(`duplicate allowlist entry: ${exception.basename}`);
+ if (allowlist.has(exception.basename))
+ problems.push(`duplicate allowlist entry: ${exception.basename}`);
allowlist.set(exception.basename, exception.reason);
const roots = byName.get(exception.basename) ?? [];
if (roots.length !== defaultRoots.length) {
- problems.push(`allowlisted file must exist in both spec roots: ${exception.basename} (found ${roots.length})`);
+ problems.push(
+ `allowlisted file must exist in both spec roots: ${exception.basename} (found ${roots.length})`,
+ );
}
}
for (const [basename, roots] of byName) {
if (roots.length > 1 && !allowlist.has(basename)) {
- problems.push(`unapproved cross-runner duplicate ${basename}: ${roots.join(", ")}`);
+ problems.push(
+ `unapproved cross-runner duplicate ${basename}: ${roots.join(", ")}`,
+ );
}
if (roots.length === 1 && allowlist.has(basename)) {
problems.push(`stale allowlist entry: ${basename}`);
@@ -58,8 +92,14 @@ export function checkOwnership(root, exceptions = MIXED_RUNNER_EXCEPTIONS) {
return problems;
}
-if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {
- const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "../..");
+if (
+ process.argv[1] &&
+ path.resolve(process.argv[1]) === fileURLToPath(import.meta.url)
+) {
+ const root = path.resolve(
+ path.dirname(fileURLToPath(import.meta.url)),
+ "../..",
+ );
const problems = checkOwnership(root);
if (problems.length) {
console.error(problems.map((problem) => `- ${problem}`).join("\n"));