fix(desktop): improve worktree-import feedback for old hosts and partial failures
KI
2mo ago+15+15+01234567890123456789-2-2-0123456789
Follow-ups from the #6097 review comments (cubic P2 + CodeRabbit minor):
- Old-host detection: if the serving host predates the
hasWorkspace/isMainWorktreeannotations onlistProjectWorktrees, the entries carry no tracked-ness fields and the strict filter matched nothing, so users saw a misleading "All of this project's worktrees are already tracked". Now that case gets a dedicated error toast telling them to update the host. Only affects remote hosts running older host-service builds — the local host is pinned to the bundled version. - Partial-failure toast: previously only the first error was shown. Now it reports the failed count and deduplicated errors:
Imported 1 of 3 worktrees — 2 failed: <first unique error> (+1 more).
No behavior change for the normal import path.
Summary by cubic
Improves worktree import feedback in the desktop dashboard. When a host is too old to report untracked worktrees, we show a clear update toast; for partial imports, we report how many failed and deduplicate the errors.
Summary by CodeRabbit
- Bug Fixes
- Improved worktree import compatibility checks for older hosts missing workspace information.
- Prevented duplicate import error notifications and now summarizes additional distinct errors.