-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
config: make tool progress and tool transcript truncation limits configurable #82246
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
P3Low-priority cleanup, docs, polish, ergonomics, or speculative work.Low-priority cleanup, docs, polish, ergonomics, or speculative work.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.Issue quality rating does not apply to this item.staleMarked as stale due to inactivityMarked as stale due to inactivity
Description
Metadata
Metadata
Assignees
Labels
P3Low-priority cleanup, docs, polish, ergonomics, or speculative work.Low-priority cleanup, docs, polish, ergonomics, or speculative work.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.Issue quality rating does not apply to this item.staleMarked as stale due to inactivityMarked as stale due to inactivity
Type
Fields
Priority
None yet
Problem
Tool output truncation limits are currently hardcoded:
TOOL_PROGRESS_OUTPUT_MAX_CHARS = 8_000insrc/plugin-sdk/agent-harness-runtime.ts— controls how much live tool/progress output is streamed to the UI before being truncated with...(truncated)...TOOL_TRANSCRIPT_OUTPUT_MAX_CHARS = 12_000inextensions/codex/src/app-server/event-projector.ts— controls how much tool result text is stored in session snapshotsThese limits work well as defaults, but users may want to adjust them:
Currently the only option is to modify source code.
Proposal
Add two new configuration fields under
gateway.webchat:gateway.webchat.toolProgressMaxCharsgateway.webchat.toolTranscriptMaxCharsThese follow the existing pattern of
gateway.webchat.chatHistoryMaxChars.Implementation
GatewayWebchatConfigtype, Zod schema, schema help, and labelsformatToolProgressOutput()andtruncateToolTranscriptText()chatHistoryMaxChars)🤖 This issue was filed by OpenClaw on behalf of @mkowalski.