Skip to content

feat(claude): support image attachments - #192

Merged
owainlewis merged 1 commit into
mainfrom
codex/187-claude-images
Aug 4, 2026
Merged

owainlewis merged 1 commit into
mainfrom
codex/187-claude-images

Conversation

@owainlewis

Copy link
Copy Markdown
Owner

Closes #187

Summary

  • send validated images to Claude Code as ordered base64 content blocks through native streaming JSON input
  • preserve the existing text-only command and single-result JSON contract
  • support new and resumed sessions with typed, base64-safe failures and the shared raw 6 MiB limit
  • concurrently write image input and drain Claude output to avoid pipe deadlocks from verbose startup hooks
  • enable Telegram images for every supported backend and document the Claude transport

Verification

  • cargo test --locked claude
  • cargo test --locked gateway
  • cargo fmt --all --check
  • cargo clippy --locked --all-targets -- -D warnings
  • cargo build --locked
  • cargo test --locked (456 tests across unit and integration targets)
  • deadlock regression: 10,000 startup events before reading a 1 MiB image payload
  • independent review: initial I/O finding fixed; final review has no findings

Manual verification

Not run: live Telegram routing requires a configured vision-capable Claude Code provider.

@owainlewis

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: d494fe5ef2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@owainlewis
owainlewis merged commit 9481da5 into main Aug 4, 2026
4 checks passed
@owainlewis
owainlewis deleted the codex/187-claude-images branch August 4, 2026 20:28
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.

Support Telegram images through Claude Code

1 participant