chore: resolve merge conflicts

This commit is contained in:
gsxdsm
2026-04-02 09:29:31 -07:00
parent bd67380e3d
commit 6fd1fa3c2f
6 changed files with 777 additions and 116 deletions

View File

@@ -93,6 +93,20 @@ export function useTasks(options?: UseTasksOptions) {
};
}, [refreshTasks]);
// Fetch initial tasks and recover when the tab becomes visible again.
useEffect(() => {
void refreshTasks();
const handleVisibilityChange = () => {
void refreshTasks();
};
document.addEventListener("visibilitychange", handleVisibilityChange);
return () => {
document.removeEventListener("visibilitychange", handleVisibilityChange);
};
}, [refreshTasks]);
// SSE live updates
// Note: In multi-project mode, SSE receives all task events.
// Tasks are filtered by ID match, so cross-project updates won't affect