[Tiny Place] Feed: posts don't support images/media (no media field in contract)
Part of #4776 · Tiny Place epic #4190 · section §2 Feed.
Audited vs upstream/main 3cca4f3f3 (code-level, read-only).
Problem
Posts do not support images/media end-to-end. The audit item "Images / media in posts" fails at the contract level, not just the UI.
Evidence
- SDK type
GqlPost(vendor/tinyplace/sdk/rust/src/types/graphql.rs:26-46) carries onlybody,content_type, counts,author, etc. — no image/media/attachment field. - UI renders the post body as plain text:
app/src/agentworld/pages/FeedSection.tsx:462—<p ...>{post.body}</p>. The only<img>in a post is the author avatar (:410,post.author.avatarUrl). createPostsends{ body, contentType }only (FeedSection.tsx:256→manifest.rs:4659→ SDKfeeds::create_post); there is no upload/attachment path.
Expected vs actual
- Expected: posts can include images/media and render them in the feed.
- Actual: posts are text-only; no media field exists in the SDK types, handler, or UI.
Notes
Likely a not-yet-built feature (may relate to design-port #3853, which does not cover the data contract). No code change proposed in this audit pass; flagging the contract-level gap so it can be scoped (SDK type + handler + composer upload + renderer).
Blocked on an upstream tiny.place contract change — cannot be fixed in this repo. Investigated; recording the findings so this is not re-attempted.
What exists today:
vendor/tinyplaceis a git submodule (gitlink160000, pinned at39ab493foftinyhumansai/tiny.place;Cargo.toml:509path-deps the Rust crate into it). An openhuman PR can only bump the submodule pointer to a commit that already exists upstream — it cannot edit the SDK'sPostCreate/Post/GqlPoststructs.- Media inputs (
image/gifUrl) exist only on the TypeScript write side (feeds.ts,validation.ts). The Rust SDK — the one openhuman actually calls — never received them. - No read-side type carries media at all: neither
PostnorGqlPost, in TS or Rust. tiny.place's own reference website renderspost.bodyas plain text and its composer sends{ body }only (website/src/components/feed/PostCard.tsx:140,FeedComposer.tsx:30).
Why no PR was opened: an openhuman-only implementation would be either a UI upload wired to a Rust SDK that silently drops the field, or a raw-HTTP bypass of the typed SDK. Either way the read side surfaces nothing — an uploaded image would never render in the feed. That is UI for something the backend cannot serve back, so it was not built.
To actually close this:
- tiny.place (the
tinyhumansai/tiny.placerepo) — addimage/gif_urlto the Rust SDKPostCreate; add a media/attachment field to the read-sidePost+GqlPost(TS and Rust); cut a release. - openhuman — bump the
vendor/tinyplacesubmodule pointer, then wire the handler (manifest.rs), composer, and renderer (FeedSection.tsx).
Step 1 is the blocker and is outside this repo's control. Suggest either scoping the contract work on tiny.place first, or converting this into a tiny.place-first tracking item. Related audit tracker: #4776.
Resolving as web-only by design in #5295 — the same resolution as the sibling marketplace-seller gap (#4920 / PR #5193).
Re-verified the blocker against tiny.place main (d2545054, the commit openhuman already pins): PostCreate, Post, and GqlPost in the vendored Rust SDK still carry no image/media/gif field, and the tiny.place backend serves none. vendor/tinyplace is a pinned submodule, so the contract cannot be added from this repo. An in-app upload would round-trip to nothing and render nowhere.
Rather than ship UI against a non-existent contract, #5295:
- adds a small note + CTA at the bottom of the feed composer (
FeedSection.tsx) that openshttps://tiny.placevia the existingopenUrl()helper, so a would-be media poster is pointed to the web flow instead of a dead end; - records the web-only scope in the
FeedSection.tsxheader docstring andsrc/openhuman/tinyplace/mod.rs.
No SDK, core handler, or submodule-pointer change. The corresponding #4776 §2 "Images / media in posts" item is N/A (web-only).
To genuinely close in-app later (tiny.place-first, outside this repo): backend persists + serves a post-media field → SDK adds PostCreate.image and read-side Post/GqlPost media → openhuman bumps the submodule pointer and wires the composer upload + renderer.