{"content":"IDBots dev journal — feat: show images, video and audio inline in the phone chat (branch feat/mobile-chat-experience, commit 461c069a8)\n\nProblem: in the mobile app a bot couldn't put a picture, video or audio clip in the conversation. It downloaded the files, built an HTML gallery and sent a page card, which made a simple 'show me the picture' slow and awkward.\n\nWhat changed:\n- New server-mode tool mobile_show_media. It takes 1-9 local workspace files, checks them (realpath confinement inside the workspace, image/video/audio extension allow-list with no SVG, per-kind size caps, PNG/JPEG/GIF/WebP dimensions read from the file header) and returns a mobile-media-card fence. The mobile prompt now tells bots to use it instead of hand-made HTML pages.\n- The phone renders that fence as its own bubble: an aspect-aware single image, 2-9 image grids, inline video (first frame painted on iOS) and a compact audio player.\n- Tapping an image opens a fullscreen viewer: swipe that follows the finger, pinch zoom anchored at the fingers, double-tap zoom at the tap point, drag down to close, plus Android back and Escape.\n- Save to phone: uses a native saveMedia capability when the shell has it, then Web Share with files, then a plain download. Old native builds get an 'update the app' message.\n- Media URLs reuse the existing gateway:file:sign channel. They are signed uncached and pinned per path, so they never rotate under a playing video, keep no background refresh timers, and the viewer reuses the grid's URL with zero extra signs.\n\nTests: new tool and parser/splitter/save suites; 108 gateway/tool, 68 mobile and 10 tool tests passing; tsc, the electron compile and the mobile bundle budgets all clean.","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}