Files
dsh-context/tests/compat
Bowen Liang 2f265f3f18 feat(client): add the Context Dashboard panel above Settings
A cross-session insight surface: the sidebar-foot entry (stacked above
Settings by the harness's own foot layout, with a running-sessions badge)
opens a frame-wide overlay through the shared module store. The panel reads
the root-scope useSessions/useWorkspaces standard kit — every list row's
host-cached projection values — so no session log needs opening:

- KPI band over the picked range (7d / 30d / all): active sessions, billed
  tokens, estimated cost (models.dev book), cache-hit rate.
- Activity heatmap (GitHub-style, 12 weeks, square cells filling the card):
  a day click pins the session grid to that day.
- Aggregate composition donut over the range's sessions.
- Session cards with a mini composition ring, billed/turns/cost figures and
  a workspace-group / project breadcrumb (deduped when both names match);
  grid filters by range, pinned day, group chips (incl. Ungrouped), and
  search; sorts by recency, tokens, or context size; a card click opens the
  session through the harness's own sessions.open and closes the panel.

Subagent-origin rows are excluded, mirroring the workspace browser's own
predicate (plain open() cannot address them). Every row is sanitized in
isolation — a hostile row degrades to a metadata-only card, never an error.
2026-09-16 08:56:30 +08:00
..