Stop workspace port warning timer after allocation

This commit is contained in:
Shantur Rathore
2025-12-24 20:29:11 +00:00
parent dab1e0fa7a
commit 94aa469e90

View File

@@ -146,6 +146,7 @@ export class WorkspaceRuntime {
const portMatch = line.match(/opencode server listening on http:\/\/.+:(\d+)/i)
if (portMatch) {
portFound = true
stopWarningTimer()
child.removeListener("error", handleError)
const port = parseInt(portMatch[1], 10)
this.logger.info({ workspaceId: options.workspaceId, port }, "Workspace runtime allocated port")