Working notes: the reply frame, a transcript read again, what holds the chat's position
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
1 file changed
+44
-6
+44
-6
@@ -169,6 +169,19 @@ design change, before a phone.
|
||||
without asking `movesToEnd` -- an unconditional "to the end when the rows change" is what threw
|
||||
a reader down on an older page, a queued turn and a rotation. A finger on the list ends the
|
||||
following; where it comes to rest (within a slack) says whether it is taken up again.
|
||||
**Only the person's own scroll can end it** (`restFollows`): a rest is theirs after a finger,
|
||||
or when the list went back towards its start (`wentBack`: a wheel, a key, a screen reader).
|
||||
The app's own scroll to the end, left short of it by something that arrived meanwhile, must
|
||||
never read as "scrolled away" -- that is the web's clamp bug in Compose's clothes.
|
||||
- **A reply's row does not change height when the reply ends**: the pulse of a reply being
|
||||
written stands in the finished foot's place (`FootTop`, `FootHeight` in `Transcript.kt`, an
|
||||
icon button's 48 dp). Change one and change the other. A picture's place has its shape from
|
||||
the size the server said before its bytes are there (`pictureRatio`); a tile is a fixed square.
|
||||
- **What the list's position rests on, and what was never measured on a phone**: rows are keyed
|
||||
by message id, and a reply is one row under one key while it is written and once stored, so
|
||||
the list holds whatever row is first on screen where it is. Inside one tall reply nothing
|
||||
holds a line: a chip that folds or a block that grows above the line being read, in the same
|
||||
reply, moves it. Nobody has measured the transcript per frame on a phone as the web's was.
|
||||
- **Every request that can start a reply declares `client`** (`ApiClient.CAPABILITIES`): create,
|
||||
send, edit, regenerate, continue, plan/execute. A new route that starts one declares it too;
|
||||
`ClientTest` lists them.
|
||||
@@ -187,8 +200,10 @@ design change, before a phone.
|
||||
- **A reply is drawn by one `AssistantMessage` call, live or finished**, and a thinking chip is
|
||||
keyed by its step's place: two call sites, or a key that holds `step.open`, fold away what the
|
||||
person opened.
|
||||
- **`/events` is followed in two places**: the Scheduled list (`schedules`) and the drawer's
|
||||
model while the app is in front (`reports`, `ChatsState.reported`).
|
||||
- **`/events` is followed in three places**, on one shared connection that is open while any
|
||||
of them watches: the Scheduled list (`schedules`), the drawer's model while the app is in
|
||||
front (`reports`, `ChatsState.reported`; `reply`, the list read again), and the chat on screen
|
||||
(`reply`).
|
||||
- **A folder on a linked computer is chosen with `ui/DirectoryPicker.kt`** (a new agent chat,
|
||||
the schedule form): a listing with a `code` is no listing, and the typed path stays -- it is
|
||||
the way in that always works. Anything new that needs a device's folder uses the picker.
|
||||
@@ -223,10 +238,33 @@ design change, before a phone.
|
||||
asked for through `ApiClient.raw`. A generated file is asked for by its node id, which outlives
|
||||
a rename. **An attachment is answered whole** (no `Range`): the player gets a cache copy
|
||||
(`MediaBody`), never `RemoteMedia`.
|
||||
- **There is no stream frame for a media job, and an open chat is not told of a reply it did not
|
||||
start.** `watchMedia` polls while the screen is in front; a job's `told` turning true is what
|
||||
makes the chat read itself again (`woke`). Anything else that wakes a chat (a subagent that
|
||||
finished, a schedule) is seen only when the chat is opened again.
|
||||
- **An open chat learns of a reply it did not start from the events route's `reply` frame**
|
||||
(`ChatViewModel.watchReplies`, `ChatState.asksFor`, `ReplyEventTest`; `contract/event_reply.json`).
|
||||
The server says every reply that starts, the app's own too, so the frame is news only for the
|
||||
open chat and a reply that is neither followed nor drawn as finished. News is taken up once
|
||||
nothing of the screen's own is being written (a queued turn comes by the stream's `next`
|
||||
anyway): the chat is read (`rereadAndFollow`, one at a time behind a mutex) and what it says
|
||||
is live is followed -- the read's word, not the frame's. `follow` does nothing for a reply it
|
||||
already follows; without that the frame for the app's own reply would start its drawing over.
|
||||
Each return to the front reads the chat once before listening: a reply that started and ended
|
||||
meanwhile is said by nobody. Both wait at `InstanceGate`. An instance without the frame costs
|
||||
that one read and nothing else.
|
||||
- **`reply` is a moment, not a state** (`EventsHub.MOMENTS`): the hub tells a late watcher the
|
||||
last `schedules` and `reports`, never the last `reply`. A new kind of frame on `/events` is
|
||||
one or the other; decide it there.
|
||||
- **The drawer's list reads its newest page again shortly after a `reply` frame** (`listSoon`,
|
||||
`ChatsState.withNewest`), which is how a chat moves up and gets its dot while the drawer is
|
||||
open. Nothing says when a reply ends: the running dot is as old as the last read.
|
||||
- **There is still no stream frame for a media job.** `watchMedia` polls while the screen is in
|
||||
front; a job's `told` turning true makes the chat read itself again (`woke`), through the same
|
||||
`rereadAndFollow` as the `reply` frame, so the two cannot follow one reply twice.
|
||||
- **A transcript read again goes through `ChatState.withNewest`**, never
|
||||
`copy(messages = read.messages)`: the newest page replaces only itself, and the older pages a
|
||||
person loaded stay above it. Replacing them takes the row being read from under the reader.
|
||||
Only a compaction, which rewrites the transcript, reads it whole (`refresh(whole = true)`).
|
||||
- **A turn nobody typed is `Message.byMachine`** (`machine`, or `origin` `harness`): a
|
||||
`MachineNote`, never the person's bubble. An empty finished reply after one, in an agent chat,
|
||||
is the server's one line (`replyUnrecorded`); a reply still being written is never that.
|
||||
- **The model lists are narrowed where they are read** (`ApiClient.modelList`, `agentModelList`:
|
||||
`capability` `chat` only). A picker fed from anywhere else narrows with `forChat()` itself.
|
||||
- **`gen-strings.py --check` reads keys as `[a-z_]+`**: a key with a digit (`media_model3d`) is
|
||||
|
||||
Reference in new issue
Block a user