Skip to content

Commit 8fdde48

Browse files
yarin-magclaude
andcommitted
fix(ui): update switch styles and increase notification debounce
- Switch: green checked state, transparent unchecked, adjusted thumb sizing/position - Notifications: increase awaiting_input debounce from 2s to 8s to prevent false-positive "Waiting for your input" popups during active agent turns Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 54b64c1 commit 8fdde48

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

apps/web/src/components/ui/switch.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,19 @@ export function Switch({ checked, onCheckedChange, id, disabled, className }: Sw
1818
type="button"
1919
onClick={() => onCheckedChange(!checked)}
2020
className={cn(
21-
"relative inline-flex h-5 w-9 flex-shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent",
22-
"transition-colors duration-200",
21+
"relative inline-flex h-5 w-9 flex-shrink-0 cursor-pointer items-center rounded-full border-2 transition-colors duration-200",
2322
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
2423
"disabled:cursor-not-allowed disabled:opacity-50",
25-
checked ? "bg-primary" : "bg-input",
24+
checked ? "bg-green-500 border-green-500" : "bg-transparent border-input",
2625
className
2726
)}
2827
>
2928
<span
3029
className={cn(
31-
"pointer-events-none inline-block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform duration-200",
32-
checked ? "translate-x-4" : "translate-x-0"
30+
"pointer-events-none inline-block h-3.5 w-3.5 rounded-full bg-white shadow-lg ring-0 transition-all duration-200",
31+
checked ? "translate-x-4" : "translate-x-0.5"
3332
)}
3433
/>
3534
</button>
3635
);
37-
}
36+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
/** How long (ms) an agent must stay in `awaiting_input` before a notification fires.
22
* Prevents spam from rapid status back-and-forth while the agent is still working. */
3-
export const AWAITING_INPUT_DEBOUNCE_MS = 2000;
3+
export const AWAITING_INPUT_DEBOUNCE_MS = 8000;

0 commit comments

Comments
 (0)