chore: remove sendImageToUser tool references - #454
Merged
WinterYukky merged 1 commit intoAug 25, 2026
Merged
Conversation
The sendImageToUser tool has been retired. This removes the remaining string references to it across agent-core delivery/dedup allowlists and the webapp session renderer: - search-sessions MSG_TOOLS set - self-narration-filter NON_WORK_TOOL_NAMES set - user-delivery-dedup MESSAGE_DELIVERY_TOOL_NAMES list - webapp page.tsx historical toolUse render branch (+ isMsg set) - webapp SessionPageClient.tsx realtime toolUse render branch - associated unit test expectations Historical sendImageToUser toolUse events now fall through to the generic tool rendering path (degraded display, no crash).
remote-swe
Bot
deleted the
chore/remove-sendimagetouser-refs-1787620619
branch
August 25, 2026 06:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes the remaining string references to the retired
sendImageToUsertool across the agent-core delivery/dedup allowlists and the webapp session
renderer.
Motivation
Historical
sendImageToUsertoolUseevents can simply fall back to thegeneric tool-rendering path, so the dedicated handling is unnecessary.
Changes
agent-core/search-sessions.ts: drop fromMSG_TOOLSagent-core/self-narration-filter.ts: drop fromNON_WORK_TOOL_NAMESagent-core/user-delivery-dedup.ts: drop fromMESSAGE_DELIVERY_TOOL_NAMESwebapp/sessions/[workerId]/page.tsx: remove historicalsendImageToUserrender branch, drop from
isMsg, remove now-unusedgetAttachedImageKeyimportwebapp/.../SessionPageClient.tsx: remove realtimesendImageToUserrender branchHistorical
sendImageToUsertoolUseevents now fall through to the generictool-rendering path (degraded display, no crash).
Testing
npm run build -w packages/agent-core(tsc) — passformat:check(agent-core, webapp) — passNotes
PagePropstsc diagnostic inpage.tsxis unrelated tothis change (the
.next/typesglobal is only generated duringnext build);it reproduces on untouched
main.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.