| ... | ... | @@ -78,7 +78,6 @@ export function resolveOpenCodeServerPassword( |
| 78 | 78 | : input.environment.OPENCODE_SERVER_PASSWORD; |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | | const OPENCODE_SERVER_READY_PREFIX = "opencode server listening"; |
| 82 | 81 | const DEFAULT_OPENCODE_SERVER_TIMEOUT_MS = 30_000; |
| 83 | 82 | const DEFAULT_HOSTNAME = "127.0.0.1"; |
| 84 | 83 | const OPENCODE_SERVER_STARTUP_MAX_OUTPUT_CHARS = 64 * 1024; |
| ... | ... | @@ -289,11 +288,8 @@ export interface OpenCodeRuntimeShape { |
| 289 | 288 | |
| 290 | 289 | function parseServerUrlFromOutput(output: string): string | null { |
| 291 | 290 | for (const line of output.split("\n")) { |
| 292 | | if (!line.startsWith(OPENCODE_SERVER_READY_PREFIX)) { |
| 293 | | continue; |
| 294 | | } |
| 295 | | const match = line.match(/on\s+(https?:\/\/[^\s]+)/); |
| 296 | | return match?.[1] ?? null; |
| 291 | const match = line.match(/server listening on\s+(https?:\/\/[^\s]+)/i); |
| 292 | if (match?.[1]) return match[1]; |
| 297 | 293 | } |
| 298 | 294 | return null; |
| 299 | 295 | } |