agent-ecosystem/test/main/services
777genius 5d63ecfe32 perf: scope team file watching to active and engaged teams
The main process watched every team directory under ~/.claude/teams (one shallow
chokidar target per team root, per team inboxes, and per task dir). On macOS this
falls back to kqueue, which needs one fd per watched file, so a workspace with
many teams kept ~1600 descriptors open and made startup and reconcile work scale
with the number of teams on disk.

Scope the team-root and task watching to teams that are running or currently
engaged in the UI. The teams root and every team's inboxes are still watched for
all teams, so cross-team message delivery, the lead inbox->stdin relay, and
notifications are unchanged. Idle teams are static, so dropping their team-root/
task watches is safe; opening a team (getData) or launching it re-adds it via an
immediate watch-scope refresh. The provider falls back to watching every team
when unset, and the EMFILE polling fallback is intentionally left unscoped so a
scope change can never look like a deletion.

Measured on a 162-team workspace: open team fds 1600 -> 730, with team-root
watching restored the moment a team is opened or goes live.
2026-05-30 00:25:55 +03:00
..
analysis fix(provenance): classify synthetic user turns 2026-05-26 23:51:17 +03:00
discovery fix(provenance): classify synthetic user turns 2026-05-26 23:51:17 +03:00
editor fix: harden Windows frontend path handling 2026-05-16 17:34:50 +03:00
extensions fix(ci): restore dev validation checks 2026-05-19 02:49:45 +03:00
identity feat: add telemetry identity and runtime status 2026-05-17 20:26:34 +03:00
infrastructure perf: scope team file watching to active and engaged teams 2026-05-30 00:25:55 +03:00
parsing fix(provenance): classify synthetic user turns 2026-05-26 23:51:17 +03:00
runtime fix(opencode): extend summary status timeout 2026-05-28 00:39:53 +03:00
schedule feat(runtime): add provider fast mode support 2026-04-21 22:22:47 +03:00
team perf: reuse team summary for comment notification init 2026-05-29 15:43:24 +03:00