Stabilize auth session cookies per server mode #1898
Mergedjuliusmarmingemerged 4 commits into
main fromrefs/pull/1898/headmerged by juliusmarminge View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
- apps/desktop/src/backendPort.ts line 63OutdatedResolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -39,7 +53,11 @@3953 throw new Error(`Desktop backend max port ${maxPort} is below start port ${startPort}`);4054 }415556+ const hostsToCheck = normalizeHosts(host, requiredHosts);57+4258 // Keep desktop startup predictable across app restarts by probing upward from4359 // the same preferred port instead of picking a fresh ephemeral port.4460 for (let port = startPort; port <= maxPort; port += 1) {45- if (await canListenOnHost(port, host)) {61+ const availability = await Promise.all(62+ hostsToCheck.map((candidateHost) => canListenOnHost(port, candidateHost)),63+ );scripts/dev-runner.test.ts line 255OutdatedResolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -224,10 +246,10 @@224246 it.effect("allows offsets where only non-required ports exceed max", () =>225247 Effect.gen(function* () {226248 const offset = yield* findFirstAvailableOffset({227- startOffset: 59_803,249+ startOffset: 51_762,228250 requireServerPort: true,229251 requireWebPort: false,230252 checkPortAvailability: () => Effect.succeed(true),231253 });232254233- assert.equal(offset, 59_803);255+ assert.equal(offset, 51_762);
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:M
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
juliusmarminge merged this4ae9de3
juliusmarminge closed this
Sign in to join this conversation.



Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID:
c87d5e3c-bf63-4eb6-9d3d-5c0b456c066aYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment `@coderabbitai help` to get the list of available commands and usage tips.