fix(desktop): support configured server ports#335
fix(desktop): support configured server ports#335pascalandr wants to merge 3 commits intoNeuralNomadsAI:devfrom
Conversation
|
I want you to perform the gatekeeper checks for latest PR state check for regressions |
|
Gatekeeper review of the latest PR state for What I reviewed
What I understood the request to be
Findings
Why this looks correct
Residual risk / gap
Validation
Non-blocking suggestion
-- |
|
Follow-up for the bot review, pushed in
Validation:
|
|
|
Right, I only looked at the tip of the iceberg. Converting this to draft to rework it properly. |
Nothing in this PR. It only honors already-persisted
Startup fails, same as any explicit fixed-port bind.
Not in this PR. Follow-up : Pagecran#9
I’ve now added the same behavior to Electron as well. |
|
PR builds are available as GitHub Actions artifacts: https://github.com/NeuralNomadsAI/CodeNomad/actions/runs/24835564866 Artifacts expire in 7 days. |
|
I want you to perform the gatekeeper checks for latest PR state check for regressions |
|
Gatekeeper review of the latest PR state for What I understood the request to be
What changed since the earlier review
Findings
Why the current implementation holds up
Validation I ran on the latest PR state
Result
Residual risk / gap
Non-blocking suggestion
-- |
Read persisted httpPort and httpsPort from the desktop config so launcher-started Tauri sessions can honor fixed ports without relying on shell environment variables.
Refactor the configured-port resolution into small pure helpers and add focused tests for the precedence path so env overrides, persisted config, and config parsing are covered explicitly.
Read persisted httpPort and httpsPort in the Electron launcher so packaged desktop sessions follow the same env-overrides-config precedence already added for Tauri.
d427481 to
804c9cd
Compare
|
PR builds are available as GitHub Actions artifacts: https://github.com/NeuralNomadsAI/CodeNomad/actions/runs/24964803415 Artifacts expire in 7 days. |
|
Hey @pascalandr thanks for working on this. I would rather have it as complete feature as this can be a breaking change. I understand user can go and manually change in the config file but that's not a good UX. |
Fixes #293
Summary
httpPortandhttpsPortvalues from the desktop configValidation
npm run bundle:server && cargo build