Skip to content

Window Companion: persistent ask_question cards with direct answers #1179

Closed

Description

@DoodleBears

Parent

Specification #1135; builds on the persistent owner-qualified request cards delivered by #1178.

What to build

Show a selected Bot's formal ask_question request as a persistent companion card and let the Human answer its supplied choices or custom text there, without switching the active conversation. Reuse the existing question owner and answer contract. This is a real Human request, not a general bubble chat composer or a Coopanion guide workflow.

Acceptance criteria

  • A real formal pending question appears for its owning Bot with all supplied questions, choice descriptions and source context. Ordinary prose asking a question does not create an interactive request.
  • Reuse Window Companion: persistent Tool Approval cards with direct decisions #1178's owner-qualified pending section, current-state restoration, scroll/overflow, cross-page lifetime and stale-state handling. Pending questions are not decorative retained messages and do not expire or get evicted by ordinary message traffic/switches.
  • Preserve supported single-select/multi-select/custom-answer semantics and owner validation; no default choice is silently submitted. Inputs and chosen answers survive message arrivals/hover changes during that current pending request; do not persist response drafts as new durable authority.
  • The Human can submit while an unrelated Channel is open using the explicit Bot/request target. The canonical owner records the existing resolution and resumes the correct waiting Session exactly as the original interface does.
  • Chat/another-client answer, cancellation, archive/deletion, Host restart and stale-generation responses disable/remove obsolete controls. Competing submissions cannot answer twice; no synthetic local-success state replaces owner acceptance.
  • Retain independent attention and navigation for other request types; generic input guides, ASR/recording, TTS and expression/action tools remain excluded.
  • Integrate the request-card ADR/architecture from Window Companion: persistent Tool Approval cards with direct decisions #1178. Tests and real DSH evidence cover one actual question/answer/resumption, multiple simultaneous requests and cross-view reconciliation in one PR.

Blocked by

#1178: persistent permission request cards. Its shared, fully working pending-card lifecycle and explicit request-target interaction are the deliberate prerequisite; no dependency on sound, spring or geometric anchors.

Activity

  1. added this to the v1.2 milestone on Oct 8, 2026
  2. added
    ready-for-agentFully specified, ready for an AFK agent
    feature:avatarPersonaBot avatar media and activity frame
    area:fullstackEnd-to-end Host and Client implementation
    on Oct 8, 2026
  3. DoodleBears commented on Oct 8, 2026

    @DoodleBears
    ContributorAuthor

    Agent work claim

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

    @DoodleBears
    ContributorAuthor

    Implementation is available in draft PR #1188 (stacked on #1185), with independent Standards/Spec review and full clean-environment CI passing, including final head 6385106 (run 37760560347).

    Real isolated DSH API qualification passed: two actual native model questions pending concurrently, current owner → Companion SSE with decorative display switches disabled, complete option descriptions, competing submission accepted once, separate choice/custom answers, canonical one-shot resolution and actual Bot-authored DM continuation for each owning Orchestrator. This is functional API evidence and does not replace UI screenshots/video.

    Real UI qualification remains outstanding: fresh Chrome navigation to the authenticated-ready isolated Host reports ERR_BLOCKED_BY_CLIENT; prior Chrome control also disconnected, and IAB blocks loopback. The new blocked tab, both GitHub diagram-check tabs and the old task-owned DSH tab have now all been closed. Capture, keyboard/theme inspection and cross-view visual reconciliation remain gates before promotion.

    The task claim remains active while qualification is incomplete. No issue completion or merge is claimed.

  6. DoodleBears commented on Oct 8, 2026

    @DoodleBears
    ContributorAuthor

    Agent work scope update — #1179

    Human requests matching the question-option UI/UX from merged #1186 and the Bot-mode onboarding task: reuse grouped SidebarCardList/SidebarCardRow, theme-selected rows and actual multiple-choice indicators, compact optional custom answer and developer-only native Session details. Preserve the shared Chat/Inbox/Companion question owner, per-view IDs, target guards, draft continuity and accepted-once submission. Synchronize latest main before adapting the extracted shared card; provide real same-state before/after and interaction evidence. No new question owner or general bubble input.

  7. 16 remaining items

  8. DoodleBears commented on Oct 8, 2026

    @DoodleBears
    ContributorAuthor

    Agent work progress

    • Task: codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269; active, no merge/release.
    • PR feat(companions): answer persistent formal questions across views #1188 evidence-only0a46f21e adds7real screenshots and2continuous silent recordings(14.6s/19.233s), exact integrated runtime ce926cb/formal pixel-avatar0.7.0.
    • Fresh owned QA Bot: archive removes controls; unarchive restores current live owner; native Session cancellation expires owner, records exactly one cancellation and removes controls in unchanged document; deletion while pending removes companion, keeps unrelated Channel and retains memory. Correct late-answer postflight after cancel/delete is refused with canonical resolutions unchanged. Existing authenticated owner commands, not mouse-menu qualification.
    • QA failures retained: native response wrapper initially misread, fresh isolated follow-up needed explicit repin, and malformed initial stale probes separately corrected. No source/product fix inferred. Capture consoles0errors, owned browsers closed.
    • Same-Host evidence f4ae8a8 CI37853973633 passes. New evidence-only CI tracked separately; format/diff pass. Existing2local question timeouts/Windows cleanup limitation remains.
    • Remaining competing-client and reduced-motion runtime edges, separate mouth Human feedback/publication and performance/budget.
  9. DoodleBears commented on Oct 8, 2026

    @DoodleBears
    ContributorAuthor

    Agent work progress

    • Task: codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269; active, no merge/release.
    • PR feat(companions): answer persistent formal questions across views #1188 evidence-only e00ab3c adds11real screenshots/3continuous silent clips(39.1s,12.1s,12.333s) at integrated runtime ce926cb/formal pixel-avatar0.7.0.
    • Two independent official browser contexts show separate drafts and reconcile one canonical answer. One actual UI click submits; the other MCP click times out, cause unestablished, not two successful mouse writes. Separate second native question receives two concurrent correct-contract existing answer commands:1accepted/1refused,1canonical answer and winning original-Bot continuation; both real UI clients reconcile.
    • Real reduced browser preference/application policy: readable both themes, actual3Tab sequence and Enter answer once, original Bot continues. First script expected2Tabs, stopped at input without submission; same request reused in separate final clip, failure retained.
    • Same-context second page has selected pin/no companion, pending GET/no selection POST and0consoleerrors; independent contexts work. Connection contention remains a hypothesis, not a fix. Current multiple-Bot/Chat evidence refresh and same-context startup remain partial.
    • All capture consoles0errors, owned browsers closed. LifecyclemediaCI37854823836 passes; new media-only CI tracked separately, format/diff pass. Local prior2questiontimeouts/Windows cleanup limitation remains.
    • Mouth Human feedback/publication and1167performance/Humanbudget still open; no blanket acceptance.
  10. DoodleBears commented on Oct 9, 2026

    @DoodleBears
    ContributorAuthor

    Agent work progress — current two-Bot and Chat qualification

    • Task: codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269; existing active claim.
    • Branch codex/1179-companion-questions; PR #1188, evidence-only commit a92f8214. Actual runtime stays ce926cbe, main5efae378/approval parentb593540f/formal pixel-avatar0.7.0.
    • Six actual light/dark screenshots and a continuous41.133s silent recording qualify two current native question owners(A3/B1). Native single/multi/custom draft survives theme change. Companion A answer commits once and resumes original A, while B stays pending with its draft after A's actual reply. Explicit B Chat answer commits once, resumes original B and removes its companion controls; unique inputs, unchanged document and late invalid-input/no duplicate resolution are verified.
    • Console0errors; owned browser closed. Public allowlist excludes credentials/raw records. Tall-form scrolling, partial stills, keyboard actions and setup preceding recording are disclosed; no synthetic state or answers, mouse/performance/background/multi-tab claim.
    • Full latest-main66d2767a review: Standards0new violations/1retained optional heuristic; Spec0actionable defects. Actual GitHub inspection verifies40screenshots and10recording links. Current-head CI37876712999 is in progress; PR remains Draft until it passes. No merge or release.
    • Same-context multi-tab startup cause remains unestablished. Historical local question timeouts/SQLiteEPERM are retained; separate mouth Human feedback/publication and performance gates are not declared complete.
  11. DoodleBears commented on Oct 9, 2026

    @DoodleBears
    ContributorAuthor

    Agent work progress — current two-Bot and Chat qualification

    • Task: codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269; existing active claim.
    • Branch codex/1179-companion-questions; PR #1188, evidence-only commit a92f8214. Actual runtime stays ce926cbe, main5efae378/approval parentb593540f/formal pixel-avatar0.7.0.
    • Six actual light/dark screenshots and a continuous41.133s silent recording qualify two current native question owners(A3/B1). Native single/multi/custom draft survives theme change. Companion A answer commits once and resumes original A, while B stays pending with its draft after A's actual reply. Explicit B Chat answer commits once, resumes original B and removes its companion controls; unique inputs, unchanged document and late invalid-input/no duplicate resolution are verified.
    • Console0errors; owned browser closed. Public allowlist excludes credentials/raw records. Tall-form scrolling, partial stills, keyboard actions and setup preceding recording are disclosed; no synthetic state or answers, mouse/performance/background/multi-tab claim.
    • Full latest-main66d2767a review: Standards0new violations/1retained optional heuristic; Spec0actionable defects. Actual GitHub inspection verifies40screenshots and10recording links. Current-head CI37876712999 passes, including full tests/build/docs. PR is Ready for review only. No merge or release.
    • Same-context multi-tab startup cause remains unestablished. Historical local question timeouts/SQLiteEPERM are retained; separate mouth Human feedback/publication and performance gates are not declared complete.
  12. DoodleBears commented on Oct 9, 2026

    @DoodleBears
    ContributorAuthor

    Agent work outcome — merged

    • Task: codex/local/01a11734-bb09-7f01-9d45-adc0f5df6269; state: completed for this implementation/merge scope.
    • Existing claim. Human explicitly authorized resolving conflicts and merging. PR #1188 now targets main and merged as d55d82feedc0d31ced860b65b564b5f83869fae6, after approval parent#1185/main7a4f9931.
    • Runtime05998843/formal pixel-avatar0.8.0 integrates current anchors and shared approval-capacity status. Subsequent main merge9e4e3f5a/final evidence commitce070511 change no packages/scripts/lockfiles from the actual captured runtime.
    • Two new real native question owners(A3/B1) qualify retained single/multi/custom drafts through themes, explicit Companion A answer over an unrelated Channel, original A reply with every actual answer, independent B draft retained, native Chat B answer, original B continuation and both Companion requests released. Unique input IDs, one canonical answer per owner, late duplicate refused, unchanged document, console0errors, no pending QA questions. Six actual screenshots/continuous37.067s silent recording render/link on the published GitHub PR; owned browser closed.
    • Current selected148files1063tests and focused4files51tests, typecheck/lint/format/ledgers/build pass. Final exact-head full CI passes. Parallel latest-main review: Standards0documented violations/1non-blocking duplicate-predicate suggestion; Spec0unresolved source/evidence findings.
    • Historical lifecycle/reconnect/restart/reduced-motion/competing-client media retain exact source attribution. Historical Windows cleanup/two question timeout limitations remain recorded; no universal passing claim. Same-context multi-tab startup cause remains unestablished. Current capture is foreground keyboard/input with partial scrollable form stills, not mouth/performance/background evidence. Separate formal mouth publication and Window Companion: measure frame and heap costs and agree performance budgets #1167 performance remain outside this merged scope.

    No other active task claim was found for this issue scope. The implementation is merged; older bounded evidence claims are not expanded by this outcome.

  13. removed
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    on Oct 9, 2026
  14. DoodleBears commented on Oct 13, 2026

    @DoodleBears
    ContributorAuthor

    Closing as completed per the owner's request. #1188 merged (d55d82f) and is on latest main (7bc0319): companion question cards in packages/client/src/client/companion-requests-view.tsx, the owner feed in packages/core/src/companions/feed.ts, and coverage in packages/core/test/human-inbox-native-question.test.ts. Real DSH qualification covers single-select, multi-select and custom answers, two Bots, Chat-versus-companion reconciliation, cancel/archive/delete, Host restart and same-Host reconnect, competing clients and reduced motion, all in the comments above.


    Generated by Claude Code

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 implementationfeature:avatarPersonaBot avatar media and activity frameready-for-agentFully specified, ready for an AFK agent

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions