Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/RockBot.UserProxy.Blazor/Pages/Chat.razor
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
}
</div>
<div class="d-flex align-items-center gap-2">
<span class="connection-dot @(ProxyService.IsConnected ? "connected" : "disconnected")"
title="@(ProxyService.IsConnected ? "Connected to message bus" : "Disconnected from message bus")"></span>
@if (ChatState.IsProcessing)
{
<span class="status-indicator agent-busy"
Expand Down Expand Up @@ -55,6 +53,8 @@
<button class="btn btn-sm btn-outline-light" @onclick="ToggleDarkMode" title="Toggle dark/light mode">
@(IsDarkMode ? "☀️" : "🌙")
</button>
<span class="connection-dot @(ProxyService.IsConnected ? "connected" : "disconnected")"
title="@(ProxyService.IsConnected ? "Connected to message bus" : "Disconnected from message bus")"></span>
</div>
</div>

Expand Down
6 changes: 5 additions & 1 deletion src/RockBot.UserProxy.Blazor/Services/ChatStateService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,13 @@ public void AddAgentReply(AgentReply reply, MessageCategory category = MessageCa
{
lock (_lock)
{
// When a PrimaryFinal message arrives, close the primary activity log
// Close the activity log for the source that just finished.
// PrimaryFinal closes the PrimaryProgress log (different category names);
// subagent / A2A / scheduled final replies close their own category's log.
if (category == MessageCategory.PrimaryFinal)
_activeActivityLogs.Remove(ActivityLogKey(MessageCategory.PrimaryProgress, null));
else
_activeActivityLogs.Remove(ActivityLogKey(category, reply.AgentName));

_messages.Add(new ChatMessage
{
Expand Down
Loading