Skip to content

perf: reduce project loading requests - #44

Merged
winterfx merged 4 commits into
mainfrom
perf/lazy-project-loading
Sep 9, 2026
Merged

winterfx merged 4 commits into
mainfrom
perf/lazy-project-loading

Conversation

@winterfx

@winterfx winterfx commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • load project summaries first and fetch full project specs only after selecting a project
  • add a lightweight UI-server project/agent context endpoint backed by bounded concurrent GetProject(includeSpec=false) calls
  • reuse the lightweight context in Automations, Sandboxes, and the command palette
  • avoid the full-project scan when previewing a new automation
  • build MCP/Skills resources and targets from a single project-spec traversal

No changes to the agent-compose backend API are required.

Testing

  • npm run check:ui
  • go test ./...
  • npx prettier --check src/api/agents.ts src/api/loaders.ts src/api/runs.ts src/routes/Automations.svelte src/components/AutomationCollection.svelte src/lib/components/command-palette.svelte
  • git diff --check
  • verified /api/ui/v1/project-agent-context against a local agent-compose daemon

@winterfx
winterfx merged commit 220b61d into main Sep 9, 2026
2 checks passed
@winterfx
winterfx deleted the perf/lazy-project-loading branch September 9, 2026 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant