agent: Fix project context on first thread (#51868)

We seemed to have a regression where the worktrees weren't showing up in
the system prompt on first load.

Release Notes:

- N/A
c932aa9f5bBen Brandt committed on 3/18/2026, 10:43:44 PM· committed by GitHubparent7baf5dc
1 file changedLine totals unavailable