Repository navigation
fix(update): keep Codex routing for the restarted proxy during an update (#7423) #7747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
e0322a2
fix(update): hand Codex routing to the restarted proxy instead of res…
lidge-jun 67f6b88
docs(dashboard): note that an update with restart keeps Codex routing…
lidge-jun 1099a9d
fix(update): hand over after a manager stop and keep the marker scope…
lidge-jun 1be0ff4
fix(update): hand over only an exact-endpoint receipt a later stop ca…
lidge-jun 4717400
Merge remote-tracking branch 'origin/dev' into fix/7423-update-teardo…
lidge-jun 4b4eb96
fix(update): hand over only after the proxy confirmed the deferral (#…
lidge-jun 6418cc8
test(cli): pin the handover receipt claim in the sibling stop oracle …
lidge-jun ee26409
Merge remote-tracking branch 'origin/dev' into fix/7423-update-teardo…
lidge-jun e348b16
fix(update): adopt the handed-over journal at startup and gate handov…
lidge-jun b44f35d
Merge remote-tracking branch 'origin/dev' into fix/7423-update-teardo…
lidge-jun bca034b
fix(update): publish the adopted journal safely and adopt only for a …
lidge-jun 699fbc9
Merge remote-tracking branch 'origin/dev' into fix/7423-update-teardo…
lidge-jun d94f3e5
test(update): clear the handover marker even when the dashboard worke…
lidge-jun d968b12
Merge remote-tracking branch 'origin/dev' into fix/7423-update-teardo…
lidge-jun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| import { spawnSync } from "node:child_process"; | ||
|
|
||
| /** | ||
| * Strict bind script: exit 0 only after listen+close. Any listen error (including | ||
| * Windows ghost-TCB failures under Bun) is busy — matches published `ocx start` | ||
| * probes that treat every listen error as unavailable. | ||
| */ | ||
| export function strictBindProbeScript(port: number, hostname: string): string { | ||
| return [ | ||
| "const net=require('net');", | ||
| "const s=net.createServer();", | ||
| "s.once('error',()=>process.exit(2));", | ||
| `s.listen(${Math.trunc(port)},${JSON.stringify(hostname)},()=>s.close(()=>process.exit(0)));`, | ||
| "setTimeout(()=>process.exit(3),2500);", | ||
| ].join(""); | ||
| } | ||
|
|
||
| export function spawnBindProbe(bin: string, script: string): boolean { | ||
| try { | ||
| const r = spawnSync(bin, ["-e", script], { | ||
| windowsHide: true, | ||
| timeout: 4000, | ||
| stdio: "ignore", | ||
| }); | ||
| return r.status === 0; | ||
| } catch { | ||
| return false; | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.