Files
deepseek-harness/packages/api/session-controller/src
Dudu-0223 79015b174c refactor(session): move list metadata to sessionQuery and query Workspace headers
Address review on #8238:

- Replace the Workspace.sessionHeaders property with getSessionHeaders(). The
  public contract states only membership and order; the in-memory header index
  is documented on the implementation.
- SessionQueryEngine now injects sessionProjections, registers the
  sessionListMetadata projection in Service.init, and exposes
  getListMetadata(session). Disposing the service releases the registration.
  The Session API and list_session read metadata through ctx.sessionQuery;
  registerSessionListMetadata and the passed reader closure are removed.
- SqliteSessionQueryEngine injects sessionProjections and chains Service.init.
- Tests: a newly attached Session appears in a later getSessionHeaders()
  result; query-service disposal removes the projection; test query services
  run Service.init; projection-order expectations follow the new registration
  order.
2026-11-16 11:59:34 +08:00
..