Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/compact-session-start-recovery.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@roomote/web": patch
---

Show Session start failures in a compact inline row with a clear Retry action instead of an oversized error panel and technical transport message.
11 changes: 8 additions & 3 deletions apps/web/src/app/(authenticated)/home/Home.client.test.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 17 additions & 7 deletions apps/web/src/components/tasks/NewTaskForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import {
TaskPromptInput,
} from '@/components/tasks';
import {
AlertCircle,
BasicTooltip,
Button,
HatGlasses,
RetryableLoadError,
} from '@/components/system';

const DEFAULT_PROMPT_PLACEHOLDER = 'What do you want to do?';
Expand Down Expand Up @@ -269,13 +269,23 @@ export function NewTaskForm({
}
/>
{fastSessionError ? (
<div role="alert">
<RetryableLoadError
className="mt-3 p-4 md:p-4 [&_[data-slot=empty-icon]]:mb-0"
message={fastSessionError.message}
isRetrying={isFastSessionPending}
onRetry={() => void retryFastSession()}
<div role="alert" className="flex items-center gap-2 px-3 py-2 text-sm">
<AlertCircle
aria-hidden="true"
className="text-destructive size-4 shrink-0"
/>
<p className="text-muted-foreground min-w-0 flex-1">
Couldn’t start this session.
</p>
<Button
type="button"
variant="ghost"
size="sm"
disabled={isFastSessionPending}
onClick={() => void retryFastSession()}
>
Retry
</Button>
</div>
) : null}
</div>
Expand Down
Loading