improvement(logs): raise execution log size limits to 3MB / 512KB#4778
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview
The oversized-storage unit test now uses a ~1.1MB fixture and asserts the compacted record stays within 3MB, matching the new total cap. Reviewed by Cursor Bugbot for commit aa7c410. Bugbot is set up for automated code reviews on this repo. Configure here. |
Greptile SummaryRaises two execution-log size constants to stop premature truncation of large but legitimate agent outputs.
Confidence Score: 5/5Safe to merge — the change is two constant edits, the three-tier compaction fallback is untouched, and the test correctly exercises the truncation path against the new ceilings. Both constants are straightforward limit bumps. The compaction logic, the multi-stage fallback chain, and all surrounding code are unmodified. PostgreSQL JSONB handles values well beyond 3 MB natively, so no schema constraint is violated. The updated test payload (1.1 MB × multiple slots ≈ 6+ MB) reliably triggers truncation under the new threshold and verifies the expected output shape. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[buildCompletedExecutionData] --> B{totalBytes > 3 MB?}
B -- No --> C[Store as-is]
B -- Yes --> D[Summarize: remove executionState\ntruncate trace I/O to 8 KB\ntruncate finalOutput to 512 KB]
D --> E{Still > 3 MB?}
E -- No --> F[Store summarized]
E -- Yes --> G[Minimal: strip trace I/O entirely\nkeep metadata only]
G --> H{Still > 3 MB?}
H -- No --> I[Store minimal]
H -- Yes --> J[Store metadata-only fallback]
Reviews (1): Last reviewed commit: "improvement(logs): raise execution log s..." | Re-trigger Greptile |
Summary
MAX_EXECUTION_DATA_BYTES500KB → 3MBMAX_WORKFLOW_VALUE_BYTES64KB → 512KB — this is what was summarizingfinalOutputon agent outputs just over 64KBType of Change
Testing
Tested manually.
bun run lintandbun run check:api-validation:strictpass. Logger unit tests (13) pass.Checklist