fix(logging): print stored RPC URL as string in configPersistence
Summary
- Fixes
[configPersistence] Stored RPC URL: [object Object]in CEF'schrome_debug.log. - The second
console.debugarg was a wrapper object ({ url: url.trim() }). DevTools expands objects inline; CEF's file-backed log stringifies them, yielding[object Object]. - Passing the URL primitive directly gives a useful log line:
[configPersistence] Stored RPC URL: tauri://localhost/....
This is issue B from triage issue #2437.
Why this matters
Self-diagnosis of the larger remote-core attach-mode bug (issue A in #2437) is currently blocked because the stored RPC URL is invisible in logs. Fixing the printer makes the next round of diagnostics actionable.
Change
Single-line edit in app/src/utils/configPersistence.ts:88. No tests asserted on the prior log shape; no test changes required.
Test plan
- [x]
pnpm typecheck— clean. - [x]
pnpm exec eslint app/src/utils/configPersistence.ts— clean. - [x]
pnpm exec prettier --check app/src/utils/configPersistence.ts— clean. - [x] N/A: Manual Windows verification — deferred to post-merge. The change is a single-line log-format fix with no behavior change; CEF stringification of objects vs. primitives is well-defined, and the next Windows run on
mainwill surface the corrected log line inchrome_debug.logfor issue A diagnosis.
Pre-push hook note
Pushed with --no-verify. The hook failed on two unrelated pre-existing issues on main:
cargo check --manifest-path src-tauri/Cargo.tomlexits 101 in the Tauri shell (not touched by this PR).lint:commands-tokensripgrep matches insrc/components/commands/(not touched by this PR).
Per CLAUDE.md (Git workflow → "If a pre-push hook fails on something unrelated to your changes ... push with --no-verify and call it out in the PR body").
Summary by CodeRabbit
- Chores
- Updated internal debug logging for improved development diagnostics.
Note: This release contains minimal user-facing changes, focusing on internal improvements.
This PR updates a debug logging statement in RPC URL persistence: the console output changed from logging an object ( RPC URL Debug Logging Format 🎯 1 (Trivial) | ⏱️ ~2 minutes 🐰 A log line grows lean and clean, ✏️ Tip: You can configure your own custom pre-merge checks in the settings.📝 Walkthrough
Walkthrough
{ url: url.trim() }) to logging the trimmed URL string directly. No functional behavior, storage logic, or public APIs were altered.Changes
Layer / File(s)
Summary
Debug logging format for RPC URL storage
app/src/utils/configPersistence.tsUpdated the
storeRpcUrl function's debug output to log the trimmed URL as a plain string rather than as a named property within an object.Estimated code review effort
Poem
From objects wrapped to strings pristine,
No secrets lost in this small change,
Just clearer view of what we save—
Debugging whispers, calm and brave.🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name
Status
Explanation
Title check
✅ Passed
The title accurately and specifically describes the main change: fixing debug logging to print the stored RPC URL as a string instead of an object in configPersistence.
Docstring Coverage
✅ Passed
Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check
✅ Passed
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
✅ Passed
Check skipped because no linked issues were found for this pull request.
Description Check
✅ Passed
Check skipped - CodeRabbit’s high-level summary is enabled.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands and usage tips.
@leighstillard CI is failing on changes in this PR — please fix before review.
Fixed I think