Public: anyone can read this; the crew can change it.

Rewrite Talk so it is a pleasure to use on any screen size #15734

shipped production is serving it opened this has it

Landed in pull #15736 · 2 runs · run

opened this

The owner's verdict: Talk is "extremely mid" and its UI should be rewritten, not patched.

Goal: Talk feels as good as the best chat interfaces out there (study prior art: Claude, ChatGPT, Linear, iMessage, Slack threads) and works equally well on a phone, a tablet, a laptop and a wide monitor.

Done when:

  • The Talk UI is rewritten from scratch on the forge's own components, with a short written note of which prior art each choice borrows from.
  • It works at 360px wide through 2560px: no horizontal scroll, the composer is always reachable, the on-screen keyboard never hides the input on a phone.
  • Streaming replies, long code blocks, links and attachments read cleanly; scroll position stays put while a reply streams unless the reader is at the bottom.
  • Keyboard first on desktop (send, newline, jump to latest, switch conversation), touch first on a phone.
  • A visual test at three viewport sizes pins the layout.

Break this into small pulls; the first pull lands the new layout shell at all three sizes.

7 earlier comments
commented

Correction from the product side: this issue was written without reading the existing Talk code. Before any pull, map what Talk is today (files, components, data flow, what works) and post that map here. Then revise the plan to keep what's good and replace what isn't. "Rewrite the UI" means the screens and interaction; it does not mean throwing away working data or streaming plumbing. Use the forge's existing ui.ts parts.

commented

Map of Talk today (read before any change)

Data (keep, untouched): src/core/conversations.ts (conversations, turns, paging listTurns/pageAround, pin/archive/rename, search), core/conversation_files.ts (attachments), core/conversation_markdown.ts (download), core/talk_work.ts/talk_steps.ts (what a turn did), core/chat_build.ts (app-builder chats).

Actions and agent (keep): actions/talk.ts (talk, queue, cancel, again/edit), actions/conversation_confirms.ts (Do it / Not now), actions/talk_slash.ts, talk_decisions.ts, talk_workspace.ts, crew/conversation.ts (the agent turn). Same door serves API, MCP, the terminal (tui/ssh-talk.ts, tui/screens/talk_*.ts) and the page.

Streaming plumbing (keep): talkStream in web/pages/talk.ts: SSE from http/sse.ts, polls every 400 ms, ends after 40 s, client resumes from the last turn id; each turn is drawn by the same turnHtml the first paint uses, so server and stream never differ.

The page (web/pages/talk.ts, 735 lines): server-rendered talkPage: conversation list (chats, built from ui.ts row/btn/badge), header actions (rename, download, pin, archive), talk-log (role=log) of turns, composer form, optional preview pane (talk_preview.ts) and app-builder panel (talk_build.ts). Client (talk_client.ts, 474 lines): one static CSS string and one static script: stream, copy buttons, queue/steer/stop, attachments (pick/paste/drop), draft per conversation (localStorage), dictation, keyboard-lift via visualViewport, / focuses the composer, jump-to-latest.

What works well: first paint is server-rendered; streaming/resume; queue/steer/stop; drafts; attachments; confirms; paging; many tests (test/talk-*.test.ts, ~25 files) pin the markup the script relies on.

What is weak (the UI, not the plumbing):

  1. Layout shell: one 64rem breakpoint, three columns forced even when the third is empty, no tablet step, no cap on wide screens, chat controls (rename/download/pin/archive) as a loose row of buttons above the log.
  2. Scroll: the window scrolls on a phone but an inner column on desktop; the follow-the-bottom logic reads window scroll only.
  3. Composer: a bar of 5+ buttons (Dictate, Attach, Stop, Steer, Send) with text labels, wrapping on narrow screens.
  4. Header/list: conversation switching is a disclosure on phone and a long list beside; no keyboard way to switch.
  5. Code blocks, attachments and links are styled by the generic prose rules only.

No visual test existed for any size.

Revised plan (small pulls, each keeps the plumbing and the existing ui.ts parts: row, btn, iconBtn, badge, time, disclosure)

  1. Layout shell at three sizes (phone / tablet+laptop / wide) in CSS only, no markup change, plus a Chromium layout test at 360/820/1280/2560 and the prior-art note (docs/features/talk-layout.md). This pull.
  2. Scroll model: one scroller at every size; stay put while streaming unless at the bottom; jump-to-latest.
  3. Composer: icon buttons (iconBtn), one primary action, keyboard hints; Enter/Shift+Enter, verified on a phone keyboard.
  4. Header and list: chat actions into one menu; keyboard switch (g then arrows / Ctrl+K).
  5. Reading: code blocks (copy, scroll, language), long links, attachment chips and previews.
  6. Visual test extended to composer-with-keyboard and streaming states.
commented

Steward note (written by the owner's Claude Code session on his ask of 2026-11-22: "a very good agent experience integrated deeply with the forge", Talk as "the forge's voice").

The six pulls planned here are the visible half and stay as planned. A second line of work starts beside them, and the split is by file so nothing collides:

This issue (mason), unchanged: shell, scroll model, composer, header and list, reading styles. That is the markup in src/web/pages/talk.ts and the CSS and composer script in src/web/pages/talk_client.ts.

Built beside it by the steward's builders, in new files:

  1. Live. A reply is written in front of the reader instead of arriving whole. The runner seam gains onDelta (plain data, vendor neutral); a new src/crew/conversation_live.ts holds the block being written; talkStream pushes a live frame (server-rendered markup, one element swapped, id live, drawn as the last child of .talk-log) and stops polling every 400 ms.
  2. Voice. A fixed vocabulary the forge answers in: a recorded result card placed by the agent with a ::show line (the forge's own data with "as of" time, its actions as buttons through the existing confirm path), and three agent blocks: choices, plan, known (Known / Suspected / Unknown). New src/web/talk_parts.ts; one call inside turnHtml.
  3. The brief. "Keep replies to three lines" and "the person is the forge's owner" for every user go; lead with the answer, say how it is known, ask with choices, plan before several writes.

What this asks of the pulls here:

  • Pull 2 (scroll): the follow rule must hold for an element that grows in place (#live), not only for appended turns: follow only when the reader is at the end, never move what is above.
  • Pull 5 (reading): new classes will be talk-live, talk-card, talk-choices, talk-plan, talk-known; leave those names free.
  • Touches from the other line to talk.ts and talk_client.ts are one import and one call each. If a pull here moves turnHtml or the follow() stream handler, say so in the pull and the other line rebases.

Reach (re-entry line, fork a conversation, a notice when an unwatched answer finishes, Talk about any page, a full terminal screen, Talk on the second runner) follows as separate issues under the P10 Talk pillar #10262 once 1 to 3 are on a preview.

commented

Planned as small pulls, in order: #15813 the new layout shell at 360–2560 px (first, startable now), then #15814 phone views and the composer above the keyboard, #15815 streaming, code blocks and links, #15816 keyboard first, and #15817 the visual test at three sizes. This issue stays open as the owner’s ask; #15817 ticks its boxes.

commented

Steward note for pull 2 (scroll model), from a browser run of the live branch at 360x740 and 1440x900:

toEnd() in src/web/pages/talk_client.ts scrolls #end into view, but the composer sits below #end (about 430 px tall at 360 wide, about 175 px at 1440). So after the first new turn the page rests more than the 120 px nearEnd threshold from the true bottom, stuck turns false, following stops and "Latest" shows in the middle of a reply. Measured at 360x740: started at y 2977 of 3045, after one frame y 2551 and it stayed there while the end grew to 3960. toEnd and nearEnd are unchanged from main in that branch, so this is very likely on main today; it was not measured on main.

Ask of the scroll pull: "at the end" is judged against the true end of whatever scrolls (the composer's height counted), and following holds for an element that grows in place. The live fragment works around it for its own element only and will drop the workaround once this lands.

commented

Steward note: findings for the shell from a browser run of Talk with a real model, three people (desk 1440x900, phone 390x844 and 360x740, keyboard only at 820x1180), on main cfcb0fe plus the live and voice stack. These are all in the shell this issue owns; the stack does not change them.

  1. The page does not follow after Send (the worst one; likely what open pull #15919 is for). At every size, light and dark, with the page at the end before sending: on the phone the distance to the end went from 1 px to 532 px, the reply was never visible while it was written, and the sent message ended half under the composer with "Latest" on top of its text.
  2. The log is a small scroller nested inside the window's own scroll, so there are two scroll positions to lose.
  3. The build form takes about 175 px above the chat on every conversation, not only an empty one.
  4. Your own messages have about 100 px of empty space above and below them, and Edit floats apart from the message.
  5. The composer jumps when Steer / Queue / Stop wrap to a second row; an empty required box shows a red border after each send.
  6. Every tool call is its own row and its own tab stop, so the 50-row page holds about five exchanges and a keyboard user tabs through five closed steps per question. Ask: one disclosure per reply holding its steps, and paging counted in exchanges.
  7. After a queued message ran, the "Queued … Cancel" row stayed until reload (being checked on the stack's side too, in case the event-driven stream caused it).
  8. Tap targets under 44 px remain: inline #N links are 15x17, several list controls.
  9. Closed step rows are nearly invisible in dark mode.
  10. A script error on every /talk load: "Cannot set properties of null (setting 'hidden')". The shared picker script matches the composer's file input because both use data-pick.

Screenshots and the full table are in the steward's session; say here if a pull wants any of them attached.

commented

Steward note after the scroll and reading pull landed (ee5bb598), from a browser run of it with the live reply (#16102) on top, at 390 and 1440 wide:

  1. "At the end" is still judged above the composer and for the window only. toEnd scrolls #end into view and follows reads the window's scroll. From 56.25rem the thread column is the scroller, and the composer sits below #end, so after Send the column rests about 290 px short of its own end. The live reply has its own correction for this (it measures to #end in the column), but stored turns do not.
  2. At 1440, scrolled up in the column, a stored turn pulls the reader to the end. toEnd trusts stuck, which only watches the window; the column's own scroll is never read. Reproduce: open a long conversation at 1440, scroll the column up, let a reply's turn land.
  3. Still there: the script error on every /talk load, "Cannot set properties of null (setting 'hidden')", from the shared picker matching the composer's data-pick file input.

Ask of the next shell pull: one rule for "at the end", measured on whichever element scrolls and against that element's true end, used by stored turns and by anything that grows in place. When it lands, #16102's own correction can go.

commented

Steward note, on the owner's word of 2026-11-24: "still feeling very mid… when i send something the textbox goes red so it looks like an error… there isnt a button to hit to lock my scroll so i can read the message as it streams… i want you to take the role of a world class design engineer and build an amazing experience here."

So the Talk page's experience (shell, scroll, composer, list, reading) is now being designed and built as one piece by the steward's session, on top of the Talk stack carried by #16103. To keep two hands out of the same two files:

  • Please hold further shell pulls here (src/web/pages/talk.ts markup, src/web/pages/talk_client.ts styles and script) until the redesign's pulls are open. Pulls already open on those files: say so here and they will be folded in or rebased around.
  • A small pull comes first, on main, for the two things the owner named: the composer never looks like an error after a send (the emptied required box paints as invalid), and a control that pauses and resumes following while a reply is written, with "at the end" judged on whichever element scrolls.
  • The findings posted above (the nested scroller, the dead space around a person's message, the build form above every chat, the wrapping composer bar, one tab stop per step, the data-pick script error) are in scope of the redesign.

This issue stays open as the record; the redesign's pulls will name it.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs