feat(FN-3606): correct chat-bound message routing and stabilize merger auto

Merger receives substantial hardening: autostash race-rescue with de-duplication, advisory observer for destructive operations, and subject-line preference for step headlines. The TUI gains a narrow log-split mode on System panel with proper back-navigation to the main pane. Chat header and mobile n

Fusion-Task-Id: FN-3606
This commit is contained in:
Fusion
2026-05-06 18:53:53 -07:00
committed by gsxdsm
parent 63492e18fd
commit c44beada79
5 changed files with 29 additions and 1 deletions

View File

@@ -1431,7 +1431,9 @@ export function createSendMessageTool(messageStore: MessageStore, fromAgentId: s
}
try {
const messageType = params.type ?? "agent-to-agent";
const inferredDashboardRecipient = normalizeMessageParticipant(params.to_id, "user");
const messageType = params.type
?? (inferredDashboardRecipient.id === DASHBOARD_USER_ID ? "agent-to-user" : "agent-to-agent");
const recipientType: "user" | "agent" = messageType === "agent-to-user" ? "user" : "agent";
const recipient = recipientType === "user"
? normalizeMessageParticipant(params.to_id, recipientType)