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:
@@ -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