feat(chat): ChatGPT-style transcript and composer
Agent replies sit on the page without a bubble and get a copy control; the operator's turn is a neutral rounded bubble; the composer is one filled pill with +, a borderless field and a round Send, and its placeholder names the chat's folder. Also fixes two picker tests left stale by the native picker.
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
# Chat: ChatGPT-style transcript and composer
|
||||
|
||||
Branch `chat/chatgpt-look`.
|
||||
|
||||
- Agent replies render on the page with no bubble (`ChatAgentSurface`), in the
|
||||
host's large body role; the readable cap on wide panes is 720.
|
||||
- The operator's turn is a neutral filled bubble with an even radius and no
|
||||
border (`ChatUserBubble`).
|
||||
- A finished reply with text has an icon-only copy control
|
||||
(`chat-message-copy`) that copies its text parts and shows a check for 2 s.
|
||||
Streaming or text-less turns have none. The per-reply model label stays.
|
||||
- The composer is one rounded filled pill (`chat-composer-pill`) holding "+"
|
||||
(opens the host picker directly, same key `chat-composer-attach`), a
|
||||
borderless field and a round arrow Send (Stop beside it while running).
|
||||
Background tasks sit above the pill at the end.
|
||||
- Placeholder is `Work on <folder>` from the session's `directory`, else
|
||||
`Message the agent`; slash commands still start with `/`.
|
||||
- Fixed two picker tests left stale by the native picker (962b358a): they now
|
||||
inject `ChatAttachmentPicker.unsupported` instead of relying on the VM host.
|
||||
|
||||
## Checks
|
||||
|
||||
- `flutter test`: 1992 passed. `flutter analyze`: one pre-existing info in
|
||||
`test/features/artifacts/ui/artifact_viewer_page_test.dart`.
|
||||
- Chrome captures of `tool/chat_composer_probe_entry.dart` at 390x844, Material
|
||||
light and Cupertino dark, show the bubble-less reply, copy control, gray
|
||||
user bubble and pill composer.
|
||||
- Both `tool/chat_composer_probe.mjs` (expects Enter to insert a newline; Enter
|
||||
now sends) and `tool/chat_message_probe.mjs` (expects the old "Reasoning,
|
||||
expand for details" activity label) fail on checks that predate this change.
|
||||
The message probe's semantics dump does show the new `Copy` control.
|
||||
- Not verified on a device.
|
||||
Reference in New Issue
Block a user