diff --git a/site/src/pages/AgentsPage/AgentDetail.tsx b/site/src/pages/AgentsPage/AgentDetail.tsx
index 26e605c980..03988447d8 100644
--- a/site/src/pages/AgentsPage/AgentDetail.tsx
+++ b/site/src/pages/AgentsPage/AgentDetail.tsx
@@ -966,45 +966,47 @@ const AgentDetail: FC = () => {
)}
>
-
navigate(`/agents/${chatId}`)}
- diff={{
- hasDiffStatus,
- diffStatus: diffStatusQuery.data,
- showDiffPanel,
- onToggleFilesChanged: () => setShowDiffPanel((prev) => !prev),
- }}
- workspace={{
- canOpenEditors,
- canOpenWorkspace,
- onOpenInEditor: (editor) => {
- void handleOpenInEditor(editor);
- },
- onViewWorkspace: handleViewWorkspace,
- }}
- onArchiveAgent={handleArchiveAgentAction}
- isArchived={isArchived}
- isSidebarCollapsed={isSidebarCollapsed}
- onToggleSidebarCollapsed={onToggleSidebarCollapsed}
- />
- {isArchived && (
-
-
- This agent has been archived and is read-only.
-
- )}
-
+
+
navigate(`/agents/${chatId}`)}
+ diff={{
+ hasDiffStatus,
+ diffStatus: diffStatusQuery.data,
+ showDiffPanel,
+ onToggleFilesChanged: () => setShowDiffPanel((prev) => !prev),
+ }}
+ workspace={{
+ canOpenEditors,
+ canOpenWorkspace,
+ onOpenInEditor: (editor) => {
+ void handleOpenInEditor(editor);
+ },
+ onViewWorkspace: handleViewWorkspace,
+ }}
+ onArchiveAgent={handleArchiveAgentAction}
+ isArchived={isArchived}
+ isSidebarCollapsed={isSidebarCollapsed}
+ onToggleSidebarCollapsed={onToggleSidebarCollapsed}
+ />
+ {isArchived && (
+
+
+ This agent has been archived and is read-only.
+
+ )}
+
+