Skip to content

Retire browser dev mode: remove dev-proxy, HttpAdapter, BrowserSyncService and the e2e tier - #4232

Merged
mstomar125 merged 4 commits into
mainfrom
batch-c24
Nov 3, 2026
Merged

mstomar125 merged 4 commits into
mainfrom
batch-c24

Conversation

@mstomar125

Copy link
Copy Markdown
Contributor

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 dev now runs dev:tauri. The unused concurrently dependency goes with them.
  • HttpAdapter, BrowserSyncService, the SSE event types, http-response.ts, the HTTP route tables, the typed-update patch builders and storageNodeToApiFields (all used only by the proxy or the HTTP adapter).
  • The HTTP branches of tauri-commands.ts and collection-service.ts, the browser-mode branches in app-initialization, app-shell, the database store (implicit browser database), the model store and the native chat viewer (polling fallback).
  • The e2e tier (vitest.e2e.config.ts, src/tests/e2e/*, the merge-gate stage) and the proxy/adapter parity tests (schema_parity_test.rs, TS adapter-contract.e2e.ts).
  • packages/dev-tools from scripts/gate-scope.ts and check-code-references.ts; stale references in AGENTS.md; the run-app skill is rewritten around bun run dev and 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.rs is restated against the Tauri seam alone as tauri_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

  • Frontend: full vitest run 331 files / 5622 tests pass; eslint and svelte-check clean.
  • scripts tests, quality:scripts:check and check-code-references pass.
  • cargo test -p nodespace-app-lib --test it --no-run compiles; the seam tests were not run here (they spawn a real daemon, left to the merge gate).
  • Not run: bun run merge gate.

Docs counterpart (ADR-103, debug-bridge.md, e2e-testing.md) is nodespace-docs #137.

Closes #3785

🤖 Generated with Claude Code

@mstomar125

Copy link
Copy Markdown
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 origin/main and running bun run test:changed, fix, push, and re-run bun run merge 4232.

▶ Merge gate: full pyramid on the rebased PR.
  stage logs: /var/folders/3w/y9kj522n1_j9wqmt6vl_sb6r0000gp/T/nodespace-gate-logs/_gate-merge-2026-11-03T14-04-55-483Z

▶ quality:scripts:check (scripts/ lint + typecheck) (timeout 10m)

$ bunx eslint 'scripts/**/*.ts' && bunx tsc --noEmit -p scripts/tsconfig.json
There was a problem loading formatter: /Users/mayanktomar/nodespace/core/.claude/worktrees/_gate/node_modules/eslint/lib/cli-engine/formatters/stylish.js
Error: hasFlag is not a function
[stage exited with code 2]

  full output: /var/folders/3w/y9kj522n1_j9wqmt6vl_sb6r0000gp/T/nodespace-gate-logs/_gate-merge-2026-11-03T14-04-55-483Z/quality-scripts-check-scripts-lint-typecheck.log

✗ quality:scripts:check (scripts/ lint + typecheck) failed — merge blocked.
  Fix the failure, push, and re-run: bun run merge <PR#>

mstomar125 and others added 4 commits November 3, 2026 15:55
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]>
@mstomar125
mstomar125 merged commit 4ea6ec3 into main Nov 3, 2026
@mstomar125
mstomar125 deleted the batch-c24 branch November 3, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Retire browser dev mode: remove dev:browser, the dev-proxy, HttpAdapter and BrowserSyncService

1 participant