fix(app-server): add duration_ms to McpToolCallItem (#7605)

Seems like a nice field to have, and also VSCE does render this one.
This commit is contained in:
Owen Lin
2025-12-04 13:45:07 -08:00
committed by GitHub
parent 903b7774bc
commit 342c084cc3
2 changed files with 10 additions and 0 deletions

View File

@@ -1141,6 +1141,9 @@ pub enum ThreadItem {
arguments: JsonValue,
result: Option<McpToolCallResult>,
error: Option<McpToolCallError>,
/// The duration of the MCP tool call in milliseconds.
#[ts(type = "number | null")]
duration_ms: Option<i64>,
},
#[serde(rename_all = "camelCase")]
#[ts(rename_all = "camelCase")]