44 stripEmojis
55} from "../../../components/chat-markdown-renderer"
66import { Button } from "../../../components/ui/button"
7+ import { RenderErrorBoundary } from "../../../components/ui/error-boundary"
78import {
89 AgentIcon ,
910 AttachIcon ,
@@ -7686,31 +7687,37 @@ Make sure to preserve all functionality from both branches when resolving confli
76867687 }
76877688 } }
76887689 >
7689- < ChatViewInner
7690- chat = { chat }
7691- subChatId = { paneId }
7692- parentChatId = { chatId }
7693- provider = { inferProviderFromMessages ( paneId ) }
7694- isFirstSubChat = { isFirstSubChat }
7695- onAutoRename = { handleAutoRename }
7696- onCreateNewSubChat = { handleCreateNewSubChat }
7697- onProviderChange = { handleProviderChange }
7698- teamId = { selectedTeamId || undefined }
7699- repository = { repository }
7700- streamId = { agentChatStore . getStreamId ( paneId ) }
7701- isMobile = { isMobileFullscreen }
7702- isSubChatsSidebarOpen = { subChatsSidebarMode === "sidebar" }
7703- sandboxId = { sandboxId || undefined }
7704- projectPath = { worktreePath || undefined }
7705- isArchived = { isArchived }
7706- onRestoreWorkspace = { handleRestoreWorkspace }
7707- existingPrUrl = { agentChat ?. prUrl }
7708- isActive = { paneId === activeSubChatId }
7709- isSplitPane = { true }
7710- workspaceName = { agentChat ?. name ?? null }
7711- workspaceBranch = { agentChat ?. branch ?? null }
7712- workspaceRepoName = { ( agentChat as any ) ?. project ?. gitRepo || ( agentChat as any ) ?. project ?. name || null }
7713- />
7690+ < RenderErrorBoundary
7691+ title = "Chat pane failed to render"
7692+ description = "A workspace UI error interrupted this pane. Reload the window to recover."
7693+ resetKey = { paneId }
7694+ >
7695+ < ChatViewInner
7696+ chat = { chat }
7697+ subChatId = { paneId }
7698+ parentChatId = { chatId }
7699+ provider = { inferProviderFromMessages ( paneId ) }
7700+ isFirstSubChat = { isFirstSubChat }
7701+ onAutoRename = { handleAutoRename }
7702+ onCreateNewSubChat = { handleCreateNewSubChat }
7703+ onProviderChange = { handleProviderChange }
7704+ teamId = { selectedTeamId || undefined }
7705+ repository = { repository }
7706+ streamId = { agentChatStore . getStreamId ( paneId ) }
7707+ isMobile = { isMobileFullscreen }
7708+ isSubChatsSidebarOpen = { subChatsSidebarMode === "sidebar" }
7709+ sandboxId = { sandboxId || undefined }
7710+ projectPath = { worktreePath || undefined }
7711+ isArchived = { isArchived }
7712+ onRestoreWorkspace = { handleRestoreWorkspace }
7713+ existingPrUrl = { agentChat ?. prUrl }
7714+ isActive = { paneId === activeSubChatId }
7715+ isSplitPane = { true }
7716+ workspaceName = { agentChat ?. name ?? null }
7717+ workspaceBranch = { agentChat ?. branch ?? null }
7718+ workspaceRepoName = { ( agentChat as any ) ?. project ?. gitRepo || ( agentChat as any ) ?. project ?. name || null }
7719+ />
7720+ </ RenderErrorBoundary >
77147721 </ div >
77157722 )
77167723 } ]
@@ -7736,31 +7743,37 @@ Make sure to preserve all functionality from both branches when resolving confli
77367743 } }
77377744 aria-hidden
77387745 >
7739- < ChatViewInner
7740- chat = { chat }
7741- subChatId = { subChatId }
7742- parentChatId = { chatId }
7743- provider = { inferProviderFromMessages ( subChatId ) }
7744- isFirstSubChat = { isFirstSubChat }
7745- onAutoRename = { handleAutoRename }
7746- onCreateNewSubChat = { handleCreateNewSubChat }
7747- onProviderChange = { handleProviderChange }
7748- teamId = { selectedTeamId || undefined }
7749- repository = { repository }
7750- streamId = { agentChatStore . getStreamId ( subChatId ) }
7751- isMobile = { isMobileFullscreen }
7752- isSubChatsSidebarOpen = { subChatsSidebarMode === "sidebar" }
7753- sandboxId = { sandboxId || undefined }
7754- projectPath = { worktreePath || undefined }
7755- isArchived = { isArchived }
7756- onRestoreWorkspace = { handleRestoreWorkspace }
7757- existingPrUrl = { agentChat ?. prUrl }
7758- isActive = { false }
7759- isSplitPane = { false }
7760- workspaceName = { agentChat ?. name ?? null }
7761- workspaceBranch = { agentChat ?. branch ?? null }
7762- workspaceRepoName = { ( agentChat as any ) ?. project ?. gitRepo || ( agentChat as any ) ?. project ?. name || null }
7763- />
7746+ < RenderErrorBoundary
7747+ title = "Chat pane failed to render"
7748+ description = "A workspace UI error interrupted this pane. Reload the window to recover."
7749+ resetKey = { subChatId }
7750+ >
7751+ < ChatViewInner
7752+ chat = { chat }
7753+ subChatId = { subChatId }
7754+ parentChatId = { chatId }
7755+ provider = { inferProviderFromMessages ( subChatId ) }
7756+ isFirstSubChat = { isFirstSubChat }
7757+ onAutoRename = { handleAutoRename }
7758+ onCreateNewSubChat = { handleCreateNewSubChat }
7759+ onProviderChange = { handleProviderChange }
7760+ teamId = { selectedTeamId || undefined }
7761+ repository = { repository }
7762+ streamId = { agentChatStore . getStreamId ( subChatId ) }
7763+ isMobile = { isMobileFullscreen }
7764+ isSubChatsSidebarOpen = { subChatsSidebarMode === "sidebar" }
7765+ sandboxId = { sandboxId || undefined }
7766+ projectPath = { worktreePath || undefined }
7767+ isArchived = { isArchived }
7768+ onRestoreWorkspace = { handleRestoreWorkspace }
7769+ existingPrUrl = { agentChat ?. prUrl }
7770+ isActive = { false }
7771+ isSplitPane = { false }
7772+ workspaceName = { agentChat ?. name ?? null }
7773+ workspaceBranch = { agentChat ?. branch ?? null }
7774+ workspaceRepoName = { ( agentChat as any ) ?. project ?. gitRepo || ( agentChat as any ) ?. project ?. name || null }
7775+ />
7776+ </ RenderErrorBoundary >
77647777 </ div >
77657778 )
77667779 } ) }
@@ -7799,31 +7812,37 @@ Make sure to preserve all functionality from both branches when resolving confli
77997812 } }
78007813 aria-hidden = { ! isActive }
78017814 >
7802- < ChatViewInner
7803- chat = { chat }
7804- subChatId = { subChatId }
7805- parentChatId = { chatId }
7806- provider = { inferProviderFromMessages ( subChatId ) }
7807- isFirstSubChat = { isFirstSubChat }
7808- onAutoRename = { handleAutoRename }
7809- onCreateNewSubChat = { handleCreateNewSubChat }
7810- onProviderChange = { handleProviderChange }
7811- teamId = { selectedTeamId || undefined }
7812- repository = { repository }
7813- streamId = { agentChatStore . getStreamId ( subChatId ) }
7814- isMobile = { isMobileFullscreen }
7815- isSubChatsSidebarOpen = { subChatsSidebarMode === "sidebar" }
7816- sandboxId = { sandboxId || undefined }
7817- projectPath = { worktreePath || undefined }
7818- isArchived = { isArchived }
7819- onRestoreWorkspace = { handleRestoreWorkspace }
7820- existingPrUrl = { agentChat ?. prUrl }
7821- isActive = { isActive }
7822- isSplitPane = { false }
7823- workspaceName = { agentChat ?. name ?? null }
7824- workspaceBranch = { agentChat ?. branch ?? null }
7825- workspaceRepoName = { ( agentChat as any ) ?. project ?. gitRepo || ( agentChat as any ) ?. project ?. name || null }
7826- />
7815+ < RenderErrorBoundary
7816+ title = "Chat pane failed to render"
7817+ description = "A workspace UI error interrupted this pane. Reload the window to recover."
7818+ resetKey = { subChatId }
7819+ >
7820+ < ChatViewInner
7821+ chat = { chat }
7822+ subChatId = { subChatId }
7823+ parentChatId = { chatId }
7824+ provider = { inferProviderFromMessages ( subChatId ) }
7825+ isFirstSubChat = { isFirstSubChat }
7826+ onAutoRename = { handleAutoRename }
7827+ onCreateNewSubChat = { handleCreateNewSubChat }
7828+ onProviderChange = { handleProviderChange }
7829+ teamId = { selectedTeamId || undefined }
7830+ repository = { repository }
7831+ streamId = { agentChatStore . getStreamId ( subChatId ) }
7832+ isMobile = { isMobileFullscreen }
7833+ isSubChatsSidebarOpen = { subChatsSidebarMode === "sidebar" }
7834+ sandboxId = { sandboxId || undefined }
7835+ projectPath = { worktreePath || undefined }
7836+ isArchived = { isArchived }
7837+ onRestoreWorkspace = { handleRestoreWorkspace }
7838+ existingPrUrl = { agentChat ?. prUrl }
7839+ isActive = { isActive }
7840+ isSplitPane = { false }
7841+ workspaceName = { agentChat ?. name ?? null }
7842+ workspaceBranch = { agentChat ?. branch ?? null }
7843+ workspaceRepoName = { ( agentChat as any ) ?. project ?. gitRepo || ( agentChat as any ) ?. project ?. name || null }
7844+ />
7845+ </ RenderErrorBoundary >
78277846 </ div >
78287847 )
78297848 } )
0 commit comments