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

Talk on a phone: make the mobile UI better, and prove it with a mobile-UI-onl… #16532

Closed opened this in answer to
Closed without merging

Talk on a phone: the answering line, the head, the composer and the list are fixed, but the pull is only partly proven. Chromium won't start in my sandbox, so the browser tests have not run. The forge's check will run them.

Notes

stopped closed without shipping deploy e3a3be3

opened this

Talk on a phone: the answering line, the head, the composer and the list are fixed, but the pull is only partly proven. Chromium won't start in my sandbox, so the browser tests have not run. The forge's check will run them. I did run bun test on the Talk tests, tsc, design-lint, gate and mcp-size. They pass, and the browser tests show as skipped.

What changed

  1. "Answering" text. A confirm answered while an answer ran made the page skip its end-of-answer step, so "The forge is answering…" stayed on screen. Every end of an answer now clears that line first, so a reply, a failure, a stop or a confirm no longer leave it behind. That is mode(false) in talk_client.ts.
  2. Message box riding. The status line under the box came and went with each reply, so the box moved up and down. The line now keeps its row. This costs about one line (about 20 px) of empty space under the box.
  3. Chat list opening at the bottom. The thread follower was scrolling the list page to its end. It no longer follows in the list view, so /talk?chats=1 opens at the top, newest chat first.
  4. Top bar. The head is one 44 px row that doesn't wrap: chat list, title, model picker, menu, New. The picker moved from under the composer into that row; its label is screen-reader-only and its Use button is hidden when the script is on. I held talk-page.test.ts's byte ceiling by trimming CSS. Its head-height assertion went from 40 px to 44 px, because the test was out of date.
  5. Phone persona. Added as a brief only, scripts/phone-persona/brief.md. It sets out the doors it may use (phone UI only, 390 px, touch), the sign-up, Talk, confirm and read-result run, what counts as stuck, and one issue per stuck place. The running experiments live outside this repo, so I wrote no driver or runner, and filed no issues because the persona hasn't run.

Tests

  • test/talk-phone.test.ts has four Chromium tests at 360 px with touch: the box doesn't move when the status line changes, the head is one row, the list opens at the top, and the answering line clears after a confirm (a stubbed 409 reply; the stream stands in for a real answer).
  • Without a browser, it checks the shipped script and the list order.
  • talk-model-choice.test.ts now asserts the picker is in the head and not under the composer.

Not done

  • The Retry and confirm-dock one-handed checks and the wrapping of long tool output were not reworked. The dock is already pinned in the composer, and tool output wraps in the existing CSS.
  • There is no on-screen-keyboard test.
  • I added no MCP tool and no dependency.
  • I ran scripts/similar.ts on nothing, because I wrote no new functions, only edits.
  • I recorded no estimate.

To try: open /talk on a phone, ask for a change and answer the confirm. The head should stay one row, the box should stay put, and the status line should end with the answer.

[
 {"go":"/talk","look":"the head at 360 px wide","expect":"one 44 px row: chat list, title, model picker (when a connection offers one), menu, New; nothing wraps"},
 {"go":"/talk?chats=1","look":"the chat list on a phone","expect":"opens at the top with the newest chat in view and scrolls down"},
 {"go":"/talk","look":"send a message and answer a confirm if one appears","expect":"the message box does not move, and no 'The forge is answering…' remains once the answer ends"}
]

🤖 Generated with Claude Code

Closes #16442

9 earlier comments
commented

Talk on a phone: the answering line, the head, the composer and the list are fixed, but the pull is only partly proven. Chromium won't start in my sandbox, so the browser tests have not run. The forge's check will run them. I did run bun test on the Talk tests, tsc, design-lint, gate and mcp-size. They pass, and the browser tests show as skipped.

What changed

  1. "Answering" text. A confirm answered while an answer ran made the page skip its end-of-answer step, so "The forge is answering…" stayed on screen. Every end of an answer now clears that line first, so a reply, a failure, a stop or a confirm no longer leave it behind. That is mode(false) in talk_client.ts.
  2. Message box riding. The status line under the box came and went with each reply, so the box moved up and down. The line now keeps its row. This costs about one line (about 20 px) of empty space under the box.
  3. Chat list opening at the bottom. The thread follower was scrolling the list page to its end. It no longer follows in the list view, so /talk?chats=1 opens at the top, newest chat first.
  4. Top bar. The head is one 44 px row that doesn't wrap: chat list, title, model picker, menu, New. The picker moved from under the composer into that row; its label is screen-reader-only and its Use button is hidden when the script is on. I held talk-page.test.ts's byte ceiling by trimming CSS. Its head-height assertion went from 40 px to 44 px, because the test was out of date.
  5. Phone persona. Added as a brief only, scripts/phone-persona/brief.md. It sets out the doors it may use (phone UI only, 390 px, touch), the sign-up, Talk, confirm and read-result run, what counts as stuck, and one issue per stuck place. The running experiments live outside this repo, so I wrote no driver or runner, and filed no issues because the persona hasn't run.

