Repository navigation
improve: retain unchanged forwarded avatar publications - #139181
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 5, 2026, 12:04 PM ET / 16:04 UTC. ClawSweeper reviewWhat this changesRetains unchanged forwarded-agent avatar maps to avoid redundant chat-row rendering and adds regression coverage for refreshes and image revisions. Merge readiness✅ Ready for maintainer review Current main still performs the redundant publications, so this PR remains useful. No blocking correctness findings were identified. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI resolves avatars for agents whose messages are forwarded into a chat. Gateway identity metadata and cached image URLs feed the transcript renderer. flowchart TD
A[Forwarded chat messages] --> B[Known sender agents]
B --> C[Identity and image cache]
C --> D[Refresh image leases]
D --> E{Avatar associations changed?}
E -->|Yes| F[Publish map and refresh rows]
E -->|No| G[Keep settled rows idle]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -3, Tests +118. Total +115 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep publication equality at the avatar owner while refreshing metadata and image leases independently through the existing shared cache. Do we have a high-confidence way to reproduce the issue? Yes, from source: changing the message array refreshes senders, and current main replaces the map used by transcript invalidation even when its contents match. This review did not execute a runtime reproduction. Is this the best way to solve the issue? Yes. Stabilizing publication at its producer preserves the renderer contract; comparing avatar contents in downstream rows would duplicate policy and leave unnecessary host updates. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 76fb700f1322. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* origin/main: (46 commits) fix(gateway): keep chat metadata responsive across auth refresh (openclaw#139192) fix(doctor): keep Workshop relocation lint read-only (openclaw#139193) perf(ui): retain unchanged forwarded avatar publications (openclaw#139181) fix(config): guide exec policy migration repairs (openclaw#139143) test(i18n): refresh representative Watch key (openclaw#139197) fix(agents): preserve recovered scheduled-run outcomes (openclaw#139037) refactor(acp): simplify pending operation accounting (openclaw#139189) fix(plugin-sdk): harden account scope for pairing requests and challenges (openclaw#139142) perf(gateway): avoid redundant PR landing ancestry checks (openclaw#139186) perf(ui): release captured audio cache leases directly (openclaw#139174) fix(skills): validate names in library forms (openclaw#139184) fix(sessions): reduce cold catalog listing delays (openclaw#139146) perf(cron): scan preserved action output once (openclaw#139163) fix(agents): keep fresh tool results readable under context pressure (openclaw#139165) fix(compaction): heartbeat sessions ignore the active transcript byte cap (openclaw#136533) perf(agents): reuse snapshotted web search result rows (openclaw#139162) fix(onboarding): keep Tauri setup recoverable and verify model results (openclaw#139140) fix(memory): rank indexed sessions by source activity (openclaw#139112) perf(terminal): avoid rebuilding sanitized link fallbacks (openclaw#139159) perf(agents): bound retained tool result projection data (openclaw#139157) ...
What Problem This Solves
Appending or reordering chat messages triggered another render of settled transcript rows when forwarded-agent avatar refreshes returned the same images. The same redundant update occurred after identity metadata expired but avatar URLs stayed unchanged.
Why This Change Was Made
The avatar loader now publishes a new sender map only when its ID-to-URL associations change. Image lease exchange and identity TTL refresh still run independently. Empty/disconnected cleanup shares the same flow while remaining synchronous, and asynchronous results retain the existing session/client/epoch/roster/request fences.
User Impact
Unchanged forwarded-agent images no longer invalidate settled chat rows. New avatar revisions and removals still update the view, while failed image replacements retain the prior image. Production is 3 lines smaller; the rendered regression fixture adds 118 test lines.
Evidence
Before/after: actual transcript components after an identity TTL refresh with unchanged images. Synthetic identities and PNGs are used; the candidate keeps the same rendered content while suppressing the extra avatar-map publication and host update.