[PR #3262] [MERGED] Log a chat message once, as [CHAT] #4873

Closed
opened 2026-11-03 05:08:32 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3262
Author: @Domanffe
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/28/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/chat-log-duplicate


📝 Commits (1)

📊 Changes

1 file changed (+0 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game/remote.rs (+0 -1)

📄 Description

🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself.

Game::chat_line logged [chat] {text} and then handed the same text to
Chat::add_message, which logs [CHAT] {content} through
logging::write_only. Every message in the log therefore sat on two lines,
and the [chat] copy also evaded the [CHAT] filter log_for_report applies
when it attaches a log to a bug report.

Vanilla's ChatComponent.logChatMessage is the single line add_message
already writes, so the call in chat_line is a leftover. Both sites arrived in
the same commit, and chat_line is the only writer of [chat] in the tree.

Before, from this machine's log (%APPDATA%/horizon/logs/2026-10-25-4.log):

[03:19:52] [Render thread/INFO]: [chat] MineDest » Идет проверка, пожалуйста, подождите...
[03:19:52] [Render thread/INFO]: [CHAT] MineDest » Идет проверка, пожалуйста, подождите...

After: one line, [CHAT] .... The write_only call in add_message is
untouched, so nothing that reads the log loses a message.

Fixes #3261. One deletion, no test: the pinned behaviour is a log line, and the
site the branch removes is the duplicate. The pr_ready block follows as a
comment.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/3262 **Author:** [@Domanffe](https://github.com/Domanffe) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/chat-log-duplicate` --- ### 📝 Commits (1) - [`88398e8`](https://github.com/horizon-rust/horizon/commit/88398e8bdaa57c7ea6e81a7ce64f6ff04f889ac7) Log a chat message once ### 📊 Changes **1 file changed** (+0 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote.rs` (+0 -1) </details> ### 📄 Description > 🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself. `Game::chat_line` logged `[chat] {text}` and then handed the same text to `Chat::add_message`, which logs `[CHAT] {content}` through `logging::write_only`. Every message in the log therefore sat on two lines, and the `[chat]` copy also evaded the `[CHAT]` filter `log_for_report` applies when it attaches a log to a bug report. Vanilla's `ChatComponent.logChatMessage` is the single line `add_message` already writes, so the call in `chat_line` is a leftover. Both sites arrived in the same commit, and `chat_line` is the only writer of `[chat]` in the tree. Before, from this machine's log (`%APPDATA%/horizon/logs/2026-10-25-4.log`): ``` [03:19:52] [Render thread/INFO]: [chat] MineDest » Идет проверка, пожалуйста, подождите... [03:19:52] [Render thread/INFO]: [CHAT] MineDest » Идет проверка, пожалуйста, подождите... ``` After: one line, `[CHAT] ...`. The `write_only` call in `add_message` is untouched, so nothing that reads the log loses a message. Fixes #3261. One deletion, no test: the pinned behaviour is a log line, and the site the branch removes is the duplicate. The `pr_ready` block follows as a comment. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:08:32 +07:00
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#4873
No description provided.