Files
agent-zero/webui/components/projects/AGENTS.md
Alessandro 52744fe7b1 Fix sidebar folder lag during activity and focus updates
Replace repeated full-context family scans with a fresh parent-child index shared within each grouping and filter pass.

Retain unchanged configuration, ordering, project lists and rendered sections to avoid unnecessary sidebar reconciliation. Preserve reactive row metadata, nested family pins, sorting, filters and collapse behavior without a persistent cache.

Add frontend regressions and document the state-identity contracts. Verified the frontend suite, 33 focused Python tests and 17 live browser checks. In a local 274-chat sample, median activity updates fell from about 67 ms to 15 ms; unchanged focus refreshes produced zero sidebar DOM mutations.
2026-10-06 21:31:33 +02:00

1.5 KiB

Project Components DOX

Purpose

  • Own WebUI project creation, selection, editing, secrets, model, skill, MCP server, and file-structure components.

Ownership

  • projects-store.js owns project state and actions.
  • project-create.html, project-list.html, and project-selector.html own project creation and navigation UI.
  • project-edit*.html files own project editing subsections.
  • project-file-structure-test.html owns file-structure test UI.

Local Contracts

  • Keep project API payloads synchronized with backend project handlers.
  • loadProjectsList() retains the current list when response values are unchanged, avoiding sidebar regrouping on window focus. Changed project values and ordering still replace the list.
  • Do not expose project secrets in logs, URLs, or long-lived frontend state unnecessarily.
  • Preserve scoped settings interactions with plugins, models, skills, and MCP servers.
  • Project model settings select a global _model_config preset; they do not own copied model dictionaries or project-local preset definitions.
  • Agent Editor owns profile-scoped availability mutations. Project edit payloads do not include that state, so unrelated project saves cannot restore stale toggle values.

Work Guidance

  • Verify project edit flows when changing shared project store state.

Verification

  • Smoke-test create, select, edit, secrets, LLM, skills, MCP servers, and file-structure flows after changes.

Child DOX Index

No child DOX files.