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:
5
.changeset/fn-3850-remove-useless-catch.md
Normal file
5
.changeset/fn-3850-remove-useless-catch.md
Normal 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.
|
||||
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user