Skip to content

Spec: mobile chat backgrounds — local images, fill and background fade #2118

Open

Description

@DoodleBears

Problem Statement

The Human wants a mobile conversation to feel like a place shared with a PersonaBot. A character illustration, game card or personal picture can create that atmosphere, but the mobile conversation currently uses the theme canvas and has no independent chat-background setting. Existing Host appearance images decorate a different surface and do not solve this need.

The Human also needs to keep messages readable. A picture should not require an external editor merely to reduce its visual strength, and adjusting the background must not fade message text or controls. Different conversations may need different pictures while ordinary chats should inherit a convenient default.

Solution

Add device-local chat backgrounds to the native iOS and Android app: Default, Solid color, or Image, with Fill / Fit, image positioning and one Background fade control. The initial image setting uses Fill, a centered composition and 60% fade; 60% is a starting preference, not a guarantee of readability for every image.

The Human opens the current conversation's profile/details and chooses Chat background, or opens Settings → Appearance → Default chat background. Changes stay in a preview until Done succeeds. A conversation override wins over the device-wide default; Use default background removes that override.

The picture and its settings remain on this phone. Chat backgrounds do not change a PersonaBot's Avatar, Profile Banner, Soul, Memory, messages, model or Host configuration. They do not travel in PersonaBot exports.

User Stories

  1. As a mobile Human, I want the current theme background to remain unchanged until I choose a background, so that the upgrade preserves my existing conversations.
  2. As a mobile Human, I want to choose Default, Solid color or Image, so that I can choose between a quiet canvas and a personal picture.
  3. As a mobile Human, I want to choose a still image from my phone's photo picker, so that I can use a character illustration, game card or personal picture.
  4. As a mobile Human, I want to replace a picture without losing my previous saved background before I confirm, so that exploring alternatives is reversible.
  5. As a mobile Human, I want Fill to cover the available background without stretching the picture, so that the conversation has a continuous backdrop.
  6. As a mobile Human, I want Fit to show the entire picture with a theme-appropriate matte, so that an important part of the illustration is not cropped away.
  7. As a mobile Human, I want to drag the picture in preview when cropping is possible, so that the character's face can stay in the visible part of the conversation.
  8. As a mobile Human, I want my image position to survive reopening the chat, so that I do not have to compose it again.
  9. As a mobile Human, I want a Background fade slider from 0% original image to 100% theme canvas, so that the direction of the control is understandable.
  10. As a mobile Human, I want the fade control to affect only the background, so that messages, attachments, buttons and the composer remain readable and usable.
  11. As a mobile Human, I want the background veil to follow light and dark appearance, so that switching theme does not leave a bright veil in a dark conversation.
  12. As a mobile Human, I want to inspect the draft with representative short and long messages in both appearances, so that I can judge readability before saving.
  13. As a mobile Human, I want Done to apply and persist the previewed choice, so that the conversation matches what I approved.
  14. As a mobile Human, I want cancel, back and dismiss to leave my saved choice unchanged, so that previewing never commits an accidental edit.
  15. As a mobile Human, I want a clear error when a picture cannot be copied, decoded or saved, so that I know the background was not successfully changed.
  16. As a mobile Human, I want a failed save to keep my last successfully saved background and allow a retry, so that a storage failure does not destroy my setup.
  17. As a mobile Human, I want a device-wide default background, so that I can style ordinary chats once.
  18. As a mobile Human, I want separate overrides for a Human–PersonaBot DM and a Group, so that each conversation can have its own atmosphere.
  19. As a mobile Human, I want changing the default to update only conversations that inherit it, so that explicitly customized chats stay as I chose them.
  20. As a mobile Human, I want Use default background to restore inheritance for one chat, so that I do not have to reproduce the default by hand.
  21. As a mobile Human, I want to restore the original theme background globally, so that I can return to the app's original appearance.
  22. As a mobile Human, I want backgrounds isolated by the paired Host and Channel identity, so that similarly named chats or Channels on different computers never share an override by mistake.
  23. As a mobile Human, I want saved pictures to remain available after an app restart or deletion of the photo-library original, so that an already saved background is dependable.
  24. As a mobile Human, I want changing my background to stay local to this phone, so that it does not silently upload a personal picture or change another device.
  25. As a mobile Human, I want a missing or damaged saved image to fall back to a readable theme background with a way to replace it, so that I can continue chatting.
  26. As a mobile Human, I want the background composition to remain stable when the keyboard opens, messages stream or I scroll history, so that the image does not jump or move with each message.
  27. As a mobile Human, I want large system text, screen readers and standard native controls to work in the editor, so that personalizing the conversation does not reduce accessibility.
  28. As a mobile Human, I want the same saved preference semantics on Android and iOS, so that the feature behaves consistently while each platform keeps its native picker, navigation and controls.

Implementation Decisions

  1. One mobile presentation owner. Add a cohesive chat-background capability beside the existing mobile appearance/preferences owners. It owns resolution, draft-to-saved transitions, validation, owned image references and persistence results. Reuse the existing theme, native settings/sheet patterns and local-file facilities. Inject storage/image operations at this owner boundary for deterministic tests; screens must not independently manage competing preference stores.
  2. Authority remains local. This is application-defined mobile presentation state, consistent with the existing mobile design and local-presentation decisions. There is no new Host bridge method, HTTP route, Bot tool, model action, device permission authority or remote message store. It neither modifies Host appearance nor overloads PersonaBot Profile Banner. Any later expansion of that boundary requires a separate decision and the repository's CLI-parity obligations.
  3. Explicit inheritance. Store one device-wide default and optional overrides keyed by the existing stable saved-Host identity plus Channel ID, never a Display name or connection URL. The global Default means theme canvas. In the conversation editor, Default / Use default background means no override. Resolve an explicit override first, then the global choice, then the theme canvas. Renaming a PersonaBot or Group does not change its choice; a newly created Channel does not inherit a different Channel's override.
  4. Background choices. A saved choice carries its mode and only the fields needed by that mode: solid color, or an owned still-image reference, Fill/Fit mode, normalized image position and fade percentage. Defaults and missing fields are versioned and normalized. Clamp valid slider/position ranges; reject invalid incoming edits and handle unknown or damaged persisted data with a safe theme fallback. Do not confuse a missing override with an explicit solid color.
  5. Composition. Fill preserves aspect ratio and crops overflow. Fit preserves the whole image and uses the resolved theme canvas as its matte. Position is centered initially and draggable only along axes with movable overflow; preserve a normalized focal position instead of device-specific pixels. Respect image orientation before calculating composition, and keep positioning meaningful across viewport changes.
  6. Layering. Resolve the theme canvas, then the image, then a theme-colored veil, then ordinary conversation content. Fade controls veil opacity: 0% leaves the original image visible; 100% resolves visually to the theme canvas. Light appearance uses the light canvas and dark appearance the dark canvas. This control is only shown for Image mode. Solid colors are explicit Human choices. Message text, bubble fills, attachments, headers and composer do not inherit wallpaper opacity or a wallpaper filter; reuse the app's semantic content surfaces and contrast rules.
  7. Preview is transactional. Picking, positioning, choosing colors, changing fade and switching preview appearance only affect the editor draft. Done validates and durably saves before the committed conversation choice changes. Cancel, navigation back and sheet dismissal discard the draft. Previewing light/dark does not change the app-wide appearance preference. A failed copy/decode/write keeps the previous committed choice and a retryable draft/error; never claim a successful save after an ignored storage error.
  8. Own the imported image. Use the existing native photo-picker approach and copy/normalize a supported still image into app-owned persistent storage. A temporary picker URI is not a durable fallback. Bound decode/storage work to a documented display-resolution budget. Keep references portable across app-container path changes. Finish staging the new image and metadata safely before replacing the old choice; reclaim only unreferenced assets owned by this feature, including abandoned draft assets, while preserving pictures referenced by a global choice or another override. Do not touch the photo-library original or unrelated files.
  9. Failure and offline behavior. Editing an existing local choice and previewing sample content do not require model calls or a working Host connection. Resolving a conversation still uses its known Host/Channel scope. A missing image uses the theme canvas and offers replacement without clearing unrelated preferences. Persistence hydration must not race and overwrite a newer explicit edit or briefly apply another Host's override.
  10. Stable conversation integration. Mount the image as a stable noninteractive background, outside per-message rendering and outside scroll content. Keep its composition independent of keyboard/composer height changes. Changing wallpaper must not remount the timeline, change scroll position, cancel a model turn, alter a message or draft, or block attachment and approval controls. Follow the existing native keyboard and system-text contracts.
  11. Native editing surface. Reuse the app's platform-appropriate sheet/settings components, semantic tokens, localized strings and accessible controls. Provide clearly labeled type and fit choices, an accessible fade value, photo replacement, position preview, Done and restore actions. Keep the composer and primary actions reachable with the keyboard and large system text. Restore in a chat removes the override; restore globally returns to the theme canvas, with both operations previewed and committed through Done.
  12. Deliver a runnable vertical slice first. Start with one actual DM: choose an image, preview Fill and fade, save, cold-reopen and show the persisted result through the same owner and native UI. Obtain Human feedback on that working slice before broadening to the global-default/override experience, Solid/Fit/position variations and Group coverage. These are delivery steps within this specification, not separate Host foundations or disconnected mockups. Follow existing shared-device QA coordination and leave unrelated device sessions untouched.

Testing Decisions

The Human confirmed the principal acceptance journey: select on the phone → preview → save → reopen and retain, plus single-chat override behavior, cancellation, light/dark appearance and keyboard transitions, qualified separately on Android and iOS.

  • Primary automated seam: the mobile chat-background owner as consumed by the editor and conversation. Drive public actions and observe effective background, persistence/readback and visible UI. Avoid testing private helper sequences, serialized object ordering or snapshots that merely repeat the implementation.
  • Preference behavior. Cover an unchanged first launch, saved image/solid choices, cold hydration, global inheritance, explicit overrides, clearing an override, renamed Channels and equal-looking Channel IDs on different Hosts. Updating the global choice must leave overrides untouched. A late load must not overwrite a newer edit.
  • Transactional behavior. Start with a saved image, preview a replacement and cancel through each supported exit. Confirm the same saved choice remains. Inject copy/decode/metadata-write failure and confirm the old choice and old image remain usable, no success is reported, and retry can succeed. Cover shared asset references and removal of only abandoned/unreferenced owned assets.
  • Native file lifecycle. Verify persisted images after a process restart, after deleting the picker/library original, and after an app-container path rebasing scenario. Missing/corrupt files produce a readable fallback with replacement available. Use injected file boundaries for deterministic failure cases and a real picked picture for the native lifecycle proof.
  • Preview and rendering. Exercise Default, Solid and Image; Fill/Fit for tall and wide images; movement at crop limits; 0%, 60% and 100% fade; light and dark appearance. The image stays proportional, Fit retains all edges, 100% matches the theme canvas, and message/attachment/control opacity is unaffected. Exact numeric veil behavior belongs in deterministic coverage; visual quality needs real native inspection.
  • Conversation integration. With an existing committed timeline and a live draft, change the saved choice and confirm history, composer draft and scroll position survive. Stream a reply, read older messages and open/close the real keyboard; the background remains stable and the latest-message navigation, text entry and approval/attachment actions remain operable.
  • Accessibility. Use the app's default, intermediate and maximum system text sizes in light and dark appearance. Check readable labels, slider value announcements, keyboard/screen-reader reachability, wrapping and reachable Done/cancel actions on both platforms.
  • Prior art. Reuse the existing Host-look editor/model tests for settings interactions, per-Host isolation, local-image path rebasing and image veils; reuse device-local presentation-preference tests for hydration/write-failure behavior, plus the established native keyboard/chat journeys. Reuse the seam, not the old image-copy or write-error fallbacks when they contradict this spec's save contract.
  • Runtime evidence. Capture actual before/after and editor screenshots, saved preference readback and the cold-reopen result from an isolated, provenance-recorded build. Use controlled, nonprivate fixtures for shareable evidence. An Expo web export, jsdom check, Android screenshot or successful filesystem call alone does not qualify the other native platform or prove Human acceptance. Follow the shared QA queues; do not take over the physical phone being used by another task.
  • Regression scope. Run the focused owner/editor/conversation, theme/style and keyboard checks the change reaches. Preserve live Host/Channel wire contracts. Agent-operable native automation must be able to repeat the acceptance journey; do not introduce a Host management API merely to test a local visual preference.

Out of Scope

  • Blur, complex image filters, animated/video wallpapers, parallax and an image-editing suite.
  • AI image generation inside the app, paid generation, a wallpaper marketplace or a built-in library of game-character artwork. The Human supplies their own picture; this specification does not ship the concept's character material.
  • Cross-device or cloud synchronization, uploading wallpapers to the Host, sending them to a model, or recording image paths/content in telemetry.
  • Changing PersonaBot Avatar, Profile Banner, Soul, Core Memory, model selection, Channel Message authority or exports.
  • Desktop/Web chat wallpaper parity or modifications to the existing Host header appearance feature.
  • Building a generic Host settings service, new Bot tools, or a second message/draft persistence authority.

Further Notes

  • Part of the native mobile-app effort: Hub: DeepSeekBot mobile app — native Expo client for a home Host #1643. Inherit its v2.0 milestone; this issue is an implementation-ready feature specification, not an implementation claim or a release announcement.
  • The Human approved this direction after reviewing an AI-assisted concept based on a real mobile chat screenshot and a character illustration, and then explicitly confirmed the acceptance scope above. The concept shows atmosphere and composition; its repainted edges/translucency are not pixel-accurate product requirements or runtime evidence. The specification's independent opaque content surfaces govern implementation.
  • Existing context: ADR-0201: native mobile design and future conversation-only wallpaper, ADR-0211: mobile navigation/settings entry points, and ADR-0219: device-local mobile presentation.
  • Code inspected for the current-state claim: native mobile build at 47a2fbf4553e7760480fe10f3c47c1bd5cb3ef19, plus the conversation canvas on main at e59bef993. Recheck current main and concurrent mobile UI work before implementation. No existing chat-wallpaper issue or open PR was found in the pre-publication search.
  • The implementation records any new durable ownership/persistence decision in the repository's ADR/living architecture workflow and adds the required bilingual change fragment and behavior-map/QA evidence. This spec does not amend those authorities by itself.
  • Produced with the explicitly invoked to-spec workflow. No product source or runtime was changed by publishing this specification.

Activity

  1. added this to the v2.0 milestone on Oct 17, 2026
  2. added
    ready-for-agentFully specified, ready for an AFK agent
    area:ui-uxInteraction and visual experience; may accompany a code-layer area
    area:frontendClient-side implementation
    feature:channelChannel chat, timeline, composer, and navigation
    scope:specNormative specification for follow-on slices
    on Oct 17, 2026
  3. DoodleBears commented on Oct 17, 2026

    @DoodleBears
    ContributorAuthor

    Agent work claim

    The Human authorized implementation, PR creation, merge and a fresh local test recording. Use neutral owned image fixtures for development; replacement character references will be supplied separately.

  4. added
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    on Oct 17, 2026
  5. DoodleBears commented on Oct 17, 2026

    @DoodleBears
    ContributorAuthor

    Agent outcome — authorized implementation and Android delivery completed

    • Task: codex/local/01a14b49-baec-7203-ab49-8839ad2467c4; original claim.
    • Merged PR #2122 at 810ae5398deda703b9c2840dbdf0d29eb627c9ed after final CI and CodeRabbit passed. All four review findings are resolved; parallel Standards and Spec reviews each have0 unresolved findings.
    • Rebuilt the isolated Host and restarted Metro from the exact merged SHA. Authenticated doctor passed. Fresh Android native recording proves system photo picker → Fit/Fill preview →40%fade →Done →library-original removal →cold reopen with the exact same complete record27 and one referenced owned image. Native composer hello received a real model reply; a separate two-line draft was captured and cleared without sending. Existing messages remain unchanged.
    • Preserved the raw299.72-second H.264/no-audio recording, a202-second review clip, native PNG/XML captures, feature-only preference readback, source provenance and SHA256 manifest in the Human's local publishing archive. Four video frames were extracted and visually inspected; no pairing URL, key or raw Host Profile was included. The local recording is not claimed to be a GitHub-accessible attachment.
    • Native Android default/intermediate/maximum ×light/dark matrix, defaults/overrides/groups, cancel/back/dismiss, image lifetime and real unreadable-metadata recovery are recorded in the SHA-pinned evidence index. First slice received Human feedback; later checks are agent evidence.

    Issue remains open for native qualification. The Human confirmed that no Mac/iOS QA lane is available and asked to finish the verifiable portion. Next qualified runner should drive the same picker/save/cold-reopen/keyboard journey on the reserved Mac/iOS lane, then Dynamic Type and VoiceOver. Android TalkBack gesture remains inconclusive; live font changes reproduce baseline #2110. Landscape, EXIF/HEIC, real disk exhaustion, pending approvals and extended-history return-to-latest remain unqualified. These are not inferred from bundle export or source tests.

    Windows local full-suite execution failed (core assertions/timeouts/Git stall); latest mobile run590passed/1failed/8skipped (stream-replay fetch bad port), with focused rerun44passed. Those failures remain recorded separately from the successful final Linux CI.

  6. added and removed
    ready-for-agentFully specified, ready for an AFK agent
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    on Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:frontendClient-side implementationarea:ui-uxInteraction and visual experience; may accompany a code-layer areafeature:channelChannel chat, timeline, composer, and navigationready-for-humanRequires human implementationscope:specNormative specification for follow-on slices

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions