Skip to content

fix(admin): Files-tab banner refreshes sync markers without page reload (CLEAN-61) - #58

Merged
maksymhryzodub-prog merged 2 commits into
mainfrom
fix/CLEAN-61-banner-stale-after-sync
Sep 3, 2026
Merged

fix(admin): Files-tab banner refreshes sync markers without page reload (CLEAN-61)#58
maksymhryzodub-prog merged 2 commits into
mainfrom
fix/CLEAN-61-banner-stale-after-sync

Conversation

@maksymhryzodub-prog

@maksymhryzodub-prog maksymhryzodub-prog commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Summary

CLEAN-61 — after pressing Sync the banner's "last sync" (and marker times) updated only on page reload, sometimes updating by luck. Two compounding causes:

  • The agent-status SSE stream emits frames on pod events only — a Sync produces none, so the fresh lastSyncAt never rides the stream. Whether the banner updated depended on a coincidental pod event / drift sweep frame — hence the intermittent behavior.
  • CLEAN-59's live-first ?? let the stale (non-null) stream row shadow any refetched value forever.

Fix (frontend-only):

  • onSync refetches the agent row alongside the file list.
  • Marker timestamps (lastPullAt/lastSyncAt) resolve freshest-wins (max of live vs fetched); statuses remain live-first as before.

Test plan

  • admin: nuxt typecheck green (client regenerated from this branch's api — in sync with main)
  • Live: chat-edit SOUL.md → Sync → banner "last sync" updates immediately, no reload; repeat twice to confirm determinism

🤖 Generated with Claude Code

maksymhryzodub-prog and others added 2 commits September 3, 2026 17:46
…ge reload (CLEAN-61)

The status stream only emits on pod events, so a Sync never produces a frame
with the fresh lastSyncAt — and the CLEAN-59 live-first `??` let the stale
stream row shadow any refetch forever, making banner updates depend on a
coincidental pod event. Sync now refetches the agent row alongside the file
list, and marker timestamps resolve freshest-wins (statuses stay live-first).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@maksymhryzodub-prog
maksymhryzodub-prog merged commit b8f323f into main Sep 3, 2026
1 check passed
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