feat(mobile): image picker button (reuses sendPasteImage)#91
Merged
Conversation
Adds a 图片/Image button next to 粘贴/Paste in the mobile control panel. Tapping it opens an iOS/Android-native picker via a hidden <input type="file" accept="image/*">; the chosen file is forwarded to the existing SessionConnection.sendPasteImage flow that the desktop already routes through TypePasteImage → desktop host → temp file + native clipboard + Ctrl-V to the PTY. No new dependency, no new wire protocol — only the renderer entrypoint. The button respects the same gate as paste-text (canSend = driver + controlMode + non-view-only). The hidden input is reset to '' after each change so picking the same file twice still fires.
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
Adds an Image button to the mobile control panel so users can hand pictures to AI CLIs (claude, codex, etc.) the same way they do from desktop. No new transport — the chosen file goes through the existing `SessionConnection.sendPasteImage` → `TypePasteImage (0x33)` → desktop PTY host's "save tempfile + put on native clipboard + send Ctrl-V" path that's been in production since the desktop paste-image work.
Test plan
Out of scope