[PR #4674] [MERGED] Dialog suggest_command click fills the chat input #5772

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4674
Author: @levzzz5154
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: parity/04-dialog


📝 Commits (1)

  • 04c7cfc Dialog suggest_command click inserts the command into the chat screen under it

📊 Changes

1 file changed (+14 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/dialogs.rs (+14 -2)

📄 Description

🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally.

Part of #3518

  • DialogScreen.handleDialogClickEvent: a suggest_command click event now calls insertText(command, true) on the screen the dialog leaves, i.e. replaces the input of the chat screen open under the dialog (ChatScreen::suggest_command), instead of being dropped. Open-URL, change-page (vanilla's "Don't know how to handle" log), run-command, show-dialog, custom and copy were already handled.

Vanilla methods followed: DialogScreen.handleDialogClickEvent, Screen.defaultHandleClickEvent.

Tests: none (needs a live chat screen and Game); cargo clippy -p horizon-client --bins -- -D warnings clean.

🤖 Generated with Claude Code


🔄 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/4674 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `parity/04-dialog` --- ### 📝 Commits (1) - [`04c7cfc`](https://github.com/horizon-rust/horizon/commit/04c7cfc1aff2ab27ef741b0e75478d6a3c0867b6) Dialog suggest_command click inserts the command into the chat screen under it ### 📊 Changes **1 file changed** (+14 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/dialogs.rs` (+14 -2) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. Part of #3518 - `DialogScreen.handleDialogClickEvent`: a `suggest_command` click event now calls `insertText(command, true)` on the screen the dialog leaves, i.e. replaces the input of the chat screen open under the dialog (`ChatScreen::suggest_command`), instead of being dropped. Open-URL, change-page (vanilla's "Don't know how to handle" log), run-command, show-dialog, custom and copy were already handled. Vanilla methods followed: `DialogScreen.handleDialogClickEvent`, `Screen.defaultHandleClickEvent`. Tests: none (needs a live chat screen and `Game`); `cargo clippy -p horizon-client --bins -- -D warnings` clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:14:53 +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#5772
No description provided.