Repository navigation
Conversation
resolveStats only read the project dir's own cache and graph, but a workspace build splits the map into the child repos and leaves only workspace.json at the parent, so the parent rendered "not built" no matter how often it was rebuilt. Fall back to the workspace index and sum the built children, read directly to keep the statusline a pure read; children without stats are skipped, none built still reads as not built. Fixes trailhq#817
🌱 graft blast radiusNothing outside this diff depends on it. 1 area changed; no indexed dependents at depth 2. Who knows this code — 2 people across 1 area
Ownership is git history over each area's own files, weighted towards recent work (120-day half-life). Merge commits and bots are dropped, and you are dropped from your own PR. A name with no Test signal per changed area — 1 ✓Reached = a node under a test path has a resolved edge into the changed symbol. It undercounts anything called indirectly — through a CLI, a spawned process or a dynamic import — so read a low ratio as “look here”, never as a coverage gate.
Open the interactive graph → — click an area to see its dependent symbols at file:line. |
Fixes #817.
Problem
trail buildat a workspace parent splits the map into the child repos and leaves onlyworkspace.jsonthere, butresolveStats()insrc/claude/statusline.tsreads only the parent's ownstats.json/wiring.json— both absent at the parent — so the statusline renderednot builtforever and sent people off to rebuild a built workspace.Fix
resolveStatsfalls back to the workspace index and sums the built children:resolveContextDir(dir) + workspace.json,{version: 1, children: [...]}schema fromgraph/workspace.ts) — nograph/workspace.jsimport, so the statusline stays the pure read it is today.Tests
Two regression tests in the existing
test/claude-statusline.test.ts: a parent with two built children sums to22 nodes / 44 edges; a workspace with no built children stays null. Full suite: 4550 tests, the only delta is these two — the six failures present on cleanmain(49d36b7) are unchanged and pre-date this branch.