Skip to content

Commit 2d2da8a

Browse files
committed
fix(web): approval rows show the command without its shell wrapper
1 parent d520d76 commit 2d2da8a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎apps/web/src/session-logic.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import {
2424
} from "@t3tools/shared/toolActivity";
2525
import type { HtmlRenderReference } from "@t3tools/shared/htmlRender";
2626
import { turnItemDetailRevision } from "@t3tools/client-runtime/work-log/item-detail";
27+
import { commandDisplayText } from "@t3tools/client-runtime/work-log/command-label";
2728
import type { McpAppReference } from "@t3tools/shared/mcpApp";
2829
import { htmlRenderFromToolItem, mcpAppFromToolItem } from "@t3tools/shared/toolOutput";
2930
import {
@@ -548,7 +549,11 @@ function projectedWorkEntry(row: OrchestrationV2ProjectedTurnItem): WorkLogEntry
548549
return {
549550
...common,
550551
label: title ?? "Approval requested",
551-
detail: item.prompt ?? item.requestKind,
552+
detail: item.prompt
553+
? item.requestKind === "command"
554+
? commandDisplayText(item.prompt)
555+
: item.prompt
556+
: item.requestKind,
552557
toolData: item,
553558
};
554559
case "user_input_request":

0 commit comments

Comments
 (0)