| ... | ... | @@ -347,13 +347,16 @@ export default function GitActionsControl({ gitCwd, activeThreadId }: GitActions |
| 347 | 347 | progress.lastOutputLine = null; |
| 348 | 348 | break; |
| 349 | 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; |
| 353 | 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; |
| 357 | 360 | } |
| 358 | 361 | |
| 359 | 362 | updateActiveProgressToast(); |