@@ -7,7 +7,7 @@ import { openLocalPageAsTab, registerCloseGuard } from "./toolManagement";
77export function renderAgentInvocationLogsContent ( panel : HTMLElement ) : void {
88 panel . className = "settings-tab-container" ;
99 panel . innerHTML = `
10- <div class="settings-tab-content" id="agent-invocation-logs -tab">
10+ <div class="settings-tab-content" id="mcp -tab">
1111 <div class="settings-vscode-section">
1212 <h2 class="settings-vscode-section-title">
1313 MCP Server
@@ -79,8 +79,8 @@ export function renderAgentInvocationLogsContent(panel: HTMLElement): void {
7979 </div>
8080 </div>
8181
82- <div id="agent-invocation-logs -container" class="invocation-logs-container">
83- <div class="empty-state" id="agent-invocation-logs -empty" style="display: none;">
82+ <div id="mcp -container" class="invocation-logs-container">
83+ <div class="empty-state" id="mcp -empty" style="display: none;">
8484 <p>No agent invocations recorded yet.</p>
8585 <p class="empty-state-hint">Invoke tools through the MCP server to see activity here.</p>
8686 </div>
@@ -129,8 +129,8 @@ function getOutcomeBadgeStyle(outcome: string): string {
129129async function loadAndRenderLogs ( ) : Promise < void > {
130130 try {
131131 const [ serverDetails , logs ] = await Promise . all ( [ window . toolboxAPI . mcpServer . getDetails ( ) , window . toolboxAPI . agentInvocation . getLogs ( ) ] ) ;
132- const container = document . getElementById ( "agent-invocation-logs -container" ) ;
133- const emptyState = document . getElementById ( "agent-invocation-logs -empty" ) ;
132+ const container = document . getElementById ( "mcp -container" ) ;
133+ const emptyState = document . getElementById ( "mcp -empty" ) ;
134134 const table = document . getElementById ( "invocation-logs-table" ) ;
135135 const tbody = document . getElementById ( "invocation-logs-tbody" ) ;
136136 const statusLabel = document . getElementById ( "mcp-server-status" ) ;
@@ -187,7 +187,7 @@ async function loadAndRenderLogs(): Promise<void> {
187187 . join ( "" ) ;
188188 } catch ( error ) {
189189 logError ( "Failed to load agent invocation logs" , error ) ;
190- const container = document . getElementById ( "agent-invocation-logs -container" ) ;
190+ const container = document . getElementById ( "mcp -container" ) ;
191191 if ( container ) {
192192 container . innerHTML = `<div class="empty-state"><p>Error loading logs</p><p class="empty-state-hint">${ escapeHtml ( error instanceof Error ? error . message : String ( error ) ) } </p></div>` ;
193193 }
@@ -244,8 +244,8 @@ function escapeHtml(text: string): string {
244244 * Open agent invocation logs as a tab
245245 */
246246export async function openAgentInvocationLogsTab ( ) : Promise < void > {
247- registerCloseGuard ( "agent-invocation-logs " , async ( ) => {
247+ registerCloseGuard ( "mcp " , async ( ) => {
248248 return true ;
249249 } ) ;
250- await openLocalPageAsTab ( "agent-invocation-logs " , "MCP Server" , renderAgentInvocationLogsContent , "" ) ;
250+ await openLocalPageAsTab ( "mcp " , "MCP Server" , renderAgentInvocationLogsContent , "" ) ;
251251}
0 commit comments