GsDChat.Client fixes:

- Command output not being displayed.
- Screen not cleaning up.
+ Better initial UI.
This commit is contained in:
tyuXX 2026-10-17 14:59:07 +03:00
parent b60b5a0774
commit 302d440dbd
12 changed files with 348 additions and 47 deletions

View file

@ -272,6 +272,11 @@ public class ChatClientConnection : IDisposable
{
_state.AddNotice(cmdRes.Output);
_state.SetStatus(cmdRes.Success ? "Command executed." : "Command error.", 4);
// Also add to chat as a system message for visibility
if (!string.IsNullOrEmpty(cmdRes.Output) && !string.IsNullOrEmpty(cmdRes.ChannelId))
{
_state.AddSystemMessageToChat(cmdRes.Output, cmdRes.ChannelId);
}
}
break;