Repository navigation
P5 O9 M8: the sitting's fixes — running state, Stop's partial reply, steers, the model and mode chips, (no content), docked menus - #334
Conversation
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…rt says a main turn is open
The pane drew "Working for Ns" through a slash command and after Stop: the disk transcript leaves those turns open
(a command's echo opens a turn nothing ends; the bridge's interrupt marker is a meta row). The session slot now passes
the transcript atRest from the controls port's turn(), the source custody reads, so such a turn draws closed ("You
stopped after" when its marker is there) while no main turn runs.
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…t request ran on The O9 sitting (item 4): after /model haiku and /effort low the chip still read Opus. Neither command reaches the bridge's stream as an event; the session's next main-loop request does, as step start's model and effort (the bridge's override applied). Main's fold keeps them, LaneAState gains effort, and the chip names the override when MAWS set one, else what the session ran on. No bridge event or read reports the permission mode. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ed, in its turn Stop dropped the partly streamed reply: the overlay dropped a step's unnamed blocks at its step-end, and the engine writes no row for what an interrupt cut. Now those blocks leave the stream as kept rows (an answer's words, a message tool's message as far as it came; never thinking), settled and under the turn the store was answering, and the session slot places them after that turn's last row (Transcript's additive placed, withPlacedRows), as lane B keeps a stopped reply's partial text. No streaming text is left behind; the e2e abort scene now asserts the text kept and nothing live. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
The O9 sitting (item 8): the Mode menu, open when the approval card docked, jumped to the window's top corner. The card hides the draft (box and toolbar) but keeps it mounted, so Radix kept the menu open on an anchor with no box and placed it at 0,0. The cause is the shared frame, the same for lane B's cards. The frame now says whether its draft shows (draft-shown.ts), and every toolbar menu (mode, model, plus, location, context) closes as it hides and stays closed when it shows again. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…l's, as for lane B The O9 sitting (item 9): the hover card read "Approval needed" with no Allow or Deny on a Bash and a Write. That is the charter's §5.1 rule for every lane (the hover approves only a read-only tool's permission), so nothing is built: these tests pin that a lane A Read is approved there through the port and a Bash or a Write offers Open session alone. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…y nothing The O9 sitting (item 6): after /exit the session left the sidebar. No code path found removes or archives the record when its terminal ends (the index keeps it and sets its holder to none; lane A's state goes null; the sidebar files records without regard to their holder), so this scene puts the case before the fake bridge on CI: the registry record and the bridge go, and the row stays listed, unarchived. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…wner's steer, not a notice A send while a turn ran showed as "sminos: delivered: and count them". On disk the bridge's appendDelivery leaves a meta user row of the sminos plugin's origin (which the reader hid, as every plugin row) and a system/informational line naming the words (which became the notice). The shared disk reader (backfill) now holds sminos's meta rows by their words, and the line that names one emits what lane B's mid-turn send reads as (steeredPrompt): the owner's words under the row's own uuid, folded into the running turn, and no notice. A line naming no row stays a notice; the bridge's other rows stay silent. Shared with lane B's history and desk-web's plane transcript, which read the same records. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… command output and no title The sitting's session opened with a "(no content)" bubble and a "Command output (no content)" card, and was titled "(no content)": the engine writes those words for a message with none (two user records a plugin's start-up left, and /reload-plugins' output). The cause is MAWS's shared disk reader, so lane B's history read the same. @shared/wire's isNoContent names them once; the backfill maps such a record to nothing (and startsTurn reads no turn boundary in it), and the summary's first prompt passes over it. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
The O9 sitting: a session the owner had switched to Manual in the terminal read Auto. No bridge event or read reports the live permission mode, and ModeChip rendered a null value as MAWS's default, Auto. ModeBinding gains unreported: lane A's chip then reads only "Mode", its reason "Not reported by the terminal session: its mode is changed in the terminal". Lane B keeps null as Auto (an unstarted session's default, W3). Session info's Mode row for a driven session reads "Not reported by the terminal session", not an earlier MAWS run's observation or the record's default. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…es to the turn that ran when it was cut Review (reviewer-high, P2): the kept rows took the transcript's latest turn when the step-end was heard, so a mount replayed an old interrupt after a newer prompt (on a watch another consumer held) froze the text under the newer prompt, and a disk read behind the stream froze it under a previous turn or none. Now main's reshaper keeps the bridge's time on each step-end, a cut carries it, and placeCuts puts the rows in the disk turn the engine was running then (the latest started at or before it, on the same clock) once the store holds a turn started after it; until then they wait last, in no turn, and are placed again as the store moves. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ns open the turn that answers them Lane B history and the local disk tail read a delivery appended after a stop, or as its turn ended, as a steer of the turn already over or as a prompt left pending beside the wake's turn. The backfill now holds such words until the next turn starts: the bridge's wake opens a turn of theirs, the first its prompt, as desk-web's view draws the same records; any other turn takes them as sent during it. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 11f25bfe57
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| let later = false; | ||
| for (const id of state.order) { | ||
| const started = Date.parse(state.turns.get(id)?.startedAt ?? ''); | ||
| if (Number.isNaN(started)) continue; | ||
| if (started > at) later = true; |
There was a problem hiding this comment.
Keep cut replies associated with their rewound branch
If a terminal session's interrupted reply is kept and the user subsequently rewinds past that turn, this lookup searches only state.order, from which rewind() in transcript/model/reduce.ts removes the hidden turns. The cut is therefore reassigned to an earlier surviving turn once the replacement prompt supplies a later timestamp, leaving discarded reply text visible under the wrong prompt. Kept cuts need to retain their owning turn and follow its rewind visibility rather than being remapped against only the surviving chronology.
Useful? React with 👍 / 👎.
…6's guard Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…d; tracker rows for the bridge's unreported mode and the doubled isBridgeWake Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…o3-c for landing Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
P5 O9 M8: the fixes from the owner's sitting (
docs/doperpowers/plans/2026-10-28-p5-o9-lane-a.md; Outcomes "The sitting", Decision Log "the sitting's fix wave").The sitting ran on a real terminal
claudeon 2026-10-29. Approvals racing the terminal, steering, Stop, compact, background shells, and resuming as lane B all worked at their core. But the session did not yet read like any MAWS session. This PR fixes that. Each fix has a test that failed first.turn(). A slash command's echo, or the bridge's interrupt marker, no longer leaves the pane at "Working for Ns". A stopped turn reads "You stopped after…". (40cef03)src/engine-host/fs/backfill.ts). A delivery while no turn runs is held for the next turn, and lane B's four idle shapes are pinned by tests. Desk-web is unaffected: it drops the line earlier. (21af56a, fd3a56f)/modelor/effortshows. (389e9fd)Validation Evidence
The code tree is 11f25bf, merged with master 7ccf514. The head, 87da725, adds only an Outcomes record on top.
HOSTED_MAC_E2Egroup, hosted;scripts/darwin-unit-files.shlistssrc/engine-host/fs/replay/runner.test.tsbeside the backfill change.src/endpointchange, so desk-web-hub is not needed.Unresolved Review Findings
None open. These limits are known and accepted by the architect:
turn_duration, so after one of its completed turns the backfill still counts a turn as running. An idle delivery there would fold as it did before. The bridge appends while idle only after a stop, and the stop clears the flag, so this should not be reachable. The re-review called it pre-existing.~/.claude/projects, so the idle ended session sank below "Show more" under "This Mac".Residue
permission_mode, so sminos could expose it on the heartbeat orread status. The architect is writing the tracker row from the evidence sent.system/session_title_changed. The architect is handling this separately.isBridgeWakenow exists twice, insrc/engine-host/fs/backfill.tsand the renderer'sdelivery-frame.ts, because engine-host can't import renderer code. A shared home under@sharedwould remove the copy.src/main/lane-a/state.tsandreshape.tsand their tests, which O3-C moves tosrc/services/lane-a/. Whichever lands second carries the change across the move.Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)