Skip to content

Compressd#21

Merged
amir-prompt merged 2 commits intomainfrom
compressd
Feb 18, 2026
Merged

Compressd#21
amir-prompt merged 2 commits intomainfrom
compressd

Conversation

@amir-prompt
Copy link
Collaborator

@amir-prompt amir-prompt commented Feb 18, 2026

Generated description

Below is a concise technical summary of the changes proposed in this PR:
Implements gzip compression for outgoing report payloads to optimize data transmission and refactors error message construction for better readability. Updates the send_report function to handle compressed data and include the appropriate Content-Encoding header.

TopicDetails
Payload Compression Compresses the JSON payload using gzip before transmission and adds the Content-Encoding header to the request.
Modified files (1)
  • openclaw_usage.py
Latest Contributors(2)
UserCommitDate
vitaly@prompt.securityExtract-shared-aggrega...February 16, 2026
amir@prompt.securityFix-linter-errors-grou...February 16, 2026
Error Handling Refactors the error message assignment in the send_report function to use a dedicated error_msg variable.
Modified files (1)
  • openclaw_usage.py
Latest Contributors(2)
UserCommitDate
vitaly@prompt.securityExtract-shared-aggrega...February 16, 2026
amir@prompt.securityFix-linter-errors-grou...February 16, 2026
This pull request is reviewed by Baz. Review like a pro on (Baz).

amir-prompt and others added 2 commits February 18, 2026 19:42
Add _trim_payload helper that progressively halves large list fields
(tool_calls, web_activity, etc.) until the JSON payload fits under 5 MB.
Improves error message for HTTP 413 responses.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace _trim_payload logic with gzip compression on the entire JSON
payload. Sets Content-Encoding: gzip header so the server can
decompress transparently.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@amir-prompt amir-prompt merged commit 532260f into main Feb 18, 2026
8 checks passed
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