Repository navigation
Trial an in-app debug bridge so agents can inspect the running Tauri app (closes #3739) - #3776
Conversation
Pragmatic Code Review: PR #3776 (closes #3739)Review type: Initial. Recommendation: REQUEST CHANGES (one blocker, easy fix). Requirements check
Findings🔴 Blocker: the new Rust source files are gitignored and not in the PR
Fix: rename away from the Note this also means the "is a shipped build able to compile the bridge" question was answered from files a reviewer of the diff cannot see; the content of the local files is sound (below), so this is a packaging defect, not a design one. 🟡 Improvements
🟢 Verified, no action
RecommendationREQUEST CHANGES. Resolve the gitignored-files blocker (rename or force-add, then confirm the files appear in |
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review: REQUEST CHANGES (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.
Review responseAddressed (5/5)
Verification: Re-Review DecisionDecision: NO RE-REVIEW NEEDED Rationale: The blocker was a packaging defect: the reviewer judged the file contents sound, and the fix is a mechanical rename plus reference updates, confirmed by the tracked-files list. The other changes are a clarified message, a wider test scan, a removed unused dependency and one extra unit test. No behavior changed. 🤖 Generated with Claude Code |
|
Merge queue: #3776 was taken out of the queue — the merge gate failed on it, on top of main. Reproduce by merging or rebasing |
New commit after review: the merge gate failedThe first Root cause: the daemon writes the marker under its Fix ( |
Code Review: PR #3776 (Re-Review)Review Type: Re-Review (commits after 9e7f545: cb9c2ad, bca19ff, e5aa505) Previous Review SummaryPrevious verdict was REQUEST CHANGES: a Critical blocker (the bridge module and its tests were gitignored by the Previous findings
New production change (e5aa505)Does the app agree with the daemon? Yes, for the marker. Suggested Improvements
Nitpicks
Rule checks
RecommendationAPPROVE. The blocker and all four lesser findings are resolved; the new change is a small, correct alignment of the app's marker path with the daemon's. The proto doc comment fix is worth folding into this PR before merge; the rest is optional. |
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review (re-review): APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.
Re-review responseAddressed (3/3)
Skipped: the nit (asserting the temp dir holds no marker): the dir is created empty by
Re-Review DecisionDecision: NO RE-REVIEW NEEDED Rationale: Two doc comments and one added test; no production logic changed since the approved commit. 🤖 Generated with Claude Code |
… Tauri app (refs #3739) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ONFIG (refs #3739) dev:tauri now passes --config for the bridge's withGlobalTauri override, which set TAURI_CONFIG and made the helper step aside, so a fresh worktree failed on the unstaged skill installer. Merge the explicit config over the patch instead. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…#3739) 0.13.1 requires tauri ~2.12.2, which moved tauri and wry for every build in Cargo.lock. 0.13.0 accepts tauri ^2, so the lockfile only gains the plugin's own dependencies. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…refs #3739) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…n, drop the unused server package (refs #3739) - Blocker: debug_bridge.rs and debug_bridge_tests.rs matched the debug_*.rs gitignore pattern and were never committed, so a clean checkout failed. Renamed to webview_bridge.rs / webview_bridge_tests.rs; the feature keeps its name. - Scan the root package.json, scripts/*.ts and the CI workflows for the feature, not just this package's scripts. - compile_error! now says a build without debug assertions. - Remove @hypothesi/tauri-mcp-server: only the CLI is used. - Test an explicit null over a set key in merge_patch. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…he daemon does (refs #3739) The daemon writes the marker under its NODESPACE_HOME-redirected state directory, but the app read it from the user's home only. A refusal recorded in the real home (an older database refused by another build) therefore showed up as the status of an unrelated, isolated run, and failed the not_running seam test on any machine that held one. The app now honours the same redirect, and that test points it at its temp dir. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… test the redirected-home wiring (refs #3739) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
43c7efa to
47c987b
Compare
Summary
tauri-plugin-mcp-bridge, pinned=0.13.0) behind adebug-bridgeCargo feature that onlybun run dev:tauripasses. A release-profile build with the feature is acompile_error!.127.0.0.1(the plugin's default is all interfaces, unauthenticated). Its permission is a capability of its own; the production window capability, CSP andwithGlobalTauri: falsein the committed config are unchanged.dev:tauriturnswithGlobalTaurion for the dev run only, via--config src-tauri/tauri.debug-bridge.conf.json.drop_unstaged_bundle_entriesnow merges an explicitTAURI_CONFIGover its patch instead of stepping aside, so--configno longer breaks debug builds in a fresh worktree.@hypothesi/tauri-mcp-cliand@hypothesi/tauri-mcp-serverat 0.13.0. 0.13.1 requires tauri ~2.12.2 and would move tauri/wry for every build.Proof (macOS WKWebView, dev:tauri, scratch HOME + pre-seeded daemon)
DOM snapshot, console + thrown error, JS eval, click + typed text persisting across reload, screenshot, a real command observed through the IPC monitor and one invoked directly: all worked. The user's real daemon was untouched. Two apps at once was not run; the plugin scans 100 ports up from 9223.
Findings
window.__TAURI__.core.invoke, not the app's own__TAURI_INTERNALS__traffic.NODESPACE_HOME: it touches~/.nodespace/bin, the default socket and the per-user launchd label. A scratchHOMEwith a pre-seeded healthy daemon avoids it.Test plan
bun run test:changed(frontend, browser, scripts, skill, types, node-types, rust)bun run quality:fix🤖 Generated with Claude Code