You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Frontend Real-time Integration: Global Stats & Planning #802
To fully eliminate polling, we need to migrate the remaining components: Header Stats (global task monitoring) and Plan Generation (draft updates).
Requirements
Migrate useGenerationPolling: Replace the 1-second interval polling with draft:update event listening. It should still fetch the full draft on update to get the trace details.
Migrate useHeaderStats: Listen for task:update events. Since header stats are global (counts, lists), any task update should trigger a refresh of the stats.
Refactor Dashboard: The Dashboard component uses useHeaderStats implicitly for some data or its own polling. Ensure it uses the new event-driven approach.
Implementation Specification
1. Generation Polling
In gitfix-ui/src/hooks/useGenerationPolling.ts, remove setInterval.
Add useEffect listening for SocketEvents.DRAFT_UPDATE.
When an update for the current draftId arrives, fetch the draft and update state (generationTrace, isGenerating).
2. Header Stats
In gitfix-ui/src/hooks/useHeaderStats.ts, remove the polling interval.
Add useEffect listening for SocketEvents.TASK_UPDATE and SocketEvents.QUEUE_UPDATE (if available, otherwise task updates are a good proxy).
Trigger fetchStats on these events.
Acceptance Criteria
Plan generation wizard shows progress bars updating in real-time without network tab spamming.
Global header counters (Active Tasks, Plans) update automatically when tasks change state.
No setInterval polling remains in the primary user flows.
Activity
propr-dev commentedon Feb 17, 2026
Suggested Implementation:
File:
gitfix-ui/src/hooks/useGenerationPolling.tsFile:
gitfix-ui/src/hooks/useHeaderStats.tspropr-dev commentedon Feb 18, 2026
🤖 AI processing has started for this issue using claude agent with claude-opus-4-5-20251101 model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
claudeclaude-opus-4-5-20251101802/claude-opus-4-5-20251101-frontend-real-time-integr-20260218-0711-wrumainissue-802-20260218-0711-claude-opus-4-5-20251101-wru🔍 Track Task Execution
fix(ai): Resolve issue #802 - Frontend Real-time Integration: Global …
feat(ai): I fixed F1, F2 and F3. The tests I ran pass, but I didn't r…
feat(ai): I fixed both findings, F5 and F6, in `pullRequestStatusEpic…