Skip to content

Commit 022b412

Browse files
committed
refactor(ui): align mcp app rendering with tools list metadata
Signed-off-by: Andrew Harvard <aharvard@squareup.com>
1 parent d14655b commit 022b412

9 files changed

Lines changed: 493 additions & 686 deletions

File tree

ui/goose2/src/features/chat/hooks/useAcpStream.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import type {
2929
AcpUsageUpdatePayload,
3030
AcpReplayCompletePayload,
3131
} from "./acpStreamTypes";
32+
import { warmSessionToolsCatalog } from "../ui/mcpAppCatalog";
3233

3334
function getAssistantProviderId(sessionId: string): string | undefined {
3435
const pending = useChatStore
@@ -516,6 +517,7 @@ export function useAcpStream(enabled: boolean): void {
516517
event.payload.sessionId,
517518
event.payload.gooseSessionId,
518519
);
520+
warmSessionToolsCatalog(event.payload.gooseSessionId);
519521
}),
520522
);
521523

ui/goose2/src/features/chat/ui/ChatView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { getHomeDir } from "@/shared/api/system";
2525
import { ArtifactPolicyProvider } from "../hooks/ArtifactPolicyContext";
2626
import type { ModelOption } from "../types";
2727
import { ChatContextPanel } from "./ChatContextPanel";
28-
import type { McpAppMessageRequest } from "./McpAppToolOutput";
28+
import type { McpAppMessageRequest } from "./McpAppView";
2929

3030
const EMPTY_MODELS: ModelOption[] = [];
3131

0 commit comments

Comments
 (0)