Clean up unresponsive processes occupying the dev server port on boot
Deploy story
What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.
Not deployed through the forge lane
No push, promotion, build, or deploy receipt references this commit (receipts are scanned over a bounded recent window). Changes shipped by full node replacement carry their proof in the release gate receipt instead.
Changed files
-
modified
packages/openagents-cli/src/coder-dev-server.ts -
modified
packages/openagents-cli/test/coder-dev-server.test.ts
Diff
2 files changed, +98 -20
packages/openagents-cli/src/coder-dev-server.ts modified +87 -20
@@ -1,4 +1,4 @@
| 1 |
|
|
| 1 |
|
|
| 2 | 2 |
|
| 3 | 3 |
|
| 4 | 4 |
|
@@ -31,28 +31,30 @@ export const findSiteCheckout = (
| 31 | 31 |
|
| 32 | 32 |
|
| 33 | 33 |
|
| 34 |
|
|
| 35 |
|
|
| 34 |
|
|
| 35 |
|
|
| 36 | 36 |
|
| 37 |
|
|
| 38 |
|
|
| 39 |
|
|
| 37 |
|
|
| 38 |
|
|
| 39 |
|
|
| 40 |
|
|
| 41 |
|
|
| 42 |
|
|
| 40 | 43 |
|
| 41 | 44 |
|
| 42 |
|
|
| 43 |
|
|
| 45 |
|
|
| 46 |
|
|
| 47 |
|
|
| 48 |
|
|
| 44 | 49 |
|
| 45 | 50 |
|
| 46 |
|
|
| 47 |
|
|
| 48 |
|
|
| 49 |
|
|
| 50 |
|
|
| 51 |
|
|
| 52 |
|
|
| 53 |
|
|
| 51 |
|
|
| 52 |
|
|
| 53 |
|
|
| 54 |
|
|
| 54 | 55 |
|
| 55 |
|
|
| 56 |
|
|
| 57 |
|
|
| 56 | 58 |
|
| 57 | 59 |
|
| 58 | 60 |
|
@@ -80,6 +82,60 @@ const health = async (origin: string, timeoutMs = 1_500): Promise<Health> => {
| 80 | 82 |
|
| 81 | 83 |
|
| 82 | 84 |
|
| 85 |
|
|
| 86 |
|
|
| 87 |
|
|
| 88 |
|
|
| 89 |
|
|
| 90 |
|
|
| 91 |
|
|
| 92 |
|
|
| 93 |
|
|
| 94 |
|
|
| 95 |
|
|
| 96 |
|
|
| 97 |
|
|
| 98 |
|
|
| 99 |
|
|
| 100 |
|
|
| 101 |
|
|
| 102 |
|
|
| 103 |
|
|
| 104 |
|
|
| 105 |
|
|
| 106 |
|
|
| 107 |
|
|
| 108 |
|
|
| 109 |
|
|
| 110 |
|
|
| 111 |
|
|
| 112 |
|
|
| 113 |
|
|
| 114 |
|
|
| 115 |
|
|
| 116 |
|
|
| 117 |
|
|
| 118 |
|
|
| 119 |
|
|
| 120 |
|
|
| 121 |
|
|
| 122 |
|
|
| 123 |
|
|
| 124 |
|
|
| 125 |
|
|
| 126 |
|
|
| 127 |
|
|
| 128 |
|
|
| 129 |
|
|
| 130 |
|
|
| 131 |
|
|
| 132 |
|
|
| 133 |
|
|
| 134 |
|
|
| 135 |
|
|
| 136 |
|
|
| 137 |
|
|
| 138 |
|
|
| 83 | 139 |
|
| 84 | 140 |
|
| 85 | 141 |
|
@@ -101,9 +157,10 @@ export interface DevServerStart {
| 101 | 157 |
|
| 102 | 158 |
|
| 103 | 159 |
|
| 104 |
|
|
| 105 |
|
|
| 106 |
|
|
| 160 |
|
|
| 161 |
|
|
| 162 |
|
|
| 163 |
|
|
| 107 | 164 |
|
| 108 | 165 |
|
| 109 | 166 |
|
@@ -135,6 +192,16 @@ export const startDevServer = async (
| 135 | 192 |
|
| 136 | 193 |
|
| 137 | 194 |
|
| 195 |
|
|
| 196 |
|
|
| 197 |
|
|
| 198 |
|
|
| 199 |
|
|
| 200 |
|
|
| 201 |
|
|
| 202 |
|
|
| 203 |
|
|
| 204 |
|
|
| 138 | 205 |
|
| 139 | 206 |
|
| 140 | 207 |
|
packages/openagents-cli/test/coder-dev-server.test.ts modified +11
@@ -97,3 +97,14 @@ describe("starting one", () => {
| 97 | 97 |
|
| 98 | 98 |
|
| 99 | 99 |
|
| 100 |
|
|
| 101 |
|
|
| 102 |
|
|
| 103 |
|
|
| 104 |
|
|
| 105 |
|
|
| 106 |
|
|
| 107 |
|
|
| 108 |
|
|
| 109 |
|
|
| 110 |
|