Skip to content

fix: keep established agent runs attached through disconnects#55

Open
zenozhg wants to merge 1 commit into
GeminiLight:mainfrom
zenozhg:fix/agent-run-durable-reattach
Open

fix: keep established agent runs attached through disconnects#55
zenozhg wants to merge 1 commit into
GeminiLight:mainfrom
zenozhg:fix/agent-run-durable-reattach

Conversation

@zenozhg

@zenozhg zenozhg commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • keep retrying reattach requests for established agent runs after the short initial reconnect limit is exhausted
  • stop durable retries for explicit missing/invalid run responses
  • replay a terminal run output summary when text events are unavailable, so completed background work is restored instead of ending with an empty done

Reproduction

A long Codex run continued in the backend for about 15 minutes and completed successfully, but the browser stream disconnected. The run ledger and persisted chat contained the final answer, while the reconnect path stopped early or could return only done.

Tests

  • pnpm --filter @mindos/web exec vitest run __tests__/api/agent-runs-reattach.test.ts __tests__/ask/ask-concurrent-sessions.test.tsx
  • related Web tests: 102 passed
  • pnpm --filter @mindos/web typecheck
  • targeted ESLint: no errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant