mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
Slim down SessionSummary responses to reduce payload size: - Replace full todos array with computed todoProgress summary - Replace metadata object with only necessary fields (name, path, summary.text) - Remove unused fields (thinking, createdAt, permissionMode, modelMode) - Refactor sorting to work on full Session objects before mapping This significantly reduces /api/sessions response size, especially for sessions with many todos or tools.