Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(multimodal): correct stale comment on image cap enforcement

Steven Enamakel996e8a52f948
diff --git a/crates/openhuman-core/src/agent/multimodal.rs b/crates/openhuman-core/src/agent/multimodal.rs
index e4381c93bb..d6a17cf635 100644
--- a/crates/openhuman-core/src/agent/multimodal.rs
+++ b/crates/openhuman-core/src/agent/multimodal.rs
@@ -158,8 +158,8 @@ pub async fn stash_image_attachments(message: &str, image_config: &MultimodalCon
for (idx, reference) in image_refs.iter().enumerate() {
// Enforce the per-turn image cap at ingress: over-cap markers degrade
// to a text placeholder and are never read or stashed (rewriting the
- // markers removes the count check `prepare_messages_for_provider` would
- // otherwise apply, and bounds stash growth per message).
+ // markers are rewritten before they reach the owner request wrapper,
+ // and bounds stash growth per ingress message).
if idx >= max_images {
placeholders.push("[Image: (over image limit)]".to_string());
continue;