Repository navigation
Conversation
|
Codex review: found issues before merge. Reviewed July 3, 2026, 5:27 AM ET / 09:27 UTC. Summary PR surface: Source +493, Tests +521, Other -1. Total +1013 across 9 files. Reproducibility: yes. source-level: current main and latest releases still append a gateway-injected Review metrics: 3 noteworthy metrics.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof path suggestion Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Forward Do we have a high-confidence way to reproduce the issue? Yes, source-level: current main and latest releases still append a gateway-injected Is this the best way to solve the issue? No, not yet: replacing the latest matching raw MEDIA assistant turn is the right fix shape, but the current PR needs config forwarding and a clean restack before it is the best mergeable solution. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 68e06b9ea148. Label changesLabel justifications:
Evidence reviewedPR surface: Source +493, Tests +521, Other -1. Total +1013 across 9 files. View PR surface stats
Acceptance criteria:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
ec81c25 to
a78f652
Compare
d1273f0 to
e32a269
Compare
5a09dfc to
5b1bf9e
Compare
e1d4076 to
813a326
Compare
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
ClawSweeper PR egg ✨ Hatched: 🌱 uncommon Mossy Signal Puff Hatch commandComment Hatchability rules:
Rarity: 🌱 uncommon. What is this egg doing here?
|
|
@clawsweeper re-review Current head: I removed the release-owned |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Current head: Merged latest upstream main, removed the release-owned Local checks passed: |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Fixed the P1 local-media trust-boundary finding at current head What changed:
Local proof:
|
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review Rebuilt the PR as a clean one-commit series at current head What changed from the previous pushed head:
Local proof from the identical tree before the clean rewrite:
|
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review Fixed the P1 tail-safety finding at current clean head What changed:
Local proof:
|
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing as superseded by merged PR #113163, which explicitly incorporated this prior art and now provides the one-reply managed-image behavior on current main with identity-based transcript handling and base-path-safe media URLs. I did not rewrite the old fork main branch because there is no remaining feature delta to reconcile. |
Summary
MEDIA:image directives could fail to become trusted outgoing media, leaving inline images text-only or unavailable to WebChat/Control UI.MEDIA:transcript turn with the normalized media-bearing message instead of appending a second assistant image turn.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
No matching upstream issue was found. Searches checked:
inline image,inline media,Codex harness image,MEDIA: image,assistant-media,managed media,Control UI image, and duplicate image/WebChat terms.Root Cause (if applicable)
MEDIA:<local path>while the gateway reply payload carries the parsed/normalized media URL. The WebChat transcript bridge treated those as separate assistant replies and appended the normalized media message after the raw directive turn.Regression Test Plan (if applicable)
src/agents/pi-embedded-subscribe.tools.media.test.tssrc/gateway/server-methods/chat.directive-tags.test.tstrustedLocalMediatool results keep local media URLs, while external tool results with the same marker do not.MEDIA:<local path>is replaced by the normalized outgoing media message when the reply payload carries equivalent media, instead of producing two assistant messages.MEDIA:directives into outgoing media blocks, but not replacement of a raw persisted Codex/AppServer assistant turn.User-visible / Behavior Changes
Codex-harness agents can render trusted local image replies inline in WebChat/Control UI without leaving a raw
MEDIA:line behind or showing a duplicate text-plus-image assistant reply.Diagram (if applicable)
Security Impact (required)
Yes/No): NoYes/No): NoYes/No): NoYes/No): NoYes/No): NoYes, explain risk + mitigation: N/ASecurity notes:
Repro + Verification
Environment
gpt-5.5during manual smoke testing.Steps
MEDIA:<local path>.Expected
MEDIA:directive is not shown to the user.Actual
MEDIA:assistant text could remain in the transcript and the normalized media message could be appended as a second assistant reply.Evidence
Passing local verification on the rebased branch:
Human Verification (required)
openclaw/openclawmain.trustedLocalMedia: trueremain untrusted for local media URLs.file://payload equivalence is handled by replacing the latest raw media directive turn.pnpm buildafter the rebase, because this local shell did not havepnpmonPATH; targeted tests and core typecheck were run directly with repository scripts.Review Conversations
N/A for initial PR submission.
Compatibility / Migration
Yes/No): YesYes/No): NoYes/No): NoRisks and Mitigations
MEDIA:directives and the current reply payload is media-bearing; tests cover the raw Codex/AppServer directive replacement path.Real behavior proof
MEDIA:<local path>image now normalize into the existing assistant transcript turn instead of leaving raw MEDIA text and appending a duplicate gateway-injected media reply. Current head tested: fede70512ea83677a9c79bd7530bf6865818125f.git diff --check,PATH=/tmp/openclaw-corepack-bin:$PATH CI=true timeout 300s pnpm test src/gateway/server-methods/chat.directive-tags.test.ts, andnode scripts/run-vitest.mjs run --config test/vitest/vitest.gateway.config.ts src/gateway/server-methods/chat.directive-tags.test.ts.MEDIA:directives, refuses to rewrite an older matching media turn after a newer assistant turn, and avoids a second message-level transcript update after the file-level rewrite event. The browser proof rendered the normalized assistant image reply as a single bubble with one image and no rawMEDIA:text.Browser-rendered Control UI proof on current head:
Proof setup: temporary Vite page rendered the actual Control UI renderMessageGroup implementation from this PR branch in system Chromium via Playwright. The message shape matched the normalized gateway result after the raw MEDIA transcript turn is replaced: one assistant text block plus one input_image content block, with no MEDIA directive left in visible text.