@devries-cameron20 / t3code-1 / commits / 56d13faa1a
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Preserve git action progress until HTTP completion (#1388)

Julius Marminge committed Mar 24, 2026 at 16:38 UTC 56d13faa1a0890e34f12852c20bfba6e6d58842c
1 file changed +9 -6
apps/web/src/components/GitActionsControl.tsx
+9 -6
@@ -347,13 +347,16 @@ export default function GitActionsControl({ gitCwd, activeThreadId }: GitActions
347 progress.lastOutputLine = null;
348 break;
349 case "action_finished":
350 - progress.phaseStartedAtMs = null;
351 - progress.hookStartedAtMs = null;
352 - break;
350 + // Don't clear timestamps here — the HTTP response handler (line 496)
351 + // sets activeGitActionProgressRef to null and shows the success toast.
352 + // Clearing timestamps early causes the "Running for Xs" description
353 + // to disappear before the success state renders, leaving a bare
354 + // "Pushing..." toast in the gap between the WS event and HTTP response.
355 + return;
356 case "action_failed":
354 - progress.phaseStartedAtMs = null;
355 - progress.hookStartedAtMs = null;
356 - break;
357 + // Same reasoning as action_finished — let the HTTP error handler
358 + // manage the final toast state to avoid a flash of bare title.
359 + return;
360 }
361
362 updateActiveProgressToast();