Greeting Pictures
Status: ✅ GP1 + GP2 shipped (pushed in e20b5bf85, 2026-11-11); the story's opening shows the picture too (B11,
9dc58e3ad + 04bca3c29, 2026-11-22/23). A greeting carries its own picture, set in the Forge's greeting editor; it
shows beside the greeting on chat.'s Start tab, on the card of a story started from it, and at the top of the story's
opening. GP3 (the agents) is open. Built against develop at 7de29ebe4; where the code had moved since this spec was
drafted (565ef85b3), what was built and why is in Build notes (GP1 + GP2) below. Every Acceptance Criteria box stays
open until a live pass ticks it.
Overview
A character can have several greetings. Each one is a different way into the story: a tavern at night, a ballroom, a battlefield. Today every one of them looks the same from the outside, because the only picture a story ever shows is the character's portrait (or the package cover). The chat door's Your stories card is an example: 143 messages · 13h ago · Chat with Nerio · excerpt · Pick up the story, beside Nerio's portrait.
This feature lets a creator attach one picture to a greeting, such as the scene, the outfit or the mood. Two places then show it:
- Story cards. A story started from that greeting shows the greeting's picture instead of the portrait, in the chat door's Your stories and in the writing client's conversation list.
- Greeting pickers. When a reader chooses how to start, each greeting shows its picture.
It reuses the picture-linking machinery that character avatars and lorebook-entry pictures already use. It adds no new picture plumbing.
What is there today
Greetings are their own rows.
character_greetings(database/v1/03_tables_characters.sql:320-351) carries:uuid,name(60 characters),description,sort_order, soft delete;- the text, in
character_greeting_contents; - a per-greeting
tracker_json(:382-430). That column is the precedent for adding a per-greeting field.
- The character's default greeting is
characters.default_greeting_id(:79). - A package curates a subset in
package_greeting_bindings(21_tables_packages.sql:260).
A story already records its greeting.
web_conversations.greeting_idis set at create (07_tables_conversations.sql:66;functions/11_conversation_migration_functions.sql:397-402, 464-511).- The greeting's text is copied into the first message as a template, so later edits don't rewrite the story.
greeting_idis the one live pointer. It can point at a soft-deleted greeting (07:177); the row stays.
A story card's picture is the portrait.
- The chat door's card is
chatConsole/src/chat/list/StoryCard.tsx:67, which showspictureShown(story.characterAvatar, pictures)in aPictureEdgeCard.- The picture sits at the right edge at every width, 112 px on a phone and 168 px otherwise
(
shared/src/components/common/PictureEdgeCard.tsx:75-76).
- The picture sits at the right edge at every width, 112 px on a phone and 168 px otherwise
(
characterAvataris "package cover, else character avatar". The server builds it atConversationsEndpoints.cs:2796-2813fromviews/06a_conversation_list_view.sql:67.- The writing client reads the same field (
SavedChatCard.tsx:279, 300-307). - The list view carries no greeting at all.
Pictures already link to entities through one table.
gallery_image_entity_links(gallery_image_id, entity_type, entity_id)(31_tables_galleries.sql:383) records every picture-to-entity link. Used by reads it throughvw_gallery_image_usage(functions/63_gallery_image_usage.sql:69).- A "this entity's picture" field is a gallery foreign key on the entity's row, written through
PrimaryImageTarget(server/EchoOfDreams.Database/Repositories/PrimaryImageTarget.cs:31). It sets the key, writes the link row and drops the superseded one. Character avatars, lorebook pictures, lorebook-entry pictures and project covers all use it.- The lorebook-entry case is the sub-entity precedent:
40_lorebook_entry_picture_image.sql, entity type 13, with a usage branch that names the parent lorebook (63:247-255).
- The lorebook-entry case is the sub-entity precedent:
- Greeting is entity type 9 in the registry (
00_entity_registry.sql:32), but nothing uses that type for pictures yet:- The usage view has no greeting branch.
- The link route accepts characters and lorebooks only (
GalleryEndpoints.cs:1901-1909).
Greeting text can already embed pictures.
- A creator can write a
g://address in a greeting's text, and the chat door renders it inline (EMBEDDED_PICTURES, DETAILS_PAGES W-1). - The anonymous face admits those through
fn_anon_greeting_pictures: public gallery, the creator's own, all-ages, not under review. - That is an inline picture inside the text. It is not a picture of the greeting, so a card can't use it.
Where greetings are written.
- The REST group
/api/creator/greetings(CreatorGreetingEndpoints.cs:65-202). - The Forge's greeting section (
clientConsole/…/workbench/components/CharacterGreetingsSection.tsx,GreetingEditForm.tsx). - The classic editor's greetings step.
- The Workbench Assistant's
propose_greeting(EntityAuthoringToolPack.cs:296-311→IComposerStaging.StageGreetingAsync,GreetingDraft:264, apply and undo infunctions/68e/68h).
Where readers pick a greeting.
- The chat door's details page Start tab (
chatConsole/src/components/details/start/GreetingList.tsx), thenchat/create/NewStoryPage.tsx(?greeting=uuid). - The writing client's
GreetingPicker.tsxandGreetingChoiceModal.tsx. - All of them read
GreetingOverview(BrowseModels.cs:479, mapped once inCreatorEndpointHelpers.cs:604).
The gaps
- A greeting has no picture field, no link route, and no Used by branch.
- The story list doesn't read the conversation's greeting, so a card can't know which picture to show.
GreetingOverviewhas no picture, so pickers can't show one.
Design
Storage: a picture field on the greeting, through PrimaryImageTarget
character_greetings.picture_image_id INT NULL REFERENCES gallery_images(id) ON DELETE SET NULL.- It is a replay-safe
ALTER, catalog-guarded throughfn_ddl_with_lock_retry(thetracker_jsonprecedent).
- It is a replay-safe
- A new
PrimaryImageTargetinstance: tablecharacter_greetings, columnpicture_image_id,LinkEntityType = 9, row scope by greeting uuid. - Setting the picture writes the
gallery_image_entity_linksrow and drops the old one, exactly as an avatar does. - The assignability rule is the target's own. An actor may assign their own picture, or keep the one the greeting
already wears. A collaborator editing someone else's greeting can't attach a picture from their own gallery without
that picture becoming the owner's concern. This is the bug class documented at
PrimaryImageTarget.cs:13-27; keep the rule. - Used by: a greeting branch in
vw_gallery_image_usage, modeled on type 13. The parent is the character, so a picture's Used by reads "Nerio — greeting 'The ballroom'". - Why not a link-only row or a text reference:
- A
g://reference in text is an address. It breaks when the picture moves folder, and Used by can't see it (MEDIA_TOOL_PACK). - A bare link row with no foreign key can't say which of several links is the picture.
- The primary-FK shape is the one every other "this thing's picture" already uses.
- A
Rating, review and who sees what
A greeting picture is a picture like any other.
- It carries its rating and moderation state.
- It passes through the response's
picturesmap, the same per-picture rating and held-state map the card already uses (chatConsole/src/chat/list/api.ts:107, 384). - It joins the character's publish face.
- A public character's approved face already includes the pictures its greetings show (
fn_anon_greeting_pictures), so a picture-bearing greeting already re-stales the character's approval. - The greeting's linked picture is added to that digest. Changing it on a public character re-stales the approval and goes back through review, the same way editing a greeting does today.
- A public character's approved face already includes the pictures its greetings show (
| Surface | Owner | Adult reader | Protected reader (13–17) / guest / signed out |
|---|---|---|---|
| Your stories card (chat door, writing client) | The greeting picture, blurred by their own Content Filter if rated; a held picture is never drawn | Same | The anonymous face rule: only an all-ages, not-held picture stored by us. Anything else falls back to the portrait the face admits, else the placeholder. No rated bytes reach them. |
| Greeting picker (Start tab, new story, the writing client's picker) | Same as the card | Same, blurred by the reader's Content Filter | The same anonymous-face rule. A greeting whose picture the face doesn't admit shows no picture, and the greeting itself stays listed (a withheld picture never hides safe content). |
| Gallery manager, Used by | Lists the greeting under the character | — | — (the gallery is 18+, and a protected identity has no gallery) |
| Forge greeting editor (attach / change) | The picture field | — | — (protected identities can't pick from a gallery they don't have; the field is absent) |
Fallbacks. The card shows the first of these that exists:
- the package cover (a package story keeps its cover);
- the greeting picture, when the greeting and its character are live and the picture is admitted for this reader;
- the character portrait;
- the placeholder.
A soft-deleted greeting's picture is not shown. The card falls back to the portrait. A soft-deleted character's greeting picture is not shown either (B12). The card then has no portrait to fall back to, so it shows the package's cover, or the placeholder with none.
The card
- Precedence goes into the one place that builds
characterAvatar(ConversationsEndpoints.cs:2796-2813over06a_conversation_list_view.sql).- The view joins
web_conversations.greeting_id → character_greetings.picture_image_id. - The endpoint applies the fallback chain above.
- Recommend: the server also returns the chain's source as
cardPicture.source: 'cover' | 'greeting' | 'portrait', so the client never re-derives it.
- The view joins
- The sibling readers that build
character_avatarmove with it, or the two clients disagree:CreatorConversationRepository,WebConversationRepository,AdminConversationRepository. - Phone. No in-flight change was found.
StoryCardshows the same edge picture at every width, smaller on a phone.- Because the greeting picture rides the same field, it follows whatever rule that card adopts on narrow widths, including an avatar-instead-of-side-portrait rule if one lands.
- AC: a phone card shows the greeting picture in exactly the slot the portrait would take.
- Greeting picker.
GreetingOverviewgainspictureUrlplus the picture's entry in thepicturesmap.GreetingList'sGreetingWay(chat door) andGreetingPicker/GreetingChoiceModal(writing client) show it as a thumbnail beside the name, through the shared picture component (ContentImage/RatedPicture), never a rawimg.
- In the story itself: the story page header keeps the portrait. A greeting picture is the story's cover, not a replacement for the character's face in the transcript. Since 2026-11-21 (owner, B11): the story's opening shows the greeting's picture as its figure, at the top of the opening; the header is unchanged.
Creator UX: where a picture gets attached
- Forge greeting editor (
GreetingEditForm.tsx, beside the tracker start values block,GreetingTrackerStartsBlock.tsx).- A picture field that uses the shared gallery picker, the same component as the avatar field.
- It is part of the form's single Save (the form Save/Cancel rule).
- It is a surgical update: omitted = unchanged,
null= clear (Optional<int?>onUpdateGreetingRequest).
- Classic editor's greetings step: the same field, the same component.
- Media Assistant, link legs (MA4): "link this picture to Nerio's ballroom greeting" becomes a link-leg target once
MA4's link half exists (MEDIA_TOOL_PACK M3). The leg is a staged card through the greeting's
PrimaryImageTarget, so the assistant is no exception to the rules above. - The Media Assistant's notes library (MA5): a source for finding the right picture ("the ballroom one"). It is not a write path of its own.
- Workbench Assistant (
propose_greeting) and MCP:GreetingDraftgains an optional picture reference.- The apply and undo SQL (
68e/68h) set and restore it through the same target. - The proposal card shows the picture under the owner's Content Filter.
- The MCP door gets it when its greeting tool does, behind the same authorizer.
- The gallery manager: Used by lists the greeting. Removing the picture from the greeting is done from the greeting editor, not from the gallery (the gallery's own link-removal rules are unchanged).
Import, export, packages, branches
- Character card export/import (V2/V3
alternate_greetings): the format has no per-greeting picture. Export drops it, and import sets none. Documented here, no change. - Packages: a package story keeps the package cover first (precedence 1). A greeting picture shows on a package story only if the package has no cover. Owner decision G3.
- Branches copy
greeting_id, so a branch shows the same picture.
Owner decisions
Decided 2026-10-28 (owner): all five as the working defaults below — one picture per greeting, free at every tier, the package cover first, a swap on a public character re-enters review, not shown in the story header.
| # | Decision | Decided | If she picks otherwise |
|---|---|---|---|
| G1 | One picture per greeting, or several? | One. It is the greeting's cover. More pictures belong in the text (g://) or the gallery. |
Several means a link table and a "primary" flag, which is the shape PrimaryImageTarget was built to avoid. M1 grows a lane. |
| G2 | Is it free? | Free, at every tier. It is part of authoring a character (the access-first ethic). | A paid version would be a Feature Commitment checked with FeatureGate.IsEnabledAsync, never a tier check. |
| G3 | Package story: cover or greeting picture first? | Cover first. A package is a curated product and its cover is its face. | Greeting first means a package story shows the chosen opening's picture. That is one line in the precedence. |
| G4 | Does changing a public character's greeting picture re-enter review? | Yes. It joins the publish face, as greeting pictures in text already do. | No means a public character could swap in an unreviewed picture. Not recommended, because it contradicts "every public character is reviewed by a human". |
| G5 | Show it in the story page header too? | No. The card only; the transcript keeps the character's face. The opening is a different place (B11, owner 2026-11-21): it shows the picture; the header still doesn't. | Yes means the header reads the same cardPicture. That is a small fe change. |
Milestones
Each milestone is push-safe at its boundary.
| M | Delivers | Lanes | Push unit |
|---|---|---|---|
| GP1 — the field | The column, the PrimaryImageTarget for greetings, the link route widened to type 9 (access through the parent character's edit right), the Used by branch, the create and update requests (Optional), GreetingOverview.pictureUrl + pictures, the publish-face digest, the Forge and classic editor fields. |
db, dotnet, fe | one unit: no reader surface changes yet, and the editor can set and clear it |
| GP2 — the cards and pickers | The list view join, the precedence plus cardPicture.source in the list endpoint and its three sibling readers, StoryCard / SavedChatCard, and the picture in GreetingList, GreetingPicker and GreetingChoiceModal. |
db, dotnet, fe | one unit |
| GP3 — agents | GreetingDraft picture plus apply and undo, the proposal card, MCP; and the Media Assistant link leg once MA4's link half ships. |
db, dotnet, fe | one unit (the MA leg rides MA4) |
Lanes (GP1, GP2)
| Lane | Runtime | Owns | Appends to |
|---|---|---|---|
| GP1a | db | New database/v1/n_greeting_picture_image.sql (the column, the guarded ALTER); functions/63_gallery_image_usage.sql (greeting branch); functions/07_greeting_migration_functions.sql (upsert surgical on the picture); views/03_character_greeting_view.sql; the anonymous-face digest (fn_anon_greeting_pictures or its caller); DB tests |
v1_run_all.sql |
| GP1b | dotnet | PrimaryImageTarget greeting instance; GalleryEndpoints.cs:1901-1909 (type 9, access via the parent character); CreatorGreetingEndpoints.cs + CreatorModels.cs (Optional<int?> picture); CharacterGreeting.cs, GreetingViewRow, GreetingOverview + MapToGreetingOverview (pictureUrl, pictures); tests |
— |
| GP1c | fe | GreetingEditForm.tsx, useCharacterGreetingForm.ts, the classic editor's greetings step, clientConsole/src/types/entities.ts, api/greetings.ts |
— |
| GP2a | db + dotnet | views/06a_conversation_list_view.sql (greeting join); ConversationsEndpoints.cs:2796-2813 (precedence, cardPicture); CreatorConversationRepository, WebConversationRepository, AdminConversationRepository (the same derivation); tests |
— |
| GP2b | fe | chatConsole/src/chat/list/{StoryCard.tsx, api.ts}, components/details/start/GreetingList.tsx, api/member.ts, api/showcase.ts; clientConsole SavedChatCard.tsx, GreetingPicker.tsx, GreetingChoiceModal.tsx; fixtures (chat/test/storyServer.ts) |
— |
Contracts
character_greetings.picture_image_id INT NULL(FK,ON DELETE SET NULL). The link row is(image, 9, greeting id).: not built. The greeting PUT is the write path (B2).POST / DELETE /api/gallery/entity-images/greeting/{greetingUuid}UpdateGreetingRequest.PictureImageUuidandGreetingRequest.PictureImageUuid(both PUTs, and the character-scoped create) areGuid?: null keeps,Guid.Emptyclears, a value sets (B1).GreetingOverview.PictureUrl : string?withPictureContentRating,PictureModerationStatus,PictureContentTypebeside it (B3);OwnedGreeting.PictureImageUuidon the creator reads.- Story list row:
cardPicture: { url, source: 'cover' | 'greeting' | 'portrait' } | null, withcharacterAvatarkept for one release so an old client keeps working.
Build notes (GP1 + GP2)
Built 2026-11-10 as one push unit. The spec was drafted against 565ef85b3, and these are the places the code had moved,
with what was built instead and why.
Numbers. Migration 417_greeting_picture_image.sql (the column, the partial FK index), wired in v1_run_all.sql beside
its sibling 40_lorebook_entry_picture_image.sql: after 03 and 31, before functions/07, 63, 65, 82a, 94 and views/00. No new
functions file: functions/63, 64, 65, 82a, 94 and 146 and views/03 and 06a change in place (CREATE OR REPLACE, the views' own
drop and create). functions/146 names a greeting's link row in the media console's "used in" by its character.
GP1, what landed.
character_greetings.picture_image_id, written only inside the greeting save. The save takes the greeting'sPrimaryImageTarget(CreatorCharacterRepository.GreetingPicture), so the FK and its link row (entity type 9) move together and the image is scoped to the actor: their own gallery picture, or the one the greeting already wears. A picture that stops being assignable between the route's pre-check and the write rolls the whole save back (GreetingUpsertResult.PictureRefused), the entry save's savepoint shape. A picture-only save moves the greeting's revision (updated_at) and stamps the character'scontent_updated_at(functions/94's greeting touch).- Both PUTs (
/api/creator/greetings/{id}and/api/creator/characters/{id}/greetings/{greetingId}) and the character-scoped create takepictureImageUuid. A refusal is403 image_not_in_galleryatpictureImageUuid, the siblings' code, and nothing in the request is written. - The creator reads (
OwnedGreeting) carrypictureImageUuidplus the picture's card URL and rating triple. A held picture comes with its review state and no URL, so it stays clearable. - Used by: a greeting arm in
vw_gallery_image_usage(primary plus linked, deduplicated), parent = the character, so a row reads "Nerio / The ballroom" and leads to the character (imageUsageRoute.ts). A soft-deleted greeting uses nothing. One whose character is soft-deleted still uses its picture, as its owner's greeting on no character: private, with no parent (filed report #21, functions/63).fn_get_entity_linked_imagesknows a greeting's primary, and the moderator's unlink (fn_admin_unlink_image_from_entity) clears a greeting's picture. A hard-deleted greeting takes its link rows with it. - The Forge greeting editor has the picture field, staged in the form's one Save like every field (CharacterForm's pattern:
pick stages the uuid, Clear stages the nil uuid, Save sends only what changed). The field's glue was copied in six Forge
editors, so it is now one hook,
forgeConsole/src/workbench/editor/usePictureField.ts, used by the character avatar, lorebook picture, entry picture, package cover, persona template picture and the greeting picture. The project settings cover keeps its own shape. Each editor keeps its ownImagePickerFieldcall (the shared component).
GP2, what landed.
conversation_list_viewjoins the story's live greeting, still on the story's character, and its picture.ConversationsEndpoints.RowCardPictureis the one derivation every story-list reader takes (/page,/groups, the hub's Continue card): the cover, else the greeting picture (not held, and for a protected reader admitted), else the portrait. The list row carriescardPicture: { url, source }, andcharacterAvatarcarries the same URL, so an older client, the writing client'sSavedChatCardamong them, shows the greeting picture with no change of its own.- The reader pages' greetings (the character page, its details modal, the package page) carry
pictureUrlplus the rating triple through one mapper (MapToReaderGreetingOverview), under the protected reader's rule. The chat door's Start tab (character and package) draws it beside the greeting's name through the sharedGreetingList's newpictureslot and the details tiles' square (Thumb, rated). A greeting whose picture is held or withheld is listed exactly as before. - F142 (owner, 2026-11-19: "That greeting picture is TINY and not even possible to click!"). The Start tab's picture
is now drawn at its own shape held to the slot band (1:2 to 2.4:1), whole, fitted inside a frame on the reader
thumbnail's scale (
chatConsole/src/styles/pictures.css, the closed book's opening's), sized by the list's container so the details modal, the side drawer and Quick start's ways in follow: a wide list 8rem x 8rem (3:2 is 128x85), a list of 40rem or less 6.5rem x 6.5rem, a list of 34rem or less (a phone) 4.5rem tall and up to 7.5rem wide — the opening square's height, so 3:2 is 108x72, 2.4:1 120x50, 1:1 72x72 — and never narrower than 3rem (a tall picture's veil keeps its glyph). A picture with no stored size (a link import is never measured) reserves a 3:2 box and settles to the shape it loads at. It opens whole in the reportable viewer (OpenablePicture, shared with the lorebook entry pictures). The reader pages' greetings gained what the viewer opens —pictureImageUuid,resolvedPicture,pictureWidth,pictureHeight— through the one reader mapper (MapToReaderGreetingOverview), only beside apictureUrlthe reader was handed: an adult every size, a protected reader the card and avatar at the best ladder and no original, a held or withheld picture nothing.greeting_viewcarries the original's measured size (picture_width,picture_height). A read without the new fields (an older server) still draws the picture at its size as a plain picture: with no gallery id there is nothing to open or report it by.
Divergences from the spec, each decided here.
- B1. Clear is
Guid.Empty, notOptional<Guid?>. Every sibling picture PUT (character avatar, lorebook, entry, package cover) spells "clear" as the nil uuid on aGuid?, and the Forge's picture field sends exactly that. One field with a different clear spelling would be the bug. The Contracts line below says so. - B2. No link route.
/api/gallery/entity-imagesis the extra pictures carousel and admits characters and lorebooks only. Lorebook entries aren't on it either. A greeting's picture is a primary picture, and its only write path is the greeting PUT throughPrimaryImageTarget. The route was not widened. - B3. No
picturesmap on the greeting reads. That map is the story list's contract. A greeting carries its picture's state per record, as a linked lorebook does (LinkedLorebookOverview). - B4. The public face.
fn_anon_greeting_picturesdoesn't exist at HEAD: the text-picture half of the face was held out of a release (8ad71a7dc). So a greeting's own picture joinsfn_anon_projectionas apicturekey, present only when the greeting has one. A greeting with none digests byte for byte as before, so no settled approval stales andvstays 3. A greeting that gains, loses or swaps a picture a visitor may see changes the digest and the character goes back to public-visibility review (G4). Setting one no visitor may see addspicture: nulland stales it too (fail-closed). The public-visibility review shows the greeting's picture first in that greeting's picture row, and the publish review's character card lists its greetings' pictures beside its own, each captionedGreeting picture · {name}and rateable from the same grid. Re-screening edits to an already-approved public character (UPDATE_REVIEW slice 0b) isn't built, so for a public character G4 holds through the face digest and the content stamp, as every other greeting edit does today. - B5. The story card. Decided (owner, 2026-11-11): "a Story started with a specific greeting should use the greeting
picture if available", with the profile picture as the fallback. The card draws the server's
cardPicturewhole (the package cover, else the greeting's picture, else the portrait:RowCardPicture) as the details tiles' small square (3.5rem) beside its title, at every width, under chat.'s picture rule. It brings back the portrait the card dropped on 2026-10-27, now as the fallback. - B6. The "three sibling readers". At HEAD,
CreatorConversationRepositoryreads the creator's review of a submitted story,AdminConversationRepositoryreads the staff list's character column, andWebConversationRepository's shared and public story reads are the story's own page. Each is the story's face in its header, not a story card, so each keeps the portrait (G5). Every reader of the story list goes throughRowCardPicture, so no two list surfaces disagree. The Behavior line about the three readers is re-scoped to that. - B7. clientConsole is frozen (owner, 2026-10-31). Not built: the classic editor's greetings step,
GreetingPickerandGreetingChoiceModal.SavedChatCardshows the greeting picture throughcharacterAvatarwith no change (above). The new consoles carry the feature: the Forge for writing, chat. for reading. - B8. Standalone greetings (on no character, the package-level ones) get no picture field. A package story shows the package cover first (G3), so it would show nowhere.
- B9. Proposals. A contributor's greeting form shows the picture field disabled, with the reason ("A greeting's picture
can't be proposed yet …"), and a draft never carries the key. The server still refuses a picture key on a greeting
proposal (
GreetingSubEntityProposalTests,GreetingSubProposalEndpointTests) until GP3. - B10. The visitor showcase (signed out) draws no greeting pictures. Its pictures wait on the owner's call (DETAILS_PAGES.md → Open questions), and the face carries the picture for its digest and the review only.
- B11. The story opens with the picture (owner, 2026-11-21: "Greetings with pictures: make the chat start with the
picture visible. Find a nice placement for it - not overwhelming, but also not too small to be barely seen.").
- Server.
conversation_viewjoins the story's greeting's picture (greeting_picture_*: only a live greeting still on the story's character, and that character not deleted, B12) with its measured size and avatar crop. The story's own read (GET /api/conversations/{id}) carriesopeningPicture(ConversationOpeningPictureDto), built byOpeningPictures.For: the view's columns run through the one reader mapper (MapToReaderGreetingOverview), so the opening follows the Start tab's rule exactly — held: nothing, for the owner too; a protected reader: all-ages, clear and stored by us, at the protected card address, never an original; an adult every size. The focal point (PictureFocus.FromCrop) rides beside it. Null on a story in Trash. - chat. The opening row (
openingRowId: the first row, no model, the whole story loaded) draws the picture above its words (ReplyRow'sleadslot,OpeningPicture, built on the sharedOpenablePicture— lifted out of chat.'s pages for its second user, the chat module), on that row only. Its own shape held to the slot band (usePictureFrameRatio, shared with the Start tab'sGreetingPictureBox), drawn whole inside the band and cropped on the focal point past it, never wider than the column, at mostclamp(10rem, 23svh, 21rem)tall on a desktop (about a third of the story's height; a tall picture may widen to 9rem, at most a quarter past the cap) andclamp(10rem, 29svh, 18rem)on a phone, where a 3:2 picture fills the column and a portrait keeps its shape (cropping it to the column's width cut a 4:5 to half its height — ui-adversary). Until its shape is known it fills a 3:2 box on the focal point. A rated picture wears the veil and reveals in place (the box named with the rating); the next press opens the reportable viewer (OpenablePicture'srevealInPlace), unveiled. A failed load leaves no frame. A story that holds its opening alone (one row) with no turn in flight lands at the opening's top, so the picture is on screen however long the greeting runs, and with no "Back to the latest" (there is no later row). The landing is held as a place, never as a reader (useTranscriptScroll'sholdLandingandatHeldLanding, this landing's alone: Read the last few turns and a chapter jump hold nothing): with the top on it or above it, the composer laying out, a resize (across 768 too) and the row written again leave it there. Scrolled below, the reader is any reader; back at the very top, held again. No scroll ends the hold, whoever made it: only a send or a learned turn does. Edit opened from that place gives it back as it closes, saved or cancelled, because the editor scrolls its Cancel and Save into view and the top never returns by itself (measured in Chrome, 2026-11-22). The picture withdrawn under a reader moves nobody. Back while the first reply is written (one stored row, the reply streaming under it), it is at the end with "Back to the latest" offered from higher up; a turn learned after the landing takes a reader at that place to the end, and leaves one below it. A reveal is of that picture at that rating: re-rated, it is veiled again. - Not here: the published / shared reader (someone else's story) and the read-only story in Trash; VN and the RPG console render no greeting opening.
- Server.
- B12. A deleted character's greeting picture fields are their owner's alone (2026-11-22). Deleting a character leaves its
greetings on it for a restore (filed report #21). Until then no reader is handed a greeting's picture field: not a story's opening
(
conversation_view), not its card (conversation_list_view), not the page of a package that keeps the deleted lead (/packages/{id}/pageand/details, where the greetings stay listed, each Start saying why it can't, P-183). Who holds the greeting itself still reads them in its editor (its owner, a project that holds the greeting as an item, a grant on the greeting: the source tier,fn_get_entity_accesstype 9), and so does staff review. A character made private is not this case: its stories keep the picture, as they keep its name and portrait. The deleted character's uuid goes with the picture (F243): the package's greetings and a story's re-pick list still list them, naming no character. B12 is about the field, not the picture: a picture written into a greeting's text (gi://,g://) is judged per reader like a picture written into any text (POST /api/pictures/resolve,fn_resolve_picture_refs), because a picture's audience comes from its rating and never from where it is placed (fn_image_object_audience). So the text of a deleted character's greeting, wherever it is still shown (a package's greetings, a story's first message), keeps its pictures for whoever that rule admits, as the same reference in anyone's text would (F220, 2026-11-26).
Cost
- No LLM calls. One extra join on the story list and on the greeting reads.
- Roughly 3 agent-days for GP1 + GP2. GP3 is about one more day, plus the MA4 dependency.
Non-Goals
- Several pictures per greeting (G1).
- A picture per message or per scene. Scenes are scene-aligned summaries' unit, not this one's.
- Generated greeting pictures. Generation is the Media Assistant's MG milestones, and its output lands in the gallery like any other picture, from where it can be attached here.
- Changing the transcript's portrait (G5).
- Card-format export of greeting pictures.
Acceptance Criteria
The feature is not done until every box below is verified ✅ against the running product.
User use cases — satisfiable + accessible (verify by driving the UI, not the code):
- As a creator, I attach a picture from my gallery to a greeting in the Forge's greeting editor, save, and see it there when I reopen the character, with no setting to find.
- As a creator, I change or remove a greeting's picture from the same field, and the form's single Save commits it.
- As a reader, on a character's Start tab in the chat door, each greeting with a picture shows it beside its name.
- As a reader, I can open a greeting's picture whole from its way in (click, Enter or Space) on the character's and the package's Start tabs, in the details modal, the side drawer and Quick start's ways in; Escape closes the viewer and leaves me on the picture, and I can report it there (F142).
- A greeting's picture is drawn at its own shape (held to 1:2–2.4:1) at the reader thumbnail's size, beside the name and never on a line of its own at any width; a greeting without one keeps no empty box (F142).
- As a reader, after I start a story from the ballroom greeting, my Your stories card shows the ballroom picture, not the portrait. The writing client's conversation list shows the same.
- As a creator, a picture's Used by in the gallery lists the greeting under its character.
Behavior:
- Setting a greeting's picture writes exactly one
gallery_image_entity_linksrow for it. Changing it replaces the row, and clearing it removes the row. - The story card follows cover → greeting picture → portrait → placeholder, and
cardPicture.sourcenames the step it used. - The three sibling conversation readers return the same card picture as the list endpoint for the same story.
Re-scoped (B6): every story-list reader (
/page,/groups, the hub's Continue card) returns the same card picture for the same story. The story's own page, its creator review and the staff list keep the portrait (G5). - Changing a public character's greeting picture marks its approval stale (G4).
Invariants that must stay true (carve-outs):
- A story from a greeting with no picture shows the portrait, exactly as today.
- A package story with a cover shows the cover (G3).
- A protected reader, a guest or a signed-out reader never receives a rated or held greeting picture's URL. The greeting is still listed and the card falls back to the admitted portrait or the placeholder. Verify logged out and as a 13–17 account.
- A rated greeting picture is blurred for an adult reader exactly as their Content Filter blurs that rating elsewhere. A held picture is never drawn, for the owner too.
- A collaborator can attach only a picture from their own gallery or the one the greeting already wears, the same
rule as every other picture field (
PrimaryImageTarget); a stranger's picture is refused (owner, 2026-11-11: "it should behave the same as everywhere"). - The first message of an existing story is unchanged. A greeting picture never rewrites story text.
- Organizing pictures in the gallery stays free, and attaching one to a greeting costs nothing (G2).
Edges:
- A story whose greeting was soft-deleted shows the portrait.
- A story whose character was soft-deleted shows neither the greeting's picture nor the portrait on its card (a package story keeps its cover).
- A package whose lead was soft-deleted still lists that lead's greetings, with no picture and without the lead's uuid; with a live lead they keep both. A story's re-pick list names a deleted character no more either.
- Deleting the picture from the gallery clears the greeting's field (
ON DELETE SET NULL). The card shows the portrait and the editor shows the empty field, not a broken image. - A greeting picture moved to another gallery folder still shows (the link is by id, not by address).
- On a phone, the card shows the greeting picture in the same slot the portrait takes. As built (B5, waits on the owner): the card has no portrait slot since 2026-10-27. A greeting picture sits beside the title as a small square at every width, a phone's included.
- An imported V2/V3 card sets no greeting picture, and export omits it without error.
The story's opening (B11, owner 2026-11-21):
- As a reader, a story I start from a greeting with a picture opens with that picture at the top of the opening, readable at a glance and never the whole screen (desktop about a third of the story's height; phone up to the column's width under a cap, a portrait at its own shape), at 1920, 1366, 1024 and 390.
- Clicking or tapping it (Enter, Space) opens the reportable viewer; a rated one first wears the veil with its own reveal, and the viewer opens it unveiled after that.
- It shows on the opening only, never on a later turn; reload and a branch keep it.
- A held picture, one withheld from a protected reader, a soft-deleted greeting's, a deleted character's and a deleted picture draw nothing (no empty frame); a story whose greeting has no picture opens exactly as before.
- A fresh story whose greeting runs longer than the screen opens with the picture in view, and it stays there while I am at the top: when the composer grows, the region is resized or turned across 768, or the opening is edited from there and saved or cancelled. Scrolled down I am any reader; back at the very top I am held again. Red at 844x390 (Chrome, 2026-11-22, with the verify-email notice up): the top holds, but the story's region is 54 px under the composer and 48 as it grows, so the picture can't be seen. The page's layout, still open.
- Back while the first reply is written, I am at the end, and scrolled up I am offered "Back to the latest".
- A picture I revealed that is then rated differently is veiled again.
- Every other landing is as it was: a story with rows after the opening opens at the latest, and a reader landed at the end by Read the last few turns or a chapter jump stays at the end as the composer grows.