openvisio-agent 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/watch.mjs +5 -4
package/package.json
CHANGED
package/src/watch.mjs
CHANGED
|
@@ -577,7 +577,7 @@ function loopBackendWs({ wsUrl, apiKey, identifier, slug, claude, agent, mcpConf
|
|
|
577
577
|
}
|
|
578
578
|
const ensureMcpSession = async () => {
|
|
579
579
|
if (mcpSessionId) return
|
|
580
|
-
const res = await mcpPost({ jsonrpc: '2.0', id: ++mcpRpcId, method: 'initialize', params: { protocolVersion: '2025-03-26', capabilities: {}, clientInfo: { name: 'openvisio-agent', version: '0.13.
|
|
580
|
+
const res = await mcpPost({ jsonrpc: '2.0', id: ++mcpRpcId, method: 'initialize', params: { protocolVersion: '2025-03-26', capabilities: {}, clientInfo: { name: 'openvisio-agent', version: '0.13.1' } } }, false)
|
|
581
581
|
if (!res.ok) throw new Error('MCP initialize HTTP ' + res.status)
|
|
582
582
|
await mcpPayload(res)
|
|
583
583
|
mcpSessionId = res.headers.get('mcp-session-id') || ''
|
|
@@ -656,9 +656,10 @@ function loopBackendWs({ wsUrl, apiKey, identifier, slug, claude, agent, mcpConf
|
|
|
656
656
|
// Codex can exit successfully after posting only "I'll do it". For coding
|
|
657
657
|
// cycles, treat that as incomplete and give it one focused recovery turn.
|
|
658
658
|
// Do not retry a real blocker, which would only create duplicate noise.
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
659
|
+
const legitimateNoWork = /\b(?:no (?:open |assigned |pending )?tasks?|not assigned to (?:me|you)|assigned to (?:another|someone else)|blocked|cannot|can't|missing|need access|permission|unclear)\b/i.test(result?.outputText || '')
|
|
660
|
+
if (agent === 'codex' && kind === 'full' && result?.subtype === 'ok' && !result.didCode && !legitimateNoWork) {
|
|
661
|
+
log('coding cycle exited without repository action; running one completion recovery')
|
|
662
|
+
await runCycle('You exited the assigned coding task without performing repository work. Do not post another acknowledgement or plan. Resume the same task now: inspect the workspace, make the required changes, verify them, commit and push an agent/* branch, open the PR, then post exactly one result update with evidence. If a real blocker appears, report that blocker once.', codeModel)
|
|
662
663
|
}
|
|
663
664
|
} finally {
|
|
664
665
|
if (heartbeat) clearInterval(heartbeat)
|