mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(site): pass workspace and workspaceAgent props to AgentChatPageView (#23988)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user