Repository navigation
Commit 65dd99d
committed
refactor(daemon): extract the cold start UI rule into a tested helper
The cold daemon start rule this PR introduces (a bare start honours a saved
ui_enabled=false; only an explicit --port=N or --open turns the UI on and
persists that choice) was covered only by tests/test_daemon_open_readiness.py,
a real-process guard that no CI leg runs.
Move the rule into a pure helper, cbm_ui_config_daemon_start_ui() in
src/ui/config.c, and call it from the cold start path in main.c; the
CBM_EMBEDDED_FILE_COUNT gate stays in main.c and the behaviour is unchanged.
Add config_daemon_start_honours_saved_ui_choice to the ui suite, which CI
runs. It fails if the old always-configure rule comes back (a bare start with
a saved disabled UI) and if --port=N or --open stop re-enabling a disabled UI.
Refs #2114
Signed-off-by: Martin Vogel <[email protected]>1 parent 95fc0d3 commit 65dd99d
4 files changed
Lines changed: 76 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2735 | 2735 | | |
2736 | 2736 | | |
2737 | 2737 | | |
2738 | | - | |
2739 | | - | |
| 2738 | + | |
| 2739 | + | |
| 2740 | + | |
| 2741 | + | |
2740 | 2742 | | |
2741 | | - | |
2742 | 2743 | | |
2743 | 2744 | | |
2744 | 2745 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
171 | 187 | | |
172 | 188 | | |
173 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
34 | 43 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
270 | 316 | | |
271 | 317 | | |
272 | 318 | | |
| |||
2734 | 2780 | | |
2735 | 2781 | | |
2736 | 2782 | | |
| 2783 | + | |
2737 | 2784 | | |
2738 | 2785 | | |
2739 | 2786 | | |
| |||
0 commit comments