Commit a65a7f9
fix(main): pause-on-error before exit so the user can read the diagnosis
User-visible bug from the start of the v0.1.20 saga: every time
something fails after main() returns, the Start-menu-launched
console closes the moment the process exits. The error message
printed to stderr scrolls past in a fraction of a second and the
window vanishes before the user can read what went wrong. We've
been GUESSING at root causes for two days because we couldn't see
the actual diagnostic output.
Fix: on Windows, the existing `pause_on_exit` helper now fires on
every error path that wasn't already a "displayed via TUI" flow
(`AlreadyReported` / `ResetRequested` skip the pause because the
TUI already showed the user what happened — pausing again would
be redundant).
Operators launching from PowerShell / cmd / a shell they own hit
Enter once and continue; the small friction is the price for never
again losing diagnostic info to a window-close vacuum. Operators
launching from Start menu / Explorer / MSI Finish dialog get
exactly what they need: the error stays on screen until they
press Enter.
Also adds a "Loading SourceBox Sentry CloudNode..." banner before
`run_cloudnode` is called from the bare-invocation (None) path.
Node::new can take 1-3 seconds (tokio runtime build + SQLite open
+ Command Center registration HTTP call) during which the console
is blank — feels like the binary hung. The banner gives the user
visual feedback that the binary is doing real work.
Bumps version to 0.1.38.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b6e3d5e commit a65a7f9
3 files changed
Lines changed: 36 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
131 | 149 | | |
132 | 150 | | |
133 | | - | |
| 151 | + | |
| 152 | + | |
134 | 153 | | |
135 | 154 | | |
136 | 155 | | |
| |||
373 | 392 | | |
374 | 393 | | |
375 | 394 | | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
376 | 408 | | |
377 | 409 | | |
378 | 410 | | |
| |||
0 commit comments