Skip to content

P5 O9 M8: the sitting's fixes — running state, Stop's partial reply, steers, the model and mode chips, (no content), docked menus - #334

Merged
SSFSKIM merged 16 commits into
masterfrom
p5-o9-sitting
Oct 29, 2026

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

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 claude on 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.

  • Running state follows the controls port's 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)
  • Stop keeps the partial reply. Streamed text cut by an interrupt stays as a settled row in its turn, as lane B keeps it. Each cut carries the bridge's step-end time and is placed in the turn that ran at that time. That holds under a replayed watch and while the disk lags. Acceptance 6 is read as "nothing stays live" (the architect's ruling). (593e2c3, e82035a)
  • Words sent mid-turn are the owner's message, not a "sminos: delivered:" notice. This is in the SHARED disk reader (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)
  • The model chip shows what the session runs on: the model and effort of the latest main-loop step start, so a typed /model or /effort shows. (389e9fd)
  • The Mode chip names no mode, because the bridge reports none. It reads "Mode", disabled with "Not reported by the terminal session: its mode is changed in the terminal". Session info's Mode row reads the same way. Before, it said "Auto" for a manual session. (6f2c9f2)
  • "(no content)" records are no bubble, turn, command output or title. SHARED with lane B: it is the engine's empty placeholder. (5923e4f)
  • A toolbar menu closes when a docked card hides the draft. SHARED: the Mode, Location, Context, Plus and Model menus no longer jump to 0,0 over the traffic lights. (0bb81fd)
  • Tests: a lane A Read approves from the hover card, while Bash and Write offer "Open session" only, as in lane B under §5.1 (8c0710e). An e2e guard checks that a terminal session that ends stays in the sidebar (4f86967).
  • The sitting's record: Outcomes (eb560f6) and the Decision Log (5edb2df). M8 stays unticked until this PR lands.

Validation Evidence

The code tree is 11f25bf, merged with master 7ccf514. The head, 87da725, adds only an Outcomes record on top.

  • Landing set, label o9fix-land, run 40822764729 on 11f25bf: green on the first attempt (45 jobs succeeded, 4 skipped), with no flaky lines. It ran:
    • class 1a (static, unit, probes) on the pool, plus e2e:desk-web;
    • every HOSTED_MAC_E2E group, hosted;
    • e2e:default, hosted;
    • packaged;
    • unit:darwin, because scripts/darwin-unit-files.sh lists src/engine-host/fs/replay/runner.test.ts beside the backfill change.
    • No src/endpoint change, so desk-web-hub is not needed.
  • Earlier heads: class 1a + desk-web 40821756631 on fd3a56f, 40818099845 on 5923e4f; hosted e2e:default 40818079428 on 5923e4f.
  • e2e:lane-a (mini), label o9fix-lanea, run 40830106480 on 11f25bf: green, 11 passed. It covers the retitled Stop scene, the Mode chip's new name, and the ended-session guard.
  • Review: doperpowers:reviewer-high over eb560f6..5923e4f found one P2: a replayed watch filed a cut reply under a newer prompt. It was fixed in e82035a. The re-review over 5923e4f..fd3a56f came back correct, with no material findings.
  • Local: typecheck (node, web, e2e, desk-web) and eslint on the touched files were clean. Focused vitest passed: renderer transcript/lane-a/owner/session, 1955; node engine-host/sessions/lane-a, 3771; desk-web, 798.

Unresolved Review Findings

None open. These limits are known and accepted by the architect:

  • Kept partial rows are lost on a remount, the same as lane B, which loses partial text on reload.
  • A profile whose index already holds a "(no content)" title keeps it until the next summary. There is no migration.
  • An SDK session writes no 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.
  • The ended session leaving the sidebar (item 6) was not reproduced in code. Its e2e guard is green, so the cause is environmental: the scratch profile indexed the owner's real ~/.claude/projects, so the idle ended session sank below "Show more" under "This Mac".

Residue

  1. The bridge does not report the live permission mode (sminos 1.27.10). It is in no snapshot, heartbeat, read or op. Classic hook inputs carry permission_mode, so sminos could expose it on the heartbeat or read status. The architect is writing the tracker row from the evidence sent.
  2. The accent colour of to-human prose and approving non-read-only tools from the hover card are shared with lane B and are deliberate today. The architect is registering them on the owner's deferred UX list. Slash-command rendering and a compaction indicator are already Transcript: render slash commands as Claude Desktop does (no output card for setting changes) #330 and Show a compaction in progress in the pane and the sidebar #331.
  3. The engine re-verification: the resumed lane B session ran 2.1.312 against MAWS's verified 2.1.296. The likely event not understood is system/session_title_changed. The architect is handling this separately.
  4. isBridgeWake now exists twice, in src/engine-host/fs/backfill.ts and the renderer's delivery-frame.ts, because engine-host can't import renderer code. A shared home under @shared would remove the copy.
  5. O3-C's fold: this PR changes src/main/lane-a/state.ts and reshape.ts and their tests, which O3-C moves to src/services/lane-a/. Whichever lands second carries the change across the move.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)

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)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T06:09:42.123365Z 11f25bf PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +58 to +62
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;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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)
@SSFSKIM
SSFSKIM merged commit f0af710 into master Oct 29, 2026
SSFSKIM added a commit that referenced this pull request Oct 29, 2026
…d; tracker rows for the bridge's unreported mode and the doubled isBridgeWake

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Oct 29, 2026
…o3-c for landing

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant