Repository navigation
To-human message: interim treatment for #332 (text colour, accent bar, "To you" label) - #371
Conversation
…cent bar and a "To you" label per message, in place of accent-coloured text per span Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…cks and the streaming caret reach through the message wrapper Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…comment names the issue as 332 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: 99b1ad531f
ℹ️ 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".
| if (node.tagName === 'code' || node.tagName === 'pre') touch(); | ||
| else node.children = node.children.flatMap(transform) as Element['children']; |
There was a problem hiding this comment.
Keep non-text blocks inside the enclosing message wrapper
When a closed message contains a horizontal rule between paragraphs, such as <message>\nFirst\n\n---\n\nSecond\n</message>, the hr never calls touch(), leaving its message ID null. Grouping consequently ends the first wrapper and creates another for the second paragraph, displaying two “To you” labels and separate bars for one message. An image-only paragraph has the same problem because img has no text children. Associate these visible non-text elements with the open message so they remain inside its single wrapper.
Useful? React with 👍 / 👎.
Interim treatment for #332. #332 stays open: the full redesign is for the later UX sitting.
The owner read accent-coloured to-human messages as errors. Approved interim treatment, in place of
.owner-message-ink { color: var(--accent) }:How it is drawn:
.owner-message-inkelement per message, not one per text span. For a message inside assistant text,message-ink.tsnow removes the tags and groups the top-level blocks that carry the message into a single wrapper div; for the message tool's row, the class is on the row div. The class stays the locator desk-web's e2e specs use.presenter.cssdraws the bar and the::beforelabel with tokens only (--accent,--space,--text-ui-sm), and re-creates Streamdown's block spacing inside the wrapper.transcript.css's wide-table/code breakout and streaming-caret rules reach through the wrapper.Tests: Presenter unit tests assert one mark per message (multi-block, adjacent, nested legacy mark, narration outside); desk-web's
depth-infospec now asserts the computed treatment in both themes (text colour is--fg, bar is--accent2px solid, label is "To you" in--accent). No existing test asserted the accent text colour; the locator-text assertions were adjusted where a mark now holds a whole paragraph.Gate:
scripts/ci-gate.sh --gates static,unit,e2e:desk-web,e2e:to-human --class1a pool --runner macos --peer nonegreen on run 41120325546. An independent low-rung review found three P2s (nested legacy mark split a message in two, breakout selectors and streaming caret did not reach through the wrapper), all fixed.Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)