agent-ecosystem/test
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
..
agent-graph feat: harden opencode and team runtime flows 2026-05-21 01:10:48 +03:00
features fix(codex-account): keep account snapshots fresh 2026-05-26 23:44:40 +03:00
fixtures fix(changes): project opencode upgrades in detail view 2026-04-28 23:34:17 +03:00
main perf: scope team file watching to active and engaged teams 2026-05-30 00:25:55 +03:00
mocks fix(team): avoid full session scan on team open 2026-05-03 09:42:14 +03:00
preload fix(windows): harden elevated runtime detection 2026-05-22 18:43:50 +03:00
renderer perf: skip offline runtime polling 2026-05-29 16:11:16 +03:00
scripts fix(team): stabilize provider live smoke 2026-05-20 01:32:39 +03:00
shared fix(team): reconcile provisioned-but-not-alive bootstrap state 2026-05-27 12:16:41 +03:00
setup.ts feat(runtime): harden MCP launch orchestration 2026-05-21 19:03:47 +03:00