Skip to content

To-human message: interim treatment for #332 (text colour, accent bar, "To you" label) - #371

Merged
SSFSKIM merged 3 commits into
masterfrom
fix/to-human-interim-ink
Oct 30, 2026
Merged

SSFSKIM merged 3 commits into
masterfrom
fix/to-human-interim-ink

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 30, 2026

Copy link
Copy Markdown
Owner

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) }:

  • The message text is back in the normal text colour.
  • One thin (2px) accent bar runs down the message's left edge.
  • A small accent "To you" label sits at its top.

How it is drawn:

  • One .owner-message-ink element per message, not one per text span. For a message inside assistant text, message-ink.ts now 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.
  • A message that starts or ends on its own line starts or ends its own paragraph, so narration on neighbouring lines stays outside the bar. A message inside a line keeps its paragraph and the whole paragraph is inside the bar.
  • presenter.css draws the bar and the ::before label 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.
  • Same presenter for every lane and desk-web.

Tests: Presenter unit tests assert one mark per message (multi-block, adjacent, nested legacy mark, narration outside); desk-web's depth-info spec now asserts the computed treatment in both themes (text colour is --fg, bar is --accent 2px 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 none green 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)

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

chatgpt-codex-connector Bot commented Oct 30, 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-30T20:21:08.080022Z 99b1ad5 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: 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".

Comment on lines +76 to +77
if (node.tagName === 'code' || node.tagName === 'pre') touch();
else node.children = node.children.flatMap(transform) as Element['children'];

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 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 👍 / 👎.

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