{/* Auto-allow ALL */}
{/* Separator */}
{/* Auto-allow file edits */}
{/* Auto-allow safe bash */}
{/* Separator */}
{/* Timeout section */}
On timeout:
{settings.timeoutAction !== 'wait' && (
<>
after
setLocalSeconds(e.target.value)}
onBlur={() => {
const val = parseInt(localSeconds, 10);
if (!isNaN(val) && val >= 5 && val <= 300) {
void updateSettings({ timeoutSeconds: val });
}
setLocalSeconds('');
}}
onKeyDown={(e) => {
if (e.key === 'Enter') {
e.currentTarget.blur();
}
}}
className="w-14 rounded border px-1.5 py-0.5 text-center text-xs"
style={{
backgroundColor: 'var(--color-surface-raised)',
borderColor: 'var(--color-border)',
color: 'var(--color-text)',
}}
/>
sec
>
)}
);
};