mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-03-19 10:43:08 +00:00
fix: Remove unused vars and improve type safety. Improve task recovery
This commit is contained in:
@@ -172,7 +172,10 @@ export function useAutoMode(worktree?: WorktreeInfo) {
|
||||
(backendIsRunning &&
|
||||
Array.isArray(backendRunningFeatures) &&
|
||||
backendRunningFeatures.length > 0 &&
|
||||
!arraysEqual(backendRunningFeatures, runningAutoTasks));
|
||||
!arraysEqual(backendRunningFeatures, runningAutoTasks)) ||
|
||||
// Also sync when UI has stale running tasks but backend has none
|
||||
// (handles server restart where features were reconciled to backlog/ready)
|
||||
(!backendIsRunning && runningAutoTasks.length > 0 && backendRunningFeatures.length === 0);
|
||||
|
||||
if (needsSync) {
|
||||
const worktreeDesc = branchName ? `worktree ${branchName}` : 'main worktree';
|
||||
|
||||
Reference in New Issue
Block a user