Clarify managed session storage and excluded native histories

This commit is contained in:
2026-11-06 21:40:26 +00:00
parent f06a915dc7
commit 0f49b31ca3
3 changed files with 28 additions and 2 deletions
+3 -1
View File
@@ -15,6 +15,8 @@ import (
)
const storageInterval = time.Hour
const storageScopeNotice = "Native Claude, Codex and OpenCode histories outside Pipelines data and known project directories are not included."
const storagePreviewLifetime = 10 * time.Minute
type storagePreview struct {
@@ -143,7 +145,7 @@ func (m *storageManager) overview(ctx context.Context) (*protocol.StorageOvervie
if err != nil {
return nil, err
}
result := &protocol.StorageOverview{Measurement: "logical_file_bytes", TotalBytes: inventory.TotalBytes, Policy: policy, MeasuredAt: time.Now().UTC().Format(time.RFC3339), Partial: inventory.Partial, Warnings: inventory.Errors, AutomaticIntervalSeconds: int(storageInterval / time.Second), Categories: []protocol.StorageCategory{}}
result := &protocol.StorageOverview{Measurement: "logical_file_bytes", TotalBytes: inventory.TotalBytes, Policy: policy, MeasuredAt: time.Now().UTC().Format(time.RFC3339), Partial: inventory.Partial, Warnings: append([]string{storageScopeNotice}, inventory.Errors...), AutomaticIntervalSeconds: int(storageInterval / time.Second), Categories: []protocol.StorageCategory{}}
for _, c := range inventory.Categories {
result.Categories = append(result.Categories, protocol.StorageCategory{ID: c.ID, Label: c.Label, Path: c.Path, Bytes: c.Bytes, Files: c.Files, Partial: c.Partial, Error: c.Error})
}