fix: resolve chat goal rebase issues

This commit is contained in:
Michael Suchacz
2026-06-02 11:03:17 +00:00
parent dd6855a9be
commit 8d554f1330
6 changed files with 4 additions and 18 deletions
@@ -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,15 +443,9 @@ 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.`
const isOtherUserReadOnly = !isArchived && chatOwner !== undefined;
const chatOwnerWarning = isOtherUserReadOnly
? `This chat is owned by ${chatOwnerLabel}. It is read-only.`
: undefined;
const topGoal = currentChatGoal(goal);