[GH-ISSUE #1372] [server-thread] Chat loses colors and text formatting #399

Closed
opened 2026-11-02 15:38:47 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @rdbtCVS on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1372

Tested 83fa14e51b89eab728b8e233e9e5d95296bef93d, Linux/Vulkan, fresh equivalent singleplayer worlds with each mode explicitly selected and Chat Colors enabled.

Reproduce with --server-thread:

  1. /tellraw @s {"text":"GREEN","color":"green","bold":true}
  2. Obtain a diamond to trigger the Diamonds! advancement.

Expected: the first message is green and bold; [Diamonds!] is green. Both work with --no-server-thread, and native 26.3 sends the corresponding styled components.

Actual: threaded chat displays both as plain white text. The same probe also loses hex colors, italic and underline; command errors lose their red styling.

Evidence: reproduced in chat-{a,b}/styles-*/tellraw-styles.png and feedback-*/diamond-feedback.png under .local/singleplayer-audit/. Settled logs retain the words. Native native-chat-reference/chat-components.jsonl retains the green advancement/tellraw styles.

Hypothesis: remote.rs flattens chat components with plain() and reconstructs Text::literal; local messages on a remote connection are also flattened.

Acceptance: preserve server component styles in threaded chat, including nested advancement links and command errors.

Originally created by @rdbtCVS on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1372 Tested `83fa14e51b89eab728b8e233e9e5d95296bef93d`, Linux/Vulkan, fresh equivalent singleplayer worlds with each mode explicitly selected and Chat Colors enabled. Reproduce with `--server-thread`: 1. `/tellraw @s {"text":"GREEN","color":"green","bold":true}` 2. Obtain a diamond to trigger the Diamonds! advancement. Expected: the first message is green and bold; `[Diamonds!]` is green. Both work with `--no-server-thread`, and native 26.3 sends the corresponding styled components. Actual: threaded chat displays both as plain white text. The same probe also loses hex colors, italic and underline; command errors lose their red styling. Evidence: reproduced in `chat-{a,b}/styles-*/tellraw-styles.png` and `feedback-*/diamond-feedback.png` under `.local/singleplayer-audit/`. Settled logs retain the words. Native `native-chat-reference/chat-components.jsonl` retains the green advancement/tellraw styles. Hypothesis: `remote.rs` flattens chat components with `plain()` and reconstructs `Text::literal`; local messages on a remote connection are also flattened. Acceptance: preserve server component styles in threaded chat, including nested advancement links and command errors.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#399
No description provided.