Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): add dismiss button to thread error banner #588

Mergedbinbandit(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/588/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 1 changed file with 24 additions and 3 deletions.

x
0 of 1 viewed, 1 left
24 additions and 3 deletionsapps/web/src/components/ChatView.tsxModified
View file
@@ -123,7 +123,7 @@
} from "../keybindings";
import ChatMarkdown from "./ChatMarkdown";
import ThreadTerminalDrawer from "./ThreadTerminalDrawer";
-import { Alert, AlertDescription, AlertTitle } from "./ui/alert";
+import { Alert, AlertAction, AlertDescription, AlertTitle } from "./ui/alert";
import {
BotIcon,
ChevronDownIcon,
@@ -3434,7 +3434,10 @@
{/* Error banner */}
<ProviderHealthBanner status={activeProviderStatus} />
- <ThreadErrorBanner error={activeThread.error} />
+ <ThreadErrorBanner
+ error={activeThread.error}
+ onDismiss={() => setThreadError(activeThread.id, null)}
+ />
<PlanModePanel activePlan={activePlan} />
{/* Messages */}
@@ -4095,7 +4098,13 @@
-const ThreadErrorBanner = memo(function ThreadErrorBanner({ error }: { error: string | null }) {
+const ThreadErrorBanner = memo(function ThreadErrorBanner({
+ error,