Clarify managed session storage and excluded native histories
This commit is contained in:
@@ -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})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user