| 1 | # Brief: make the coordinator chat feel alive |
| 2 | |
| 3 | Branch `chat-feel` from main 1b29d0d (DEPLOYED; owner mode; coordinator |
| 4 | replies now arrive). Paul (2026-11-06, live screenshot): "Nothing. And no |
| 5 | indication that there's any response happening. We should have a very |
| 6 | attractive loading state when waiting for a response. Will the response |
| 7 | stream?" Observed on production: the coordinator's reply rendered |
| 8 | `**amadan.net/oficina/equipo**` literally; it says "If you tap **Set |
| 9 | up**" but no project card shows; a backlog of queued turns is processed |
| 10 | one per message so new messages wait silently; a system note "owner mode" |
| 11 | is posted before every reply. Product rule: magic, zero setup. |
| 12 | |
| 13 | Deliver: |
| 14 | 1. Thinking state: the instant a message is sent (optimistic bubble |
| 15 | exists), show an attractive coordinator "thinking" bubble (icon + |
| 16 | name, subtle animated dots or shimmer, theme tokens, respects |
| 17 | prefers-reduced-motion) that persists through queued/claimed/running |
| 18 | and becomes the reply. If the turn is blocked, it becomes the plain |
| 19 | note instead. Phone and desktop. |
| 20 | 2. Streaming: the coordinator reply streams into that bubble as it is |
| 21 | generated: runner forwards partial text deltas from the provider |
| 22 | (Claude 2.1.312 stream-json partial messages; check the flag the |
| 23 | pinned binary supports and bind it into the launch policy — owner mode |
| 24 | means no recertification needed for the owner's runner, but update |
| 25 | manifests/tests consistently) through the existing coordinator event |
| 26 | endpoint (bounded size/rate), instance stores the in-progress text and |
| 27 | pushes it via Rastrillo live to the feed; final message replaces it. |
| 28 | Contract fixtures for the new event; tests. |
| 29 | 3. Coalescing: when several person messages are waiting for one |
| 30 | coordinator, the next turn answers all of them together (one reply); |
| 31 | older queued turns are superseded, not answered one by one. |
| 32 | 4. Markdown: render a safe subset in coordinator/specialist messages |
| 33 | (bold, italic, inline code, code blocks, lists, links with |
| 34 | rel=noopener, paragraphs); escape everything else; tests for XSS. |
| 35 | 5. Project card: the propose_project card must appear in the feed right |
| 36 | after the message that proposes it; find why it didn't (production |
| 37 | evidence via read-only `carlos db query --app equipo --account |
| 38 | oficina`), fix, and add an e2e-live assertion. |
| 39 | 6. Owner mode: show it once as a quiet label (e.g. on the coordinator |
| 40 | header or Connections), not a system note per turn; remove the |
| 41 | per-turn note. |
| 42 | Prove with `make e2e-live` (thinking bubble visible within 300 ms of |
| 43 | send; first streamed text before the turn completes; markdown rendered; |
| 44 | card present; two quick messages → one reply). AUTHORISATION: live model |
| 45 | use only via the harness on claude-a, <= 30 turns; do not touch |
| 46 | production data or the docs-t1 runner service. New strings |
| 47 | `// COPY REVIEW PENDING`. ONE full `make -k ci` (rerun at most twice). |
| 48 | Commit subject < 80, body `Co-Authored-By: Astra <noreply@openai.com>`; |
| 49 | commit only, the controller pushes. CONTROLLER-REPORT-chat-feel.md with |
| 50 | screenshots (1280/390) in docs/mockups/built/2026-11-06/. Loopback only; |
| 51 | stop servers; scratch removed; no copy-review server. Print a five-line |
| 52 | summary. |
| 53 | |