mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-29 06:28:23 +02:00
fix: use correct multica session ID for permission request filtering
After merging main branch, the permission request filtering in ChatView was not working because PermissionManager was sending ACP session ID instead of multica session ID. This caused AskUserQuestion UI to not display because the session ID comparison failed. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -43,13 +43,15 @@ export class PermissionManager {
|
||||
)
|
||||
|
||||
const mainWindow = this.getMainWindow()
|
||||
// Get the multica session ID (internal) from ACP session ID
|
||||
const multicaSessionId = this.conductor.getMulticaSessionIdByAcp(params.sessionId)
|
||||
|
||||
// Send permission request to renderer
|
||||
if (mainWindow && !mainWindow.isDestroyed()) {
|
||||
mainWindow.webContents.send(IPC_CHANNELS.PERMISSION_REQUEST, {
|
||||
requestId,
|
||||
sessionId: params.sessionId,
|
||||
multicaSessionId: params.sessionId, // ACP session ID
|
||||
multicaSessionId: multicaSessionId || params.sessionId, // Use multica session ID for filtering
|
||||
toolCall: {
|
||||
toolCallId: params.toolCall.toolCallId,
|
||||
title: params.toolCall.title,
|
||||
|
||||
Reference in New Issue
Block a user