Skip to content

chore: remove sendImageToUser tool references - #454

Merged
WinterYukky merged 1 commit into
aws-samples:mainfrom
WinterYukky:chore/remove-sendimagetouser-refs-1787620619
Aug 25, 2026
Merged

chore: remove sendImageToUser tool references#454
WinterYukky merged 1 commit into
aws-samples:mainfrom
WinterYukky:chore/remove-sendimagetouser-refs-1787620619

Conversation

@WinterYukky

Copy link
Copy Markdown
Contributor

Summary

Removes the remaining string references to the retired sendImageToUser
tool across the agent-core delivery/dedup allowlists and the webapp session
renderer.

Motivation

Historical sendImageToUser toolUse events can simply fall back to the
generic tool-rendering path, so the dedicated handling is unnecessary.

Changes

  • agent-core/search-sessions.ts: drop from MSG_TOOLS
  • agent-core/self-narration-filter.ts: drop from NON_WORK_TOOL_NAMES
  • agent-core/user-delivery-dedup.ts: drop from MESSAGE_DELIVERY_TOOL_NAMES
  • webapp/sessions/[workerId]/page.tsx: remove historical sendImageToUser
    render branch, drop from isMsg, remove now-unused getAttachedImageKey import
  • webapp/.../SessionPageClient.tsx: remove realtime sendImageToUser render branch
  • Update associated unit test expectations

Historical sendImageToUser toolUse events now fall through to the generic
tool-rendering path (degraded display, no crash).

Testing

  • npm run build -w packages/agent-core (tsc) — pass
  • vitest agent-core (user-delivery-dedup, self-narration-filter, search-sessions) — 78 passed
  • vitest webapp (SessionContentSearch) — 26 passed
  • prettier format:check (agent-core, webapp) — pass

Notes

  • The pre-existing PageProps tsc diagnostic in page.tsx is unrelated to
    this change (the .next/types global is only generated during next 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.

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).
@WinterYukky
WinterYukky merged commit e985c92 into aws-samples:main Aug 25, 2026
8 checks passed
@remote-swe
remote-swe Bot deleted the chore/remove-sendimagetouser-refs-1787620619 branch August 25, 2026 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant