Commit 812e0bb
committed
Quiet noisy dev-run logs: fix a settings init race and right-size MCP token rejections
The dev-run terminal carried warnings that were either a real ordering bug or mislevelled noise. Two fixes plus a doc:
- **Fix pre-init settings reads.** The main window now gates its children render on `settingsReady`, which flips only after `initReactiveSettings()` + `initSettingsApplier()` resolve. `FilePane` / `BriefList` read `getSetting()` synchronously at mount; before this they mounted before the store loaded and got registry defaults, logging `getSetting(...) called before settings were initialized` and (worse) risking a default getting pushed to the backend as if chosen (the `ai.provider` "off" trap). The flag flips in `finally` so a settings-load failure still mounts on defaults rather than a blank window. Guardrail added to `(main)/CLAUDE.md`.
- **Demote the bearer-token rejection** (`mcp::server`) from WARN to INFO: a token-gated call arriving without the token is expected protocol flow (the client gets the friendly "here's where the token lives" response and retries), not an anomaly. Kept at INFO, not debug, so a non-Cmdr process probing the gate stays visible in terminal and error bundles. The fail-closed "no token configured" case stays WARN.
- **Document MCP auth** in `docs/tooling/mcp.md` (which tools are token-gated, and that `mcp-call.sh` sends the token automatically) so agents reach for the right path on the first try instead of tripping the rejection.1 parent b84d687 commit 812e0bb
4 files changed
Lines changed: 61 additions & 10 deletions
File tree
- apps/desktop
- src-tauri/src/mcp
- src/routes/(main)
- docs/tooling
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
607 | | - | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
608 | 614 | | |
609 | 615 | | |
610 | 616 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
66 | 75 | | |
67 | 76 | | |
68 | 77 | | |
| |||
178 | 187 | | |
179 | 188 | | |
180 | 189 | | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
189 | 208 | | |
190 | 209 | | |
191 | 210 | | |
| |||
314 | 333 | | |
315 | 334 | | |
316 | 335 | | |
317 | | - | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
318 | 339 | | |
319 | 340 | | |
320 | 341 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
122 | 127 | | |
123 | 128 | | |
124 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
78 | 97 | | |
79 | 98 | | |
80 | 99 | | |
| |||
0 commit comments