Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion github/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,9 @@ async function assertOpencodeConnected() {
})
connected = true
break
} catch (e) {}
} catch (e) {
console.warn(`[assertOpencodeConnected] retry ${retry}/30 failed:`, e instanceof Error ? e.message : e)
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Retry warning counter is off-by-one versus loop behavior, producing misleading attempt telemetry.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At github/index.ts, line 285:

<comment>Retry warning counter is off-by-one versus loop behavior, producing misleading attempt telemetry.</comment>

<file context>
@@ -281,7 +281,9 @@ async function assertOpencodeConnected() {
       break
-    } catch (e) {}
+    } catch (e) {
+      console.warn(`[assertOpencodeConnected] retry ${retry}/30 failed:`, e instanceof Error ? e.message : e)
+    }
     await sleep(300)
</file context>
Fix with Cubic

}
await sleep(300)
} while (retry++ < 30)

Expand Down
Loading