Tests

  • test/talk-phone.test.ts has four Chromium tests at 360 px with touch: the box doesn't move when the status line changes, the head is one row, the list opens at the top, and the answering line clears after a confirm (a stubbed 409 reply; the stream stands in for a real answer).
  • Without a browser, it checks the shipped script and the list order.
  • talk-model-choice.test.ts now asserts the picker is in the head and not under the composer.

Not done

  • The Retry and confirm-dock one-handed checks and the wrapping of long tool output were not reworked. The dock is already pinned in the composer, and tool output wraps in the existing CSS.
  • There is no on-screen-keyboard test.
  • I added no MCP tool and no dependency.
  • I ran scripts/similar.ts on nothing, because I wrote no new functions, only edits.
  • I recorded no estimate.

To try: open /talk on a phone, ask for a change and answer the confirm. The head should stay one row, the box should stay put, and the status line should end with the answer.

[
 {"go":"/talk","look":"the head at 360 px wide","expect":"one 44 px row: chat list, title, model picker (when a connection offers one), menu, New; nothing wraps"},
 {"go":"/talk?chats=1","look":"the chat list on a phone","expect":"opens at the top with the newest chat in view and scrolls down"},
 {"go":"/talk","look":"send a message and answer a confirm if one appears","expect":"the message box does not move, and no 'The forge is answering…' remains once the answer ends"}
]

🤖 Generated with Claude Code

commented

<!-- look-pages f0dad8567972 --> Look pages for f0dad85, from the gate:

  • look pages (inferred): this pull changes src/web/pages/talk.ts, src/web/pages/talk_client.ts, src/web/talk_model.ts; the forge pictures /talk (src/web/pages/talk.ts), the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
commented

The "both doors" gate failed on this pull because it edits src/web/pages/talk.ts and src/web/pages/talk_client.ts with nothing under src/tui/ and no docs/features/ how-to. I pushed an empty commit carrying a "No door:" line saying the change is mobile layout and focus behaviour only, so the terminal has nothing new to show. I did not re-run the gate or the tests here, but bun x tsc --noEmit came back clean.

No code changed in this push. The comment-width note in the log needs no action: bun scripts/gate.ts --fix found nothing to rewrap.

The pull itself is unchanged. On a phone, /talk has a one-row head with the model picker, the answering line ends with the answer, the box stays put, and the chat list opens at its top.

To try it, open /talk on a phone-width screen on the preview, ask for a change, and answer the confirm.

commented

<!-- look-pages c4e21eb775c0 --> Look pages for c4e21eb, from the gate:

  • look pages (inferred): this pull changes src/web/pages/talk.ts, src/web/pages/talk_client.ts, src/web/talk_model.ts; the forge pictures /talk (src/web/pages/talk.ts), the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
commented

I pushed a likely fix for the chat-list test, but I couldn't confirm it: Chromium won't start in my sandbox. test/talk-phone.test.ts ran with its browser tests skipped, and the failing assertion wasn't in the log I had, so the cause is a guess.

  • Chat list test: I added a scroll to the top on load in src/web/pages/talk_client.ts. It applies only in the chat-list view, and only until the person scrolls. This covers the case where the browser restores a scroll position or a late layout shifts the list.
  • If it fails again: the test's assertions in test/talk-phone.test.ts now print the measured values (y, top, tall, first row text), so the next log shows which one broke.
  • Server side checks out: I fetched the list page and "Chat number 19" is the first row.
  • Other two failures: crew-review-stall (an 8 s timing test) and the 300 ms map-size test look unrelated to this pull. I did not touch them and expect them to be timing flakes under load. If they fail again, someone should look at them separately.
  • Checks run: tsc is clean, and talk-phone and talk-page pass, with the four browser tests skipped.
  • Terminal door: the commit carries a "No door:" line, since the terminal shows no new line for this.
commented

The look-pages comment is the gate's inferred list, and I agree with it: /talk is the page this pull changes. I made no change for it, so there is nothing new to push.

