Skip to content

Window Companion 4: bounded background and disconnect recovery without replay #1141

Closed

Description

@DoodleBears

Parent

Specification #1135 — in-window pixel companions with truthful activity and scoped message bubbles.

What to build

A Human briefly backgrounds or disconnects the Harness and then returns to the same companion scopes. The companions recover a bounded set of eligible unplayed new messages without duplicates, historical speech, stale Host responses or unlimited backlog, and resume truthful current activity.

Acceptance criteria

  • First selection and Client/Host restart retain the future-only Host-consistent baseline contract; replay never crosses it, and Client/Host wall-clock equality is not assumed.
  • Commit races around baseline/subscription and reconnect are covered through canonical stable identities and explicit consumption ordering, with neither duplicate playback nor a silent gap within the supported retained range.
  • Owner reads, queued content and pending arrival bookkeeping are all bounded under slow consumers and bursts; simply truncating a fully read result in the Client is insufficient. Exceeding retention does not trigger unlimited catch-up.
  • Recover only enabled-source, scope-qualified, unplayed output after the current baseline across the supported Channels. Disabled-period and newly eligible historical content remain excluded.
  • Old-generation, stale-revision and cancelled-request responses cannot overwrite the new baseline, restore removed companions or reinsert cleared cards. Scope/authorization changes during reconnect are rechecked at the owning boundary.
  • Background/hidden presentation stops unnecessary sampling and pauses reading timers; disconnect expresses freshness independently of execution, never fabricated idle/success/failure or historical live attention.
  • Public tests inject before/during/after-baseline commits, duplicate notifications, revision gaps, old responses, bursts and toggles across reconnection; assert observable cards and bounded owner reads/resources rather than private cursor implementation.
  • A verified DSH runtime path demonstrates background, brief disconnect, Client reload and Host restart with real new messages across own DM/shared Group/Bot–Bot scope, proving old content is not replayed and current Activity reconciles.

Blocked by

#1140 — qualified cross-Channel Bot-output consumption and scope/source transition rules. This ticket extends that actual contract instead of building a separate recovery feed.

Activity

  1. added this to the v1.2 milestone on Oct 7, 2026
  2. added
    ready-for-agentFully specified, ready for an AFK agent
    area:ui-uxInteraction and visual experience; may accompany a code-layer area
    feature:avatarPersonaBot avatar media and activity frame
    area:fullstackEnd-to-end Host and Client implementation
    scope:tracerHuman-testable implementation slice
    on Oct 7, 2026
  3. DoodleBears commented on Oct 7, 2026

    @DoodleBears
    ContributorAuthor

    Agent work claim

    • Agent: Codex
    • Task: codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269 (not a DSH Session)
    • Issue scope: bounded same-Host reconnect/background output recovery, future-only first selection and restart, source/scope fencing and hidden presentation lifecycle
    • Branch: codex/1141-companion-recovery
    • Started: 2026-10-07 22:54 UTC
    • State: active
  4. added
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    on Oct 7, 2026
  5. DoodleBears commented on Oct 7, 2026

    @DoodleBears
    ContributorAuthor

    Agent work progress

    • Task: codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269
    • State: active; implementation and code review qualified, installed-Profile visual acceptance pending.
    • PR: feat(companions): bounded reconnect recovery and hidden presentation (#1141) #1165 (Draft), final code head 9a523eba.
    • Validation: 128 focused tests; lint, formatting, typechecking and production build passed; exact-head full Linux tests/build/docs CI #37702100527 passed.
    • Both code-review axes are clean after fixing continuous reconnect admission, unique-reference queue capacity and cancelled-selection journal cleanup.
    • Isolated installed Profile is running with verified authenticated API. Real light/dark screenshots, disconnect/restart/background video and current runtime qualification remain pending because Chrome automation is disconnected; diagrams are supplementary architecture evidence only.
    • Continuing lifecycle/accessibility Window Companion 5: archive, deletion, fallback and accessible runtime acceptance #1142 on its own branch/PR under the Human-approved sequence. No future PR has merge authorization.
  6. DoodleBears commented on Oct 8, 2026

    @DoodleBears
    ContributorAuthor

    Agent implementation outcome

  7. added 2 commits that reference this issue on Oct 8, 2026
  8. DoodleBears commented on Oct 8, 2026

    @DoodleBears
    ContributorAuthor

    Agent work outcome

  9. removed
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    on Oct 8, 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:fullstackEnd-to-end Host and Client implementationarea:ui-uxInteraction and visual experience; may accompany a code-layer areafeature:avatarPersonaBot avatar media and activity frameready-for-agentFully specified, ready for an AFK agentscope:tracerHuman-testable implementation slice

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions