mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
Simplify the new-tab agent launch menu (#39279)
* feat(agent-launch): simplify the new-tab agent launch menu Drop Permissions and Arguments from the launch-mode setup panel; they are agent defaults edited in Agent settings. Put effort levels (unlabeled) and Fast mode on one row, and make the Launch chat/terminal buttons fill the row at a larger size with icons. Select-mode pickers (automations, new workspace, source control, continuation) keep both controls. * fix(agent-launch): let current Agent settings win over launch-menu speed edits A Fast or speed-tier edit copies the current Permissions and Arguments into the launch draft. With no Arguments editor in the launch menu, a later settings change was silently ignored. Launch drafts now drop Arguments stamped by older settings; the speed choice still applies. Also stop pointing hosts without a model list at the removed Arguments editor. * fix(agent-launch): show Fast as a button in the launch menu Matches the mock: an outlined Fast chip with the lightning icon in place of the "Fast mode" switch. The chat composer keeps its switch.
This commit is contained in:
@@ -42,3 +42,20 @@ export type AgentPickerRetainedSetup = {
|
||||
draft: AgentPickerDraft
|
||||
active: boolean
|
||||
}
|
||||
|
||||
/** Launch has no Arguments editor, so Arguments a speed edit copied from older settings yield to the current ones. */
|
||||
export function launchAgentPickerDraft(
|
||||
entry: AgentPickerEntry,
|
||||
draft: AgentPickerDraft
|
||||
): AgentPickerDraft {
|
||||
if (draft.argumentsOwner === undefined || draft.argumentsOwner === entry.ownerKey) {
|
||||
return draft
|
||||
}
|
||||
const {
|
||||
arguments: _arguments,
|
||||
pendingArguments: _pending,
|
||||
argumentsOwner: _owner,
|
||||
...rest
|
||||
} = draft
|
||||
return rest
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user