What the pull does: Talk on a phone now has a one-row head holding the list, the title, the model picker, the menu and New. The "answering" line ends with the answer, even when a confirm was answered meanwhile. The message box stays put as the tool-call count grows. The chat list opens at its top, newest chat first.

What changed since the first push:

  • Terminal: the commits carry a "No door:" line, since the terminal shows nothing new for a mobile layout change.
  • Chat list: src/web/pages/talk_client.ts scrolls the list to the top on load. The phone-list test in test/talk-phone.test.ts now prints what it measured when it fails.

What I did not do: I did not touch the two unrelated timing flakes in the last check, crew-review-stall and the map-size test. I also changed nothing for the look pages.

What I could not verify: Chromium does not start in my sandbox, so the four browser tests in test/talk-phone.test.ts have never run on my side. I could not tell which assertion failed in the last check, so the scroll-to-top fix is a likely cause, not a confirmed one. The forge's check is the first real run.

To try it: open /talk and /talk?chats=1 on a 360 px screen on the preview, ask for a change, and answer the confirm.

[
  {"go": "/talk (360 px wide, signed in)", "look": "the head", "expect": "one row: list, title, model picker, menu, New"},
  {"go": "/talk, send a message that makes tool calls", "look": "the message box and the status line", "expect": "the box does not move as the count grows, and 'answering' disappears when the answer ends"},
  {"go": "/talk?chats=1", "look": "the chat list", "expect": "it opens at its top with the newest chat first"}
]
commented

<!-- look-pages e3a3be36df1e --> Look pages for e3a3be3, from the gate:

  • look pages (inferred): this pull changes src/web/pages/talk.ts, src/web/pages/talk_client.ts, src/web/talk_model.ts; the forge pictures /talk (src/web/pages/talk.ts), the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
commented

This pull makes /talk better on a phone. I changed no code in response to the gate's look-pages note. It only reports which pages the forge will picture, and it inferred /talk correctly. This pull touches src/web/pages/talk.ts, src/web/pages/talk_client.ts and src/web/talk_model.ts, and /talk is the only page it changes. No Looks: or No look: override is needed.

I did not re-run the tests or the type check for this turn, since nothing changed since the last push.

What changed

  • The head is one row on a phone, with the model picker in it.
  • The answering line now ends with the answer.
  • The input box stays put instead of shifting.
  • The chat list opens at its top and scrolls to the top on load.
  • test/talk-phone.test.ts covers this and says what it measured when it fails.
  • scripts/phone-persona/brief.md holds the phone persona's brief.

What I left out

  • The terminal has no matching change. The reason is recorded in c4e21eb77.

How to try it

  • Open /talk at phone width on the preview, https://lab--16532--forge-trevato-apps.open-platform.sh/talk.
  • Ask for a change and answer the confirm.
  • The head stays one row, and the box doesn't move.
[
  {"go":"/talk (phone width, ~390px)","look":"the head","expect":"one row, with the model picker in it"},
  {"go":"/talk, send a message that asks for a change, then answer the confirm","look":"the input box and the answering line","expect":"the box does not move; the answering line ends with the answer"},
  {"go":"/talk, open the chat list","look":"the list","expect":"it starts at its top"}
]
commented

The failing check looks like it broke on the forge side, not in this branch's code. I changed nothing and pushed nothing, because the branch is already up to date with origin.

  • The error: "Bun could not find a package.json file to install from". package.json and bun.lock are both tracked at the repository root, and forge.json sets app.install to "". Nothing in the branch gives that step a reason to look anywhere but the root. My guess is that the check ran bun install in a directory where the checkout was missing or empty. That is a guess, since I can't see the check's log.
  • What I ran locally, all green:
    • bun scripts/gate.ts --fix reported only the long-comment note, which the nightly rewrap handles on main.
    • bun x tsc --noEmit came back clean.
    • bun scripts/design-lint.ts found nothing outside the system.
    • test/talk-phone.test.ts: 1 test passed and 4 were skipped, because this sandbox has no Chromium that starts. So the phone layout is not measured here, and the forge's own check is the only place that measures it.
  • What I need from a person: retry the check on #16532 and look at its install step. If it fails again with the same message, the problem is in how the forge checks out the branch for that pull.

Tell the planner not to split or rewrite this issue because of that failure. The phone changes already on the branch (one-row head with the model picker, the answering line ending with the answer, the box staying put, the chat list opening at its top) are untouched.

commented

Closed by the crew: superseded, its change is already on main in 0f14d0b8.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs