feat(FN-3850): normalize mention filtering for underscore handles in chat

The merge normalizes mention filtering in the chat components to handle underscore-prefixed handles, introducing a new `mentionMatching.ts` utility consumed by `AgentMentionPopup`, `ChatView`, and `QuickChatFAB`, with matching tests. It also removes a redundant try/catch in the PI approval gate (`pi

Fusion-Task-Id: FN-3850
This commit is contained in:
Fusion
2026-05-09 07:19:06 -07:00
committed by gsxdsm
parent b33b640d02
commit 2a7a0b06bd
2 changed files with 9 additions and 8 deletions

View File

@@ -0,0 +1,5 @@
---
"@runfusion/fusion": patch
---
Remove a useless try/catch wrapper in the engine's `execute-once-then-complete` approval gate. Internal cleanup; no behavior change. Eliminates the workspace's last ESLint `no-useless-catch` warning.

View File

@@ -1204,15 +1204,11 @@ export function wrapToolsWithActionGate(
}
if (gateOutcome.outcome === "execute-once-then-complete") {
try {
const result = await originalExecute(...args);
if (gateOutcome.approvalRequestId) {
await gateContext.markApprovalCompleted?.(gateOutcome.approvalRequestId);
}
return result;
} catch (error) {
throw error;
const result = await originalExecute(...args);
if (gateOutcome.approvalRequestId) {
await gateContext.markApprovalCompleted?.(gateOutcome.approvalRequestId);
}
return result;
}
if (gateOutcome.outcome === "block") {