@@ -435,8 +435,9 @@ export function registerMessageListeners(
435435 case conversationClickRequestType . method :
436436 case listMcpServersRequestType . method :
437437 case mcpServerClickRequestType . method :
438- case tabBarActionRequestType . method :
439- // Special handling for tab bar actions
438+ case tabBarActionRequestType . method : {
439+ let success = false
440+ // handling for show_logs button
440441 if ( message . params . action === 'show_logs' ) {
441442 languageClient . info ( '[VSCode Client] Received show_logs action, showing disclaimer' )
442443
@@ -451,23 +452,22 @@ export function registerMessageListeners(
451452 // Open the log directory in the OS file explorer directly
452453 languageClient . info ( '[VSCode Client] Opening logs directory' )
453454 await vscode . commands . executeCommand ( 'revealFileInOS' , vscode . Uri . file ( logPath ) )
454- const result = { ...message . params , success : true }
455- void webview ?. postMessage ( {
456- command : message . command ,
457- params : result ,
458- } )
455+ success = true
459456 } else {
460457 // Fallback: show error if log path is not available
461458 void vscode . window . showErrorMessage ( 'Log location not available.' )
462459 languageClient . error ( '[VSCode Client] Log location not available' )
463- const result = { ...message . params , success : false }
464- void webview ?. postMessage ( {
465- command : message . command ,
466- params : result ,
467- } )
460+ success = false
468461 }
462+
463+ void webview ?. postMessage ( {
464+ command : message . command ,
465+ params : { ...message . params , success : success } ,
466+ } )
467+
469468 break
470469 }
470+ }
471471 // eslint-disable-next-line no-fallthrough
472472 case listAvailableModelsRequestType . method :
473473 await resolveChatResponse ( message . command , message . params , languageClient , webview )
0 commit comments