Repository navigation
Retire browser dev mode: remove dev-proxy, HttpAdapter, BrowserSyncService and the e2e tier - #4232
Merged
Merged
Conversation
Contributor
Author
|
Merge queue: #4232 was taken out of the queue — the merge gate failed on it, on top of main. Reproduce by merging or rebasing |
Browser dev mode ran the frontend in Chrome against an HTTP dev-proxy that imitated the Tauri commands. Delete the proxy package, the dev:browser family and demo:browser, the e2e tier that drove HttpAdapter through the proxy (its vitest config, harness, suites, script and merge-gate stage), and the schema-parity test that compared the two paths. `bun run dev` now runs dev:tauri. The adapter contract test is restated against the Tauri seam alone as tauri_typed_update_seam_test: task tri-state update, typed updates of the core types and InsertPosition on create and move, through the real command layer against a real daemon. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
backendAdapter now resolves to the Tauri adapter, or the test mock. Delete HttpAdapter, BrowserSyncService, the SSE event types, http-response, the HTTP route tables, the typed-update patch builders and the storage-to-wire conversion that only the proxy used, and the HTTP branches of tauri-commands and collection-service. app-initialization, app-shell, the database store, the model store and the chat viewer no longer branch to a browser-mode path. Tests that pinned the HTTP path are removed. The database settings tests mock the registry listing instead of relying on the implicit browser database. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The run-app skill now launches the desktop app with `bun run dev` and drives it through the debug bridge; the dev-tools package is gone from the layout in AGENTS.md and e2e from the merge gate description. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Drop the coverage exclude of the deleted sse-events.ts, reword the dev-server and SSE mentions in comments, and fix a describe title's trailing space. Comments and config only. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Retires browser dev mode as decided in ADR-103: one backend path, the Tauri command layer. Agents inspect the real app through the debug bridge.
Removed
packages/dev-tools/(the HTTP dev-proxy) and its unit tests.dev:browser,dev:browser:proxy,dev:browser:frontend,dev:browser:prod,demo:browser,test:e2e,test:e2e:watch;bun run devnow runsdev:tauri. The unusedconcurrentlydependency goes with them.HttpAdapter,BrowserSyncService, the SSE event types,http-response.ts, the HTTP route tables, the typed-update patch builders andstorageNodeToApiFields(all used only by the proxy or the HTTP adapter).tauri-commands.tsandcollection-service.ts, the browser-mode branches inapp-initialization,app-shell, the database store (implicit browser database), the model store and the native chat viewer (polling fallback).vitest.e2e.config.ts,src/tests/e2e/*, the merge-gate stage) and the proxy/adapter parity tests (schema_parity_test.rs, TSadapter-contract.e2e.ts).packages/dev-toolsfromscripts/gate-scope.tsandcheck-code-references.ts; stale references in AGENTS.md; the run-app skill is rewritten aroundbun run devand the debug bridge.What replaces the tests
Per ADR-103 the replacement is the Tauri-seam tier of ADR-048 (command layer against a real
nodespaced), which already exists and stays in the merge gate.adapter_contract_test.rsis restated against the Tauri seam alone astauri_typed_update_seam_test.rs(task tri-state update, typed updates of the core types, InsertPosition on create and move), with no mention of a second adapter.Not covered anymore
Headless frontend-to-daemon coverage over HTTP (watch stream isolation, schema seeding, daemon readiness, collection fields) is gone; the daemon's gRPC and the Tauri-seam tiers cover the daemon side. A UI tier on mocked IPC is a testing-strategy item, not part of this change (ADR-103 point 2).
Verification
eslintandsvelte-checkclean.scriptstests,quality:scripts:checkandcheck-code-referencespass.cargo test -p nodespace-app-lib --test it --no-runcompiles; the seam tests were not run here (they spawn a real daemon, left to the merge gate).bun run mergegate.Docs counterpart (ADR-103, debug-bridge.md, e2e-testing.md) is nodespace-docs #137.
Closes #3785
🤖 Generated with Claude Code