Skip to content

Commit df901dc

Browse files
fix(web): keep usage limit banner concise
1 parent 92c80bd commit df901dc

2 files changed

Lines changed: 1 addition & 11 deletions

File tree

‎apps/web/src/components/ChatView.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6983,7 +6983,6 @@ export default function ChatView(props: ChatViewProps) {
69836983
resetAt: serverRuntime.usageLimitResetAt ?? null,
69846984
stoppedAt: activeThreadShell.latestRun.completedAt ?? activeThreadShell.updatedAt,
69856985
recovery: activeThreadShell.limitRecovery ?? null,
6986-
explanation: serverRuntime.lastError,
69876986
onChange: async (limitRecovery) => {
69886987
const result = await updateThreadMetadata({
69896988
environmentId,

‎apps/web/src/components/chat/UsageLimitRecoveryBanner.tsx‎

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,12 @@ type RecoveryProps = {
99
resetAt: string | null;
1010
stoppedAt: string;
1111
recovery: OrchestrationV2LimitRecovery | null;
12-
explanation: string | null;
1312
onChange: (recovery: OrchestrationV2LimitRecovery) => Promise<void>;
1413
};
1514

1615
export function usageLimitRecoveryBannerItem(props: RecoveryProps): ComposerBannerStackItem {
17-
const { runId, resetAt, stoppedAt, recovery, explanation } = props;
16+
const { runId, resetAt, stoppedAt } = props;
1817
const canSchedule = resetAt !== null && Date.parse(resetAt) > Date.parse(stoppedAt);
19-
const scheduled =
20-
recovery?.runId === runId && recovery.resetAt === resetAt && recovery.autoResume;
2118
return {
2219
id: `usage-limit-recovery:${runId}`,
2320
variant: "warning",
@@ -27,12 +24,6 @@ export function usageLimitRecoveryBannerItem(props: RecoveryProps): ComposerBann
2724
description: resetAt
2825
? `Resets ${new Date(resetAt).toLocaleString()}`
2926
: "Reset time unavailable; retry manually",
30-
children: (
31-
<div className="space-y-1 text-xs text-muted-foreground">
32-
{explanation ? <p>{explanation}</p> : null}
33-
{scheduled ? <p>Auto-resume is scheduled for the reset.</p> : null}
34-
</div>
35-
),
3627
actions: canSchedule ? <RecoveryActions key={runId} {...props} /> : null,
3728
};
3829
}

0 commit comments

Comments
 (0)