The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(ui): show infinity symbol for unlimited numeric fields
Steven Enamakel658049fb8f9b
diff --git a/app/src/components/intelligence/SourceSettingsPanel.tsx b/app/src/components/intelligence/SourceSettingsPanel.tsxindex cfd3c745ea..fe604c0b82 100644--- a/app/src/components/intelligence/SourceSettingsPanel.tsx+++ b/app/src/components/intelligence/SourceSettingsPanel.tsx@@ -161,7 +161,7 @@ export function SourceSettingsPanel({ source, onSaved, onToast }: SourceSettingsstep={1}value={values[field] ?? ''}onChange={e => handleChange(field, e.target.value)}- placeholder={t('memorySources.settings.unlimited')}+ placeholder={`∞ ${t('memorySources.settings.unlimited')}`}className="text-xs"/></div>diff --git a/app/src/components/settings/panels/AutonomyPanel.tsx b/app/src/components/settings/panels/AutonomyPanel.tsxindex 50cd57bde5..df36d88065 100644--- a/app/src/components/settings/panels/AutonomyPanel.tsx+++ b/app/src/components/settings/panels/AutonomyPanel.tsx@@ -1,3 +1,4 @@+import { Infinity as InfinityIcon } from 'lucide-react';import { useEffect, useState } from 'react';import { useT } from '../../../lib/i18n/I18nContext';@@ -14,6 +15,8 @@ const UNLIMITED = 4_294_967_295;/** Preset rows. The `label` field is an i18n key for the unlimited entry; the* numeric-only rows are intentionally locale-agnostic. */+const UNLIMITED_ICON = <InfinityIcon className="h-3.5 w-3.5" aria-hidden />;+const PRESETS: { labelKey?: string; label?: string; value: number }[] = [{ labelKey: 'autonomy.presetUnlimited', value: UNLIMITED },{ label: '100', value: 100 },@@ -107,11 +110,20 @@ const AutonomyRateLimitSection = () => {control={<div className="space-y-3"><div className="flex items-center gap-2">+ {/* The u32::MAX sentinel shows as an empty field with an ∞+ placeholder; clearing the field means unlimited again. */}<SettingsNumberFieldid="autonomy-max-actions"- value={draft}+ value={draft === String(UNLIMITED) ? '' : draft}+ placeholder="∞"+ rangeLabel={+ <>+ {MIN}–+ <InfinityIcon className="h-3 w-3" aria-label={t('autonomy.presetUnlimited')} />+ </>+ }onChange={v => {- setDraft(v);+ setDraft(v.trim() === '' ? String(UNLIMITED) : v);if (status.kind === 'saved' || status.kind === 'error') {setStatus({ kind: 'idle' });}@@ -141,6 +153,7 @@ const AutonomyRateLimitSection = () => {type="button"variant="tertiary"size="xs"+ leadingIcon={p.value === UNLIMITED ? UNLIMITED_ICON : undefined}onClick={() => applyPreset(p.value)}>{p.labelKey ? t(p.labelKey) : p.label}</Button>@@ -153,7 +166,10 @@ const AutonomyRateLimitSection = () => {</p>)}{isValid && parsed === UNLIMITED && (- <p className="text-xs text-content-muted">{t('autonomy.unlimitedNote')}</p>+ <p className="flex items-center gap-1.5 text-xs text-content-muted">+ {UNLIMITED_ICON}+ {t('autonomy.unlimitedNote')}+ </p>)}<SettingsStatusLinediff --git a/app/src/components/ui/NumberField.tsx b/app/src/components/ui/NumberField.tsxindex fa3f414dcf..4939ef6a22 100644--- a/app/src/components/ui/NumberField.tsx+++ b/app/src/components/ui/NumberField.tsx@@ -1,3 +1,5 @@+import { type ReactNode } from 'react';+import { cn } from '../../lib/cn';import Input from './Input';@@ -13,6 +15,10 @@ export interface NumberFieldProps {max?: number;/** Step granularity; default 1. Pass a fraction for decimal fields. */step?: number;+ /** Shown while the field is empty (e.g. "∞" when empty means no limit). */+ placeholder?: string;+ /** Replaces the "{min}–{max}" hint, e.g. when `max` is a sentinel. */+ rangeLabel?: ReactNode;disabled?: boolean;invalid?: boolean;'aria-label': string;@@ -29,12 +35,14 @@ const NumberField = ({min,max,step = 1,+ placeholder,+ rangeLabel,disabled = false,invalid = false,'aria-label': ariaLabel,'data-testid': testId,}: NumberFieldProps) => {- const hasRange = min !== undefined && max !== undefined;+ const hasRange = rangeLabel != null || (min !== undefined && max !== undefined);return (<div@@ -51,6 +59,7 @@ const NumberField = ({min={min}max={max}step={step}+ placeholder={placeholder}disabled={disabled}invalid={invalid}aria-label={ariaLabel}@@ -71,8 +80,12 @@ const NumberField = ({</span>)}{hasRange && (- <span className="text-[11px] text-content-faint">- {min}–{max}+ <span className="inline-flex items-center text-[11px] text-content-faint">+ {rangeLabel ?? (+ <>+ {min}–{max}+ </>+ )}</span>)}</div>diff --git a/app/src/lib/i18n/en.ts b/app/src/lib/i18n/en.tsindex 3a6f5b5cf9..e4e5c84910 100644--- a/app/src/lib/i18n/en.ts+++ b/app/src/lib/i18n/en.ts@@ -2099,7 +2099,7 @@ const en: TranslationMap = {'autonomy.unlimitedNote': 'Unlimited: rate limiting disabled.','autonomy.invalidIntegerMsg':'Must be a positive integer (use the Unlimited preset for no limit).',- 'autonomy.presetUnlimited': 'Unlimited (default)',+ 'autonomy.presetUnlimited': 'Unlimited','triggers.toggleFailed': '{action} failed for {trigger}: {message}',// Settings: AI