gadget/gadget-drone
Rob Colbert 84f68907da fix: FileTree backend recursion breaking lazy loading
CRITICAL FIX: Remove recursion from listDirectoryForTree function.

The backend was recursively fetching ALL subdirectories and returning
them as a flat list, which completely broke the lazy-loading model.

Changes:
- Remove recursive call in listDirectoryForTree
- Backend now returns ONLY immediate children
- Frontend handles lazy loading by requesting children on expand
- This matches the intended architecture where frontend controls tree

This fixes the issue where directory contents were duplicated and
the tree structure was corrupted when expanding/collapsing.
2026-05-12 16:32:27 -04:00
..
.vscode created by merging gadget-code and gadget-drone 2026-04-28 09:20:37 -04:00
data/prompts/subagent subagents (written by an agent, for an agent) 2026-05-11 11:22:59 -04:00
docs drone doc updates 2026-05-02 03:13:25 -04:00
src fix: FileTree backend recursion breaking lazy loading 2026-05-12 16:32:27 -04:00
types created by merging gadget-code and gadget-drone 2026-04-28 09:20:37 -04:00
.gitignore stop monitoring my .gadget directory, dammit! 2026-04-30 16:54:44 -04:00
AGENTS.md finishing touches on move to GadgetId from ObjectId 2026-05-01 15:07:37 -04:00
gadget-drone.code-workspace created by merging gadget-code and gadget-drone 2026-04-28 09:20:37 -04:00
LICENSE created by merging gadget-code and gadget-drone 2026-04-28 09:20:37 -04:00
package.json checkpoint that I plan to delete 2026-05-09 14:52:59 -04:00
pnpm-lock.yaml created by merging gadget-code and gadget-drone 2026-04-28 09:20:37 -04:00
pnpm-workspace.yaml created by merging gadget-code and gadget-drone 2026-04-28 09:20:37 -04:00
tsconfig.json created by merging gadget-code and gadget-drone 2026-04-28 09:20:37 -04:00