The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 24, 11:30 UTC
fix(web): thread error banner no longer shifts the chat (#9473)
oliver committed
Sep 3, 2026 at 19:04 UTC
3e2c1a66f74f0a45768332c360cd3682f61129e1
2 files changed
+17
-12
apps/web/src/components/ChatView.tsx
+10
-10
@@ -7694,14 +7694,6 @@ function ChatViewContent(props: ChatViewProps) {
7694
/>
7695
</WorkspacePageHeader>
7696
7697
- <ThreadErrorBanner
7698
- error={visibleThreadError}
7699
- onDismiss={() => {
7700
- setThreadError(activeThread.id, null);
7701
- dismissThreadErrorBannerForSession(threadErrorBannerKey);
7702
- setThreadErrorBannerDismissTick((tick) => tick + 1);
7703
- }}
7704
- />
7697
{/* Main content area with optional plan sidebar */}
7698
<div className="flex min-h-0 min-w-0 flex-1">
7699
{/* Chat column */}
@@ -7727,13 +7719,21 @@ function ChatViewContent(props: ChatViewProps) {
7719
</div>
7720
</div>
7721
) : null}
7730
- {/* Provider status overlays the timeline without changing its content height. */}
7731
- <div className="pointer-events-none absolute inset-x-0 top-0 z-20">
7722
+ {/* Banners overlay the timeline without changing its content height. */}
7723
+ <div className="pointer-events-none absolute inset-x-0 top-0 z-20 flex flex-col">
7724
<ProviderStatusBanner
7725
status={visibleProviderStatus}
7726
onDismiss={() => setDismissedProviderStatusBannerKey(providerStatusBannerKey)}
7727
onOpenProviderSetup={openProviderSetup}
7728
/>
7729
+ <ThreadErrorBanner
7730
+ error={visibleThreadError}
7731
+ onDismiss={() => {
7732
+ setThreadError(activeThread.id, null);
7733
+ dismissThreadErrorBannerForSession(threadErrorBannerKey);
7734
+ setThreadErrorBannerDismissTick((tick) => tick + 1);
7735
+ }}
7736
+ />
7737
</div>
7738
{/* Messages Wrapper */}
7739
<div className="relative flex min-h-0 flex-1 flex-col">
apps/web/src/components/chat/ThreadErrorBanner.tsx
+7
-2
@@ -42,8 +42,13 @@ export const ThreadErrorBanner = memo(function ThreadErrorBanner({
42
}) {
43
if (!error) return null;
44
return (
45
- <div className="mx-auto w-fit max-w-[min(48rem,calc(100%-2rem))] pt-3">
46
- <Alert variant="error" controlAlignment="first-line">
45
+ <div className="pointer-events-auto mx-auto w-fit max-w-[min(48rem,calc(100%-2rem))] pt-3">
46
+ <Alert
47
+ variant="error"
48
+ controlAlignment="first-line"
49
+ className="alert-glass"
50
+ data-variant="error"
51
+ >
52
<CircleAlertIcon />
53
<AlertDescription>
54
<Tooltip>