Bug type
Incorrect behavior
Summary
OpenClaw appears to enforce a hardcoded 5MB media store/staging limit before channel or agent-level media limits can apply.
In the installed runtime bundle, the hardcoded limit is in:
with:
const MEDIA_MAX_BYTES = 5 * 1024 * 1024;
This caused a generated video to fail with:
Media exceeds 5MB limit
Even though media delivery and channel/media configuration suggest larger payloads may be supported downstream.
Steps to reproduce
- Configure or use a workflow that generates media larger than 5MB, for example a generated video.
- Ensure the downstream channel or agent config would otherwise allow larger media.
- Attempt to return or stage that media through the normal OpenClaw media/tool pipeline.
Expected behavior
One of the following should happen:
- the effective media limit should be derived from channel/agent config
- the store/staging layer should have its own documented config knob
- or the error should clearly explain that a separate hard global staging limit is being enforced
Configured media size allowances should not be silently undermined by a lower hardcoded cap earlier in the pipeline.
Actual behavior
Media fails early with:
Media exceeds 5MB limit
This appears to happen in the media store/runtime layer before downstream configured media limits can be meaningfully applied.
OpenClaw version
2026.4.11
Operating system
Ubuntu 24.04
Install method
npm global
Model
openai-codex/gpt-5.4
Provider / routing chain
OpenClaw media tool pipeline
Config file / key location
Not config-specific. Observed in the installed runtime bundle:
Additional provider/model setup details
Observed while generating video output. This is not specific to a single model provider, because the failure appears to occur in OpenClaw's own media store/staging layer.
Logs, screenshots, and evidence
Observed runtime error:
Relevant installed runtime snippet:
const MEDIA_MAX_BYTES = 5 * 1024 * 1024;
Also observed that OpenClaw has other media limit resolution paths, including configurable channel/agent media max byte logic, which suggests this 5MB cap is an earlier hard ceiling rather than the only intended effective limit.
Impact and severity
This blocks generated or staged media workflows, especially video, and makes higher configured media limits ineffective or misleading.
Additional information
It would be helpful if this were fixed by one of these approaches:
- make the staging/store media limit configurable
- derive it from effective channel/agent media limits
- document it clearly as a separate hard cap and surface that in config/docs
Bug type
Incorrect behavior
Summary
OpenClaw appears to enforce a hardcoded 5MB media store/staging limit before channel or agent-level media limits can apply.
In the installed runtime bundle, the hardcoded limit is in:
dist/store-CA7OW_2w.jswith:
This caused a generated video to fail with:
Media exceeds 5MB limitEven though media delivery and channel/media configuration suggest larger payloads may be supported downstream.
Steps to reproduce
Expected behavior
One of the following should happen:
Configured media size allowances should not be silently undermined by a lower hardcoded cap earlier in the pipeline.
Actual behavior
Media fails early with:
Media exceeds 5MB limitThis appears to happen in the media store/runtime layer before downstream configured media limits can be meaningfully applied.
OpenClaw version
2026.4.11
Operating system
Ubuntu 24.04
Install method
npm global
Model
openai-codex/gpt-5.4
Provider / routing chain
OpenClaw media tool pipeline
Config file / key location
Not config-specific. Observed in the installed runtime bundle:
dist/store-CA7OW_2w.jsAdditional provider/model setup details
Observed while generating video output. This is not specific to a single model provider, because the failure appears to occur in OpenClaw's own media store/staging layer.
Logs, screenshots, and evidence
Observed runtime error:
Relevant installed runtime snippet:
Also observed that OpenClaw has other media limit resolution paths, including configurable channel/agent media max byte logic, which suggests this 5MB cap is an earlier hard ceiling rather than the only intended effective limit.
Impact and severity
This blocks generated or staged media workflows, especially video, and makes higher configured media limits ineffective or misleading.
Additional information
It would be helpful if this were fixed by one of these approaches: