Skip to content

feat(coding-agent): render image blocks in interactive user messages - #6572

Open
AMagicPear wants to merge 2 commits into
earendil-works:mainfrom
AMagicPear:fix/user-message-images
Open

feat(coding-agent): render image blocks in interactive user messages#6572
AMagicPear wants to merge 2 commits into
earendil-works:mainfrom
AMagicPear:fix/user-message-images

Conversation

@AMagicPear

Copy link
Copy Markdown

Summary

  • Render image blocks in interactive user messages using the existing TUI Image component.
  • Attach clipboard images to the next submitted user message instead of inserting a temp file path.
  • Show pending clipboard image attachments in the footer as 1 image attached / N images attached.
  • Preserve normal text clipboard paste behavior.

Closes #6563.

Testing

  • npm run build
  • npm run check
  • npx vitest --run test/user-message.test.ts test/interactive-mode-startup-input.test.ts
  • ./test.sh with isolated HOME and fd in PATH
  • ./pi-test.sh -p --no-session --no-extensions --no-skills --no-context-files --offline --no-tools "Reply with exactly: source-pi-ok"

@github-actions

Copy link
Copy Markdown
Contributor

This PR was auto-closed. Only contributors approved with lgtm can open PRs. Open an issue first.

Maintainers review auto-closed issues daily. Issues that do not meet the quality bar in CONTRIBUTING.md will not be reopened or receive a reply.

If a maintainer replies lgtmi, your future issues will stay open. If a maintainer replies lgtm, your future issues and PRs will stay open.

See CONTRIBUTING.md.

@AMagicPear AMagicPear changed the title Render image blocks in interactive user messages feat(coding-agent): render image blocks in interactive user messages Jul 21, 2026
@hrmnjt

hrmnjt commented Jul 31, 2026

Copy link
Copy Markdown

+1

I like the feature; don't know if implementation is worthy of a merge. It removes the need for an extension I asked pi to build for me now. I'll drop extension in favor of a upstream maintained version. Thanks in advance!

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.

TUI drops image blocks from user messages

3 participants