mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
fix: resolve chat goal rebase issues
This commit is contained in:
@@ -1720,8 +1720,6 @@ const AgentChatPage: FC = () => {
|
||||
persistedError={persistedError}
|
||||
isArchived={isArchived}
|
||||
chatOwner={chatOwner}
|
||||
canUpdateOtherUserChat={canUpdateOtherUserChat}
|
||||
canUpdateOtherUserChatLoading={canUpdateOtherUserChatLoading}
|
||||
canShareChat={canShareChat}
|
||||
workspace={workspace}
|
||||
workspaceAgent={workspaceAgent}
|
||||
|
||||
@@ -187,8 +187,6 @@ const StoryAgentChatPageView: FC<StoryProps> = ({ editing, ...overrides }) => {
|
||||
>["selectedMCPServerIds"],
|
||||
onMCPSelectionChange: fn(),
|
||||
onMCPAuthComplete: fn(),
|
||||
canUpdateOtherUserChat: false,
|
||||
canUpdateOtherUserChatLoading: false,
|
||||
canShareChat: false,
|
||||
...overrides,
|
||||
store,
|
||||
|
||||
@@ -103,8 +103,6 @@ interface AgentChatPageViewProps {
|
||||
persistedError: ChatDetailError | undefined;
|
||||
isArchived: boolean;
|
||||
chatOwner: ChatOwnerInfo | undefined;
|
||||
canUpdateOtherUserChat: boolean;
|
||||
canUpdateOtherUserChatLoading: boolean;
|
||||
canShareChat: boolean;
|
||||
workspaceAgent?: TypesGen.WorkspaceAgent;
|
||||
workspace?: TypesGen.Workspace;
|
||||
@@ -217,8 +215,6 @@ export const AgentChatPageView: FC<AgentChatPageViewProps> = ({
|
||||
persistedError,
|
||||
isArchived,
|
||||
chatOwner,
|
||||
canUpdateOtherUserChat,
|
||||
canUpdateOtherUserChatLoading,
|
||||
canShareChat,
|
||||
workspaceAgent,
|
||||
workspace,
|
||||
@@ -447,16 +443,10 @@ export const AgentChatPageView: FC<AgentChatPageViewProps> = ({
|
||||
const chatOwnerLabel =
|
||||
chatOwner?.name?.trim() ||
|
||||
(chatOwnerUsername ? `@${chatOwnerUsername}` : "another user");
|
||||
const isOtherUserReadOnly =
|
||||
!isArchived &&
|
||||
chatOwner !== undefined &&
|
||||
(canUpdateOtherUserChatLoading || !canUpdateOtherUserChat);
|
||||
const chatOwnerWarning =
|
||||
!isArchived && chatOwner !== undefined && !canUpdateOtherUserChatLoading
|
||||
? canUpdateOtherUserChat
|
||||
? `This is not your chat. Prompting here will use ${chatOwnerLabel}'s identity.`
|
||||
: `This chat is owned by ${chatOwnerLabel}. You have read-only access.`
|
||||
: undefined;
|
||||
const isOtherUserReadOnly = !isArchived && chatOwner !== undefined;
|
||||
const chatOwnerWarning = isOtherUserReadOnly
|
||||
? `This chat is owned by ${chatOwnerLabel}. It is read-only.`
|
||||
: undefined;
|
||||
const topGoal = currentChatGoal(goal);
|
||||
|
||||
const titleElement = (
|
||||
|
||||
Reference in New Issue
Block a user