Log how many projects the connector serves, not how many --project named
Merged
RO
2mo ago+46+46+01234567890123456789-2-2-0123456789
Problem
When basecamp connect starts, its log line says projects=0 for an agent that serves several projects and works fine. The number counts the projects named with --project (the optional narrowing), and with no narrowing that's 0. People and their Claude session read the log to check the connector is healthy, and a session in testing warned that the agent might be serving nothing.
Solution
The start line now says served_projects=<n>, the number of projects the agent serves. When --project narrows the run, it also says only_projects=[…].
Summary by cubic
Fixes the connector start log so it reports how many projects the agent actually serves instead of how many were named with --project.
- The start line now logs
served_projects; the oldprojectscount was 0 whenever no flag narrowed the run, which read as "serving nothing". - When
--projectlimits the run, the line also logsonly_projectswith the flagged IDs.