2.0 KiB
2.0 KiB
id, title, status, wave, depends_on, plan, spec
| id | title | status | wave | depends_on | plan | spec | |
|---|---|---|---|---|---|---|---|
| 03-resolution-errors-and-retry | Remote resolution errors and retry | done | 2 |
|
plan.md | ../../specs/tasks/multi-branch/spec.md |
Task 03: Remote resolution errors and retry
Acceptance
- Branch and GitHub PR/issue loaders retain per-URL errors without losing successful sibling data.
- A committed repository row shows an accessible error and visible Retry action while preserving its URL.
- Retry clears and re-runs both resolution paths; stale callbacks cannot overwrite the newer result.
Verification
cd apps && pnpm --filter @kandev/web test -- hooks/domains/github/use-branches-by-url.test.ts hooks/domains/github/use-pr-info-by-url.test.ts components/task-create-dialog-remote-repo-chip.test.tsx components/task-create-dialog-remote-repo-chips.test.tsx
Files likely touched
apps/web/hooks/domains/github/use-branches-by-url.tsapps/web/hooks/domains/github/use-branches-by-url.test.tsapps/web/hooks/domains/github/use-pr-info-by-url.tsapps/web/hooks/domains/github/use-pr-info-by-url.test.tsapps/web/components/task-create-dialog-remote-repo-chips.tsxapps/web/components/task-create-dialog-remote-repo-chip.tsx- Corresponding component tests.
Dependencies
- Task 01 supplies the public unauthenticated success path.
Inputs
docs/specs/tasks/multi-branch/spec.md— failure and retry scenarios.- Existing per-URL abort and sequence guards in both hooks.
Output contract
Report the changed state contract, exact tests/results, risk tags, and uncertainties; update this task to done only after targeted verification passes.
Completion evidence
- Entry points: per-URL branch and GitHub PR/issue loaders; remote repository chip error and retry UI.
- Result: frontend focused verification passed: 67 tests; post-simplification hook suite passed: 33 tests.
- Risks/uncertainties: stale callbacks are sequence-guarded; provider failures can still persist until the user retries or corrects access.