Skip to content

Chat markdown: bold next to full-width punctuation renders as literal asterisks (「**《书名》,借书人**」) #33723

Closed

Description

@objectstack-fleet

repo:cloud#5 · hotlong · session_01Q4EjjPP1zuWBNq3nBXVei9

Part of objectstack-ai/cloud#3825 (seen on 11-13 in the hosted chat). Ruled on objectstack-ai/cloud#3825 by the account owner in seat session session_01Q4EjjPP1zuWBNq3nBXVei9: 「同意」 to the decision request (comment 6891267721), so all four items as recommended. The promotion bar is unchanged: ≥95% correct, 100% cited, 0 leaks (comment 6721225525).

Change

In the chat renderer (ui/packages/plugin-chatbot), **…** next to CJK full-width punctuation renders as literal asterisks. Fix the emphasis parsing for CJK punctuation boundaries so that 「《书名》,借书人」 renders bold. Add tests.

Activity

  1. added
    bug
    on Nov 15, 2026
  2. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:ui · p3 · 2026-11-15T08:47Z

    ⛔ Not a claim.

    Chat markdown: bold next to full-width punctuation renders as raw asterisks. Display, p3 (pre-graded).

  3. added
    domain:ui
    pm:queue
    on Nov 15, 2026
  4. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

    Claim: PM loop round 2 · 2026-11-15T17:18Z
    Session: session_01ADHkmRdYmFgg8k5whypBNq (card thread, dev) · seat session_01ADHkmT2NE3iyG1o6TDg3sf
    Account: os-steve
    Branch: claude/project-thread-agxd8a
    Worktree: objectstack-issue-33723
    Domain: domain:ui
    Seat: domain:ui#1
    File surface: the chat message markdown/emphasis path under ui/packages/plugin-chatbot/** (and ui/packages/components/src/lib/inline-markdown.tsx only if the chat reaches it) with its tests, root .changeset/. A new dependency stops for the seat.
    Container & model: S, mode:thread, model: default tier, effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: bold next to CJK full-width punctuation in chat answers shows literal asterisks | no earlier card fixed the CJK flanking case | every Chinese-language chat user
    Thread-read: 6891901071
    Premise: holds as filed (hosted chat, 11-13); the dev reproduces it with a red unit case on origin/main before editing and stops with premise_still_valid: false if it does not
    Serial constraints cleared: no other pm:dispatched domain:ui card claims these files (live read: seat 2 holds #33988 #33987 #28085 #33857 #33856, seat 1 #33758 in the merge queue)
    Scope: Fix the emphasis delimiter rule at CJK punctuation boundaries at its root so 「《书名》,借书人」 renders bold; ASCII emphasis and code spans unchanged; pins + ablation. Fixes #33723. Order: /mnt/project-files/ui-seat1/standard-order.md + 33723-delta.md. Summons: the maintainer opened the ui lane's p3 cards (2026-11-15T17:13Z, 「skills ui 车道开放 p3 卡」) while no ui p1/p2 is dispatchable.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 15, 2026
  6. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmRdYmFgg8k5whypBNq
    os-dev-report

    {
      "issue": 33723,
      "status": "done",
      "branch": "claude/project-thread-agxd8a",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34079",
      "head": "ac2b0a14",
      "session": "session_01ADHkmRdYmFgg8k5whypBNq",
      "premise_still_valid": true,
      "summary": "Premise holds in corrected form: the card's own example already renders bold on main fb79d47c; the defect is a CJK letter beside ** with full-width punctuation on the other side (e.g. 借书人是**《书名》**的作者, 他说**你好,**我们走). Fixed at the tokenizer by adding remark-cjk-friendly ^2.3.4 (MIT, parseOnly entry; option A, chosen by the seat) to @object-ui/plugin-chatbot and passing it through streamdown's plugins.cjk slot from one shared constant (src/chatMarkdownPlugins.ts) at both call sites, MessageResponse and ReasoningContent. A caller's own plugins keep the rule. Bundle cost +5,580 B gzip (esbuild, streamdown with vs without).",
      "tests": "chatAnswerLayout-13032.test.tsx new top-level describe: 8 reds-turned-green, 8 already-bold controls (card example included), 4 CommonMark controls (ASCII, a**\"b\"**c literal, escaped \\*\\*, code span), 2 wiring pins; file 29/29 green at head. Ablation (ablation-replace, plugin removed from CHAT_MARKDOWN_PLUGINS, commit 8bc8bf07): anchor 1->0 landed, Tests 10 failed | 19 passed, restored blob == HEAD. Package suite at 378a8dc2: 1006/1007, the one red was the vendored-directory guard on the new file in src/elements/, fixed by moving it to src/ (ac2b0a14), guard file + harness 51/51 green at head. type-check exit 0. eslint 0 errors (6 pre-existing warnings on untouched lines).",
      "gates": "dispatch-gates --commands at ac2b0a14: 59 derived, 58 run exit 0 (incl. ui vitest scripts/ 5065 passed 2 skipped), 1 NOT MEASURED: check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET (reads dist of every @objectstack dual build; derived only via pnpm-lock.yaml; CI Lint & Repo Gates runs it). --ran reconciliation: 59 accounted, 0 UNRUN. check:new-line-citations (ui): 0 new. CI check-runs: in_progress at report time (Build & E2E UI judges the eager-closure budget).",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "4 — mcp__github__issue_read x3 (get, get_comments x2), mcp__github__pull_request_read x1 (get); no write tools",
      "api_writes": "2 — relay pr_create (PR #34079, run 43744092826, 10207 bytes sent == stored, assignee os-steve); this os-dev-report comment via post-stamped",
      "files_changed": [
        ".changeset/33723-chat-cjk-bold.md",
        "pnpm-lock.yaml",
        "ui/packages/plugin-chatbot/package.json",
        "ui/packages/plugin-chatbot/src/__tests__/chatAnswerLayout-13032.test.tsx",
        "ui/packages/plugin-chatbot/src/chatMarkdownPlugins.ts",
        "ui/packages/plugin-chatbot/src/elements/message.tsx",
        "ui/packages/plugin-chatbot/src/elements/reasoning.tsx"
      ],
      "line_budget": "235 additions, 1 deletion (PR read); lockfile add-only (+100)",
      "deviations": [
        "New dependency: stopped for the seat as the delta requires; the seat chose A in the seat thread before any push.",
        "Tree is 5 commits behind origin/main at PR open; none touch plugin-chatbot or pnpm-lock.yaml (name diff read), so no merge and no re-run.",
        "check:dual-build-cjs-loads NOT MEASURED (exit 3, prerequisite), declared to CI.",
        "Eager-closure budget not measured locally (needs a full Console build); CI Build & E2E UI judges it."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }

    Stamped 2026-11-15T17:59Z.

  7. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

    Landed

    PR #34079 MERGED at 2026-11-15T22:33Z as 393a576cd0 through the merge queue; Fixes #33723 closed this card. Delivered: chat Markdown in @object-ui/plugin-chatbot (message and reasoning) now runs the markdown-cjk-friendly rule (remark-cjk-friendly, MIT, parse-only entry) through one shared CHAT_MARKDOWN_PLUGINS constant, so a **bold** run between a CJK letter and full-width punctuation renders bold. Nothing remains on this card.

    State change: pm:dispatched removed and the assignee cleared in this stroke.

  8. removed
    pm:dispatched
    on Nov 15, 2026
  9. added a commit that references this issue on Nov 16, 2026
    393a576
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdomain:uipriority:p3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions