fix(site): pass workspace and workspaceAgent props to AgentChatPageView (#23988)

This commit is contained in:
Danielle Maywood
2026-04-02 21:17:27 +00:00
committed by GitHub
parent b0a6802d12
commit 0cb942aab2
3 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -1118,8 +1118,8 @@ const AgentChatPage: FC = () => {
parentChat={parentChat}
persistedError={persistedError}
isArchived={isArchived}
hasWorkspace={Boolean(workspaceId)}
workspace={workspace}
workspaceAgent={workspaceAgent}
store={store}
editing={editing}
pendingEditMessageId={pendingEditMessageId}
@@ -112,7 +112,6 @@ const StoryAgentChatPageView: FC<StoryProps> = ({ editing, ...overrides }) => {
persistedError: undefined as ChatDetailError | undefined,
parentChat: undefined as TypesGen.Chat | undefined,
isArchived: false,
hasWorkspace: true,
store: createChatStore(),
pendingEditMessageId: null as number | null,
effectiveSelectedModel: defaultModelConfigID,
@@ -84,7 +84,6 @@ interface AgentChatPageViewProps {
parentChat: TypesGen.Chat | undefined;
persistedError: ChatDetailError | undefined;
isArchived: boolean;
hasWorkspace: boolean;
workspaceAgent?: TypesGen.WorkspaceAgent;
workspace?: TypesGen.Workspace;
@@ -176,7 +175,6 @@ export const AgentChatPageView: FC<AgentChatPageViewProps> = ({
parentChat,
persistedError,
isArchived,
hasWorkspace,
workspaceAgent,
workspace,
store,
@@ -351,7 +349,7 @@ export const AgentChatPageView: FC<AgentChatPageViewProps> = ({
: {})}
isRegeneratingTitle={isRegeneratingTitle}
isRegenerateTitleDisabled={isRegenerateTitleDisabled}
hasWorkspace={hasWorkspace}
hasWorkspace={Boolean(workspace)}
isArchived={isArchived}
diffStatusData={diffStatusData}
isSidebarCollapsed={isSidebarCollapsed}
@@ -466,7 +464,7 @@ export const AgentChatPageView: FC<AgentChatPageViewProps> = ({
/>
),
},
...(hasWorkspace && workspaceAgent
...(workspace && workspaceAgent
? [
{
id: "terminal",