Commit 236fc37
authored
feat: integrate task directory store into execution flow (#131)
## Summary
- Integrates `taskDirectoryStore` into task execution flow
- Tasks now check stored directory mappings before deriving paths from workspace
- Persists directory assignments when repos are set or cloned
- Enables per-task directory customization and repo sharing across tasks
## Changes
- **`taskExecutionStore.ts`**: Updated `initializeRepoPath()` to check `taskDirectoryStore` first, then fall back to workspace-based derivation. Updated `setRepoPath()` to persist task→directory mapping.
- **`cloneStore.ts`**: Updated `handleComplete()` to save repo→directory mapping after successful clone for future task reuse.
## Test Plan
- [ ] Clone a repo for a task → verify mapping is saved
- [ ] Run another task with the same repo → verify it reuses the cloned directory
- [ ] Manually set a directory for a task → verify it persists across app restarts
- [ ] Verify tasks without `repository_config` still work
---
**Stack**: Built on top of:
- PR #128: Clone progress UI
- PR #130: Task directory store foundation1 parent f801277 commit 236fc37
File tree
2 files changed
+40
-1
lines changed- src/renderer
- features/task-detail/stores
- stores
2 files changed
+40
-1
lines changedLines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
248 | 249 | | |
249 | 250 | | |
250 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
251 | 257 | | |
252 | 258 | | |
253 | 259 | | |
| |||
729 | 735 | | |
730 | 736 | | |
731 | 737 | | |
732 | | - | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
733 | 765 | | |
734 | 766 | | |
735 | 767 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
53 | 60 | | |
54 | 61 | | |
55 | 62 | | |
| |||
0 commit comments