Files
goclaw/internal/pipeline
nguyenha935andGoClaw Operator 64596bf0c1 fix: preflight compact v3 context before model calls (#1297)
Run pruning before ThinkStage so oversized histories compact before the provider request is built.

Persist V3 last_prompt_tokens with the post-flush persisted message count so post-run compaction calibration has current usage data.

Tests: go test ./internal/pipeline -run "TestNewDefaultPipeline_PrunesBeforeThink|TestFinalizeStage_UpdateMetadataReceivesPersistedMessageCount" -count=1; go test ./internal/agent -run "^$" -count=1

Co-authored-by: GoClaw Operator <operator@goclaw>
2026-06-29 01:24:51 +07:00
..