You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test the real Tauri-to-daemon seam end-to-end #1499
The shipping app path is Svelte → TauriAdapter.invoke() → the Tauri command layer → gRPC/UDS → the daemon → libsql. There are ~104 Tauri commands and the e2e suite exercises none of that path — the existing e2e tests go through the dev-proxy (HTTP) path, and the "integration" test for Tauri commands is mock-on-mock (it asserts a vi.fn() returned what it was told to return).
Problem Statement
The path the shipping app actually uses is untested at every layer, and it is exactly the seam where the optimistic-vs-echo state races occur. Synchronous mock-adapter unit tests cannot reproduce an out-of-order daemon echo.
Proposed Solution
Extend DaemonTestHarness (which already spawns a real headless daemon + real SQLite in a temp dir) to drive the Tauri command layer end-to-end; replace the mock-on-mock test with a real seam test. Governed by ADR-048. Cover the priority flows: node CRUD round-trip; optimistic-edit-vs-echo race; indent/outdent + rapid-Enter ordering; ai-chat send→idle with a stub model; startup readiness + degraded state; model-download terminal state incl. cancel; cross-window hierarchy sync. Include a commits-per-edit assertion (type a word → exactly one UpdateNode, version +1).
Acceptance Criteria
DaemonTestHarness drives the Tauri command layer against a real headless daemon
The mock-on-mock Tauri-commands test is replaced with a real seam test
The priority flows above are covered
A commits-per-edit test asserts exactly one UpdateNode per coalesced edit
Activity
malibio commentedon Jul 6, 2026
Frontend baseline: 148 test files passed, 3963 tests passed.