Skip to content

feat(chat): add theme-aware Markdown colors - #1

Merged
nicolasmendonca merged 1 commit into
mainfrom
feat/chat-markdown-colors
Nov 19, 2026
Merged

nicolasmendonca merged 1 commit into
mainfrom
feat/chat-markdown-colors

Conversation

@nicolasmendonca

Copy link
Copy Markdown
Owner

Change

Improve readability of assistant-chat Markdown with colors derived from the active theme. This PR targets main in this fork, not the original repository.

  • Color H1-H6, bold/italic text, inline code, list markers, table headers and quotation rails using existing syntax roles.
  • Keep ordinary prose neutral and preserve size, weight, italics and fenced-code syntax highlighting.
  • Apply to assistant-chat Markdown, including narration using the same renderer. No parser, raw HTML, settings, dependency or API-contract changes.
  • Include a comprehensive Markdown example, reproducible isolated-demo browser verification/screenshot script and changelog fragment.

Design precedent: Codex theme-based Markdown scopes; no third-party source code or palette copied.

Validation

  • All 25 native theme/mode variants passed real Chromium chat-demo checks, actual-theme assertions, exact Markdown source copy and runtime-error checks. Screenshots were reviewed before approval.
  • bun run typecheck passed.
  • 170 targeted tests across 10 files passed, covering renderer, themes, conventions, Markdown/parser/HTML/clipboard/outline and changelog.
  • Four cleanup fault-injection checks and independent re-review passed after fixing preview cleanup.
  • Production/demo builds, generated types/themes freshness, workflow syntax and whitespace checks passed.
  • Full bun run check fast is NOT green: runner/cache-test failures included missing jq (also reproduced on unchanged base), then tool timeout terminated the broader unit lane. Local Node 26 differs from CI Node 22. Other failures are not claimed to be baseline-confirmed.
  • Complete integration/browser/native lanes and full CI were not run.

Reproduce visual checks:

CHROME_PATH=/path/to/chromium UI_EVIDENCE_DIR=/path/to/evidence bun scripts/chat-markdown-colors-preview.ts

Uses docs/examples/chat-markdown-colors.md and the actual disposable demo, never a real herdr session. Published Git tree matches reviewed local tree. Existing unsupported Markdown constructs remain compatibility examples, not newly enabled features.

PR creation only: no merge or auto-merge requested.

[verified] Independent review passed after preview cleanup fix.

Copy link
Copy Markdown
Owner Author

Visual demo — theme-aware chat Markdown

Real screenshots from the isolated Ovis chat demo at commit 11e0352, cropped to the typography section (820 × 550). These are rendered chat output, not HTML mockups.

Headings, emphasis, inline commands and list markers follow each active palette, while ordinary prose stays neutral.

Codex — dark

Codex dark: colored Markdown headings, emphasis, inline commands and list markers

Catppuccin — dark

Catppuccin dark: the same Markdown specimen using its theme colors

Codex — light

Codex light: the same Markdown specimen on the light theme

Scope: these are three representative examples; the real-app visual checks passed for all 25 supported theme/mode variants. Existing combined/nested-emphasis limitations are intentionally visible in the specimen and are not parser changes in this PR.

Full Markdown specimen · Reproducible screenshot script

Screenshot assets are stored on a separate documentation branch and linked by immutable commit, so they do not add binary files to this feature PR.

@nicolasmendonca
nicolasmendonca merged commit c827329 into main Nov 19, 2026
nicolasmendonca pushed a commit that referenced this pull request Nov 24, 2026
…st screen, always-QR and About update check (devswha#4435)

## 0.5.10 relay/app integration (one combined review)

Owner's method for 0.5.10: every lane put its slice on
`release/relay-0510` (per-slice commits, subject prefixed with the slice
name). This PR runs the one combined pass: check fast + full CI once,
one dori review, one omo gate (anthropic/claude-opus-5-5 high) over the
whole diff, t13r on the security slices, one fix round. A bad slice can
be dropped by reverting its commits.

Base: `860d1b5b6` (main with 0.5.9).

### Slices
| slice | commits | what | t13r |
|---|---|---|---|
| approve-card | fe336dd..112bfd1, b527564 | A PC with no account
member lets its first phone in by a tap in the PC's own window (digits
shown, "allow only if your phone shows this number"); any other window
gets 403. Phone waiting screen: "맥에서 [허용]을 눌러 주세요". QR key confirm: [이
PC에서 확인] opens the existing confirm page (POST
/api/account/confirm-page, own window only); no route approves a key. |
YES |
| uvb-S1, S1b | d32628d, e8a755b, d028865 | Unified sidebar adds
the account PCs by itself; nothing to press (no Check again, digits,
Change PC); header dot. | - |
| uvb-S2 | b9bee3d | Relay drive devices may add account PCs; a
vouched PC join is a WATCH row. | YES |
| uvb-S3, S3b | e84272c, fe760e2 | Shell opens any online PC by
itself, moves off one that goes away; account-only PCs only when
confirmed, past new_until, not introduction-only. | YES |
| uvb-S4 | ddedeb1 | Vouched PC join approved by a plain tap, bound to
the joining server proven in-session and matched against the approver's
own /v1/pcs. | YES |
| phone-first-build | e62c516..80e5620 | Phone native first screen;
Android Tailscale check (manifest `<queries>` com.tailscale.ipn). Owner
OK given. | - |
| desktop-update-about | 31d609b..d1dd8a8 | Settings > About [업데이트
확인] runs the app's own update check. Replaces devswha#4427. | - |
| add-connection-qr | 5ce18df..f7312c0 | Add a connection shows a
phone QR on every tab, drops Phones and devices; PC page link
`#sign-in=` signs in, then joins that PC. Replaces devswha#4431. Owner UI OK
given. | YES |
| control-page-fold | e87df8e..a3a28f0, fixes 44fb77d..30d20c6 |
Removes the app.ovis.sh control page; 기기 끊기 / PC 빼기 (dead PC, any age) /
계정 삭제 under Settings > 기기와 PC > [계정 관리]. 모든 기기 로그아웃 was later pulled
back INTO 0.5.10 by the owner (owner-fix round below). Manage account
also reachable from the signed-in start screen (owner-approved). | YES
(PCR-1: ovis-sh/account#58, not a regression) |

### Replaced PRs
devswha#4428 (closed), devswha#4427 (closed), devswha#4431 (closed).

### Review trail
- Combined gate @f7312c09e BLOCK -> fix round -> delta gate @781e03309
BLOCK (HIGH-2) -> fixes -> delta gate @a4c9bb23b CLEAR -> MEDIUM fix
5438550..fd2e5fb CLEAR.
- control-page-fold gate @fd2e5fbdf BLOCK (hosted leave feedback) ->
fixes 44fb77d..30d20c6 (gate running).
- dori @f7312c09e BLOCK (native #picked) -> fixed 477f3d0/a4c9bb23b;
dori @a3a28f017 CLEAR; dori at the final tip running.
- Fix commits are prefixed by slice ('uvb-fix:', 'approve-card:',
'add-connection-qr:', 'control-page-fold:').

### Merge conditions
- check fast + CI green, dori CLEAR, gate CLEAR, t13r YES on
approve-card, uvb-S2/S3/S4, add-connection-qr, control-page-fold.
- Owner OK on add-connection-qr UI and phone-first-build: both given.
- Owner tests the Mac + phone preview of the final tip and says OK
(lead's condition).



## Owner-fix round (fix/owner-0510, landed as 89c9e26..cccb50f)

The owner tested the 89c9e26 previews and reported findings #1-devswha#10;
the lead added items (a) sign out every device, (c) reconnect speed, (d)
PCR-1 app side + devswha#4440 relay/account items, (e) ovis CLI cleanup (lane
ovis-cli-design), and the PC proof on re-list (devswha#65 condition). All
landed on side branch fix/owner-0510, then fast-forwarded here.

| Item | Commits |
|---|---|
| #1 signed-in 0-PC: 3 tabs + ⋮ menu | 09a09dc |
| #2 confirm an unconfirmed PC (+ two-step line, gaps) | 0325bf6,
ea87f1e, 3cc9d07 |
| devswha#3 setup row = checklist | 164012c |
| devswha#4 Tailscale serve/open (+ owner-login condition) | e614cf1,
ab20c89 |
| devswha#5 phone approve/deny of a join | 701e023, 9cf9b1a, 1dd2c61 |
| devswha#6 Direct = address line + code, no QR | 2caeb4e, e02aedc |
| devswha#7 signed-out account PC one line | 7928083 |
| devswha#8 join notice to the right windows, kept until seen | 6662003,
f718efe, dbd2f68, cccb50f |
| devswha#9 reconnect UI (grey after 1 s, card after 10 s) | 4a6247e |
| devswha#10 Inbox entry beside Settings | 0ec0dbe |
| SSH from hosted Direct -> app's own SSH screen | 1c51cb1, 3f9be0b
|
| (a) sign out every device (account#64 live) | 9b63d95, c8fa0a4,
7b2574f |
| (c) reconnect wins | 84b8ce6, 69b5c1e |
| (d) PCR-1 app retry + devswha#4440 items + Delete account wording |
e26082f, 11c8926..9f60656, e6168df |
| PC proof on re-list after ovis logout (account#65 live) | e66b12b |
| (e) ovis CLI (login/logout/approve/pair --relay) | 11c13e1,
dcae136, f363d42 |
| fake parity with account#62/devswha#63, red-test fixes, B1b | 9a47489,
25ad3d9, bcf5059, 181884b, 2072a04, 15cea4f, 1674ca5,
ea66c62 |

Review trail for the round: security-triage YES per item (Tailscale
routes with the owner-login condition; confirm UI conditions; sign-out
wording; join notice; SSH handoff; Decline; logout/leave with PC proof;
MEDIUM pc-proof scoping ledgered as ovis-sh/account#66, MUST-CLOSE
before Step 2 opens beyond the owner). Opus gate (one pass over the
round): CLEAR at 181884b, delta CLEAR at cccb50f (join-notice MEDIUM
fixed). check fast in the CI image: green at 03fcd4e06 (unit 22471/0).

---------

Co-authored-by: sisyphus-dev-ai <[email protected]>
Co-authored-by: Claude Fable 5.2 <[email protected]>
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