Commit 5c9f287
committed
feat: improve explorer attachments and workspace file flows
- attach folders from the file explorer through @ actions and drag payloads instead of falling back to plain composer path text
- carry folder attachment metadata through desktop and runtime contracts so prompts can reference attached folders without flattening their contents
- guard workspace-scoped preview, watch, and listing calls against stale roots during startup and workspace switches
- clear broken file surfaces when open files are deleted or invalidated instead of leaving stale preview errors mounted
- add explorer copy, cut, and paste with a new workspace-scoped filesystem copy IPC path and matching context-menu and keyboard wiring
- tighten explorer drag and drop behavior, including root-drop cleanup so highlight state does not stick after moves, and simplify the drag preview pill
- expand source-based desktop and runtime coverage for the new attachment, surface, and explorer filesystem flows
- validation: `cd desktop && npm run typecheck`
- validation: `cd desktop && node --test electron/file-explorer-spreadsheet-preview.test.mjs src/components/panes/FileExplorerPane.test.mjs src/components/layout/AppShell.test.mjs src/components/panes/ChatPaneComposerPrefill.test.mjs src/components/panes/InternalSurfacePane.test.mjs`
- validation: `cd runtime/api-server && node --import tsx --test src/app.test.ts`
- validation: `cd runtime/harness-host && node --import tsx --test src/pi.test.ts`1 parent bc83d81 commit 5c9f287
File tree
22 files changed
+1043
-176
lines changed- desktop
- electron
- src
- components
- layout
- panes
- lib
- types
- runtime
- api-server/src
- harness-host/src
- harnesses/src
22 files changed
+1043
-176
lines changedLines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
143 | 160 | | |
144 | 161 | | |
145 | 162 | | |
| |||
179 | 196 | | |
180 | 197 | | |
181 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
182 | 203 | | |
183 | 204 | | |
184 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2577 | 2577 | | |
2578 | 2578 | | |
2579 | 2579 | | |
2580 | | - | |
| 2580 | + | |
2581 | 2581 | | |
2582 | 2582 | | |
2583 | 2583 | | |
| |||
2599 | 2599 | | |
2600 | 2600 | | |
2601 | 2601 | | |
| 2602 | + | |
2602 | 2603 | | |
2603 | 2604 | | |
2604 | 2605 | | |
| |||
11580 | 11581 | | |
11581 | 11582 | | |
11582 | 11583 | | |
| 11584 | + | |
| 11585 | + | |
| 11586 | + | |
| 11587 | + | |
| 11588 | + | |
| 11589 | + | |
| 11590 | + | |
| 11591 | + | |
| 11592 | + | |
| 11593 | + | |
| 11594 | + | |
| 11595 | + | |
| 11596 | + | |
| 11597 | + | |
| 11598 | + | |
11583 | 11599 | | |
11584 | 11600 | | |
11585 | 11601 | | |
| |||
11736 | 11752 | | |
11737 | 11753 | | |
11738 | 11754 | | |
11739 | | - | |
11740 | | - | |
11741 | | - | |
11742 | | - | |
11743 | | - | |
11744 | | - | |
11745 | | - | |
11746 | | - | |
11747 | | - | |
11748 | | - | |
| 11755 | + | |
| 11756 | + | |
11749 | 11757 | | |
11750 | 11758 | | |
11751 | 11759 | | |
| |||
11759 | 11767 | | |
11760 | 11768 | | |
11761 | 11769 | | |
| 11770 | + | |
| 11771 | + | |
| 11772 | + | |
| 11773 | + | |
| 11774 | + | |
| 11775 | + | |
| 11776 | + | |
| 11777 | + | |
| 11778 | + | |
| 11779 | + | |
| 11780 | + | |
| 11781 | + | |
| 11782 | + | |
| 11783 | + | |
| 11784 | + | |
| 11785 | + | |
| 11786 | + | |
| 11787 | + | |
| 11788 | + | |
| 11789 | + | |
| 11790 | + | |
| 11791 | + | |
| 11792 | + | |
| 11793 | + | |
| 11794 | + | |
| 11795 | + | |
| 11796 | + | |
| 11797 | + | |
| 11798 | + | |
11762 | 11799 | | |
11763 | 11800 | | |
11764 | 11801 | | |
11765 | 11802 | | |
| 11803 | + | |
| 11804 | + | |
| 11805 | + | |
| 11806 | + | |
| 11807 | + | |
| 11808 | + | |
| 11809 | + | |
| 11810 | + | |
| 11811 | + | |
| 11812 | + | |
| 11813 | + | |
| 11814 | + | |
| 11815 | + | |
11766 | 11816 | | |
11767 | 11817 | | |
11768 | 11818 | | |
| |||
15988 | 16038 | | |
15989 | 16039 | | |
15990 | 16040 | | |
| 16041 | + | |
| 16042 | + | |
| 16043 | + | |
| 16044 | + | |
| 16045 | + | |
| 16046 | + | |
| 16047 | + | |
| 16048 | + | |
| 16049 | + | |
| 16050 | + | |
| 16051 | + | |
| 16052 | + | |
| 16053 | + | |
| 16054 | + | |
| 16055 | + | |
| 16056 | + | |
| 16057 | + | |
| 16058 | + | |
| 16059 | + | |
| 16060 | + | |
| 16061 | + | |
| 16062 | + | |
| 16063 | + | |
| 16064 | + | |
| 16065 | + | |
| 16066 | + | |
| 16067 | + | |
| 16068 | + | |
| 16069 | + | |
| 16070 | + | |
| 16071 | + | |
| 16072 | + | |
| 16073 | + | |
| 16074 | + | |
| 16075 | + | |
| 16076 | + | |
| 16077 | + | |
| 16078 | + | |
| 16079 | + | |
| 16080 | + | |
| 16081 | + | |
| 16082 | + | |
| 16083 | + | |
| 16084 | + | |
| 16085 | + | |
| 16086 | + | |
| 16087 | + | |
| 16088 | + | |
| 16089 | + | |
| 16090 | + | |
| 16091 | + | |
| 16092 | + | |
| 16093 | + | |
15991 | 16094 | | |
15992 | 16095 | | |
15993 | 16096 | | |
| |||
19276 | 19379 | | |
19277 | 19380 | | |
19278 | 19381 | | |
| 19382 | + | |
| 19383 | + | |
| 19384 | + | |
| 19385 | + | |
| 19386 | + | |
| 19387 | + | |
| 19388 | + | |
| 19389 | + | |
| 19390 | + | |
| 19391 | + | |
19279 | 19392 | | |
19280 | 19393 | | |
19281 | 19394 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1047 | 1047 | | |
1048 | 1048 | | |
1049 | 1049 | | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
1050 | 1056 | | |
1051 | 1057 | | |
1052 | 1058 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
647 | | - | |
| 647 | + | |
648 | 648 | | |
649 | | - | |
650 | 649 | | |
651 | 650 | | |
652 | 651 | | |
653 | 652 | | |
654 | | - | |
| 653 | + | |
655 | 654 | | |
656 | 655 | | |
657 | 656 | | |
658 | 657 | | |
659 | 658 | | |
660 | 659 | | |
661 | | - | |
| 660 | + | |
662 | 661 | | |
663 | 662 | | |
664 | 663 | | |
| |||
672 | 671 | | |
673 | 672 | | |
674 | 673 | | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
675 | 691 | | |
676 | 692 | | |
677 | 693 | | |
| |||
0 commit comments