Skip to content

fix(logging): compact OpenAI request logs and reduce INFO noise#283

Merged
duguwanglong merged 2 commits into
devfrom
feat/compact-openai-logs-reduce-info-noise
May 18, 2026
Merged

fix(logging): compact OpenAI request logs and reduce INFO noise#283
duguwanglong merged 2 commits into
devfrom
feat/compact-openai-logs-reduce-info-noise

Conversation

@xiami762
Copy link
Copy Markdown
Contributor

@xiami762 xiami762 commented May 18, 2026

Summary

  • Replace verbose per-message message_shapes in OpenAI base provider request logs with a compact message_summary (counts, aggregates, short tail) so long sessions do not repeat the full history on every model call.
  • Demote high-frequency plugin, tool registry, session runner/loop, and compaction policy logs from INFO to DEBUG to keep default INFO output readable.
  • Add and extend unit tests for the new summary shape and log levels, and update CLI quiet-help expectations.

xiami762 and others added 2 commits May 18, 2026 15:57
Replace per-message message_shapes with aggregate message_summary for
each chat/stream request, and move plugin, tool, session, and compaction
noise from INFO to DEBUG so long runs stay readable.

Co-authored-by: Cursor <cursoragent@cursor.com>
@xiami762 xiami762 requested a review from duguwanglong May 18, 2026 08:02
@duguwanglong duguwanglong merged commit 0f8c1dd into dev May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants