feat(web): add send shortcut and follow-up controls #12075
MergedBil0000(GitHub profile, opens in a new tab)merged 3 commits into
main fromrefs/pull/12075/headmerged by juliusmarminge View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- apps/web/src/components/settings/SettingsPanels.tsx lines 2688 to 2688Resolvedby Bil0000(GitHub profile, opens in a new tab)@@ -2621,14 +2686,7 @@2621- <SelectTrigger size="sm" className="w-full sm:w-40" aria-label="Follow-up behavior">2622- <SelectValue>2623- {settings.followUpBehavior === "queue" ? "Queue" : "Steer"}2624- </SelectValue>2625- </SelectTrigger>2626- <SelectPopup align="end" alignItemWithTrigger={false}>2627- <SelectItem hideIndicator value="queue">2628- Queue2629- </SelectItem>2630- <SelectItem hideIndicator value="steer">2631- Steer2632- </SelectItem>2633- </SelectPopup>2634- </Select>2686+ {(["queue", "steer"] as const).map((value) => (2687+ <Toggle2688+ key={value}2689+ value={value}2690+ className="rounded-full px-3 font-normal text-muted-foreground data-pressed:text-foreground"2691+ >2692+ {value === "queue" ? "Queue" : "Steer"}
- apps/web/src/components/settings/SettingsPanels.tsx lines 2657 to 2660OutdatedResolvedby Bil0000(GitHub profile, opens in a new tab)@@ -2597,3 +2641,20 @@2641+ {sendShortcutOptions.map((option) => (2642+ <SelectItem key={option.value} value={option.value}>2643+ <span className="flex items-center justify-between gap-4">2644+ {option.label}2645+ {settings.sendShortcut === option.value && <CheckIcon aria-hidden="true" />}2646+ </span>2647+ </SelectItem>2648+ ))}2649+ </SelectPopup>2650+ </Select>2651+ }2652+ />2653+25972654 <SettingsRow25982655 {...searchableSetting("follow-up-behavior")}2599- description="Queue follow-ups while the agent runs or steer the current turn."2656+ description={2657+ `Queue follow-ups while the agent runs or steer the current run. Press ${modifierLabel}${settings.sendShortcut === "mod-enter" ? " + Shift" : ""} + Enter to do the opposite for one message.` +2658+ (settings.sendShortcut === "mod-enter-multiline"2659+ ? ` For multiline prompts, press ${modifierLabel} + Shift + Enter.`2660+ : "")
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
juliusmarminge merged thisf4ef515
juliusmarminge closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed