Skip to content

fix(desktop): recover agent definition sync - #4895

Open
ssgdevcoder wants to merge 1 commit into
block:mainfrom
ssgdevcoder:codex/fix-persona-sync-recovery
Open

fix(desktop): recover agent definition sync#4895
ssgdevcoder wants to merge 1 commit into
block:mainfrom
ssgdevcoder:codex/fix-persona-sync-recovery

Conversation

@ssgdevcoder

Copy link
Copy Markdown

Summary

  • retry failed author-owned persona/team/agent history backfills with capped exponential backoff
  • repeat the historical catch-up after relay reconnects so an incomplete startup view self-heals
  • retry failed live-subscription setup instead of silently abandoning cross-device sync
  • document the recovery contract and add regression tests for history retry, live setup retry, reconnect catch-up, deletion coverage, and arrival-relay scoping

Related issue

Fixes #4893

Testing

  • node --import ./test-loader.mjs --experimental-strip-types --test src/features/agents/lib/usePersonaSync.test.mjs (5 passed)
  • pnpm test (4,288 passed)
  • pnpm typecheck
  • just desktop-check desktop-build

No UI changes; screenshots are not applicable.

Signed-off-by: ssgdevcoder <ssgdevcoder@icloud.com>
@ssgdevcoder
ssgdevcoder requested a review from a team as a code owner August 5, 2026 14:24
@jemiahw jemiahw added the triage-ready Appropriate for agentic review label Aug 5, 2026

@Chessing234 Chessing234 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

recover path looks fine on a skim — does a mid-sync failure leave the local definition half-applied, or do you roll back to the last good snapshot?

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

Labels

triage-ready Appropriate for agentic review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Desktop: agent definitions can be permanently missed after startup sync failure

3 participants