Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(conversations): add workspace and reasoning effort pickers

Steven Enamakel28452a3e42e6
diff --git a/app/src/features/conversations/Conversations.tsx b/app/src/features/conversations/Conversations.tsx
index 231424c49b..2bf43932ad 100644
--- a/app/src/features/conversations/Conversations.tsx
+++ b/app/src/features/conversations/Conversations.tsx
@@ -473,8 +473,7 @@ const Conversations = ({
const [persistedDefaultModel, setPersistedDefaultModel] = useState<string | null>(null);
const reasoningModel = composerModelOverride ?? persistedDefaultModel;
const composerReasoningEffort: ReasoningEffortChoice =
- (reasoningModel ? reasoningEffortByModel[reasoningModel] : undefined) ??
- globalReasoningEffort;
+ (reasoningModel ? reasoningEffortByModel[reasoningModel] : undefined) ?? globalReasoningEffort;
useEffect(() => {
let cancelled = false;
void openhumanGetClientConfig()
@@ -524,12 +523,12 @@ const Conversations = ({
perModel: Boolean(model),
});
})
- .catch((err: unknown) => {
- // The per-send value still applies; only persistence failed.
- console.warn('[chat][composer-reasoning] failed to persist reasoning_effort', {
- message: err instanceof Error ? err.message : String(err),
+ .catch((err: unknown) => {
+ // The per-send value still applies; only persistence failed.
+ console.warn('[chat][composer-reasoning] failed to persist reasoning_effort', {
+ message: err instanceof Error ? err.message : String(err),
+ });
});
- });
},
[reasoningModel]
);
diff --git a/app/src/features/conversations/aui/ReasoningEffortPicker.tsx b/app/src/features/conversations/aui/ReasoningEffortPicker.tsx
index 8d6c6d9de8..9a6fd9165b 100644
--- a/app/src/features/conversations/aui/ReasoningEffortPicker.tsx
+++ b/app/src/features/conversations/aui/ReasoningEffortPicker.tsx
@@ -89,19 +89,19 @@ export function ReasoningEffortPicker({
<span className="inline-flex h-7 min-w-0 items-center gap-1 rounded-md pl-2 text-content-muted transition-colors hover:bg-surface-hover hover:text-content">
<ThinkingGauge value={value} />
<select
- data-testid="composer-reasoning-effort"
- data-analytics-id="chat-reasoning-effort"
- aria-label={label}
- title={title}
- value={value}
- disabled={disabled}
- onChange={event => onChange(toReasoningEffortChoice(event.target.value))}
- className="h-7 min-w-0 cursor-pointer rounded-md border-none bg-transparent pr-2 text-xs font-medium text-inherit focus:outline-none focus-visible:ring-1 focus-visible:ring-line disabled:opacity-50">
- {REASONING_EFFORTS.map(effort => (
- <option key={effort} value={effort}>
- {t(`composer.reasoning.${effort}`)}
- </option>
- ))}
+ data-testid="composer-reasoning-effort"
+ data-analytics-id="chat-reasoning-effort"
+ aria-label={label}
+ title={title}
+ value={value}
+ disabled={disabled}
+ onChange={event => onChange(toReasoningEffortChoice(event.target.value))}
+ className="h-7 min-w-0 cursor-pointer rounded-md border-none bg-transparent pr-2 text-xs font-medium text-inherit focus:outline-none focus-visible:ring-1 focus-visible:ring-line disabled:opacity-50">
+ {REASONING_EFFORTS.map(effort => (
+ <option key={effort} value={effort}>
+ {t(`composer.reasoning.${effort}`)}
+ </option>
+ ))}
</select>
</span>
);
diff --git a/app/src/features/conversations/aui/ThreadWorkspaceChip.tsx b/app/src/features/conversations/aui/ThreadWorkspaceChip.tsx
index 7e4088221d..4250602871 100644
--- a/app/src/features/conversations/aui/ThreadWorkspaceChip.tsx
+++ b/app/src/features/conversations/aui/ThreadWorkspaceChip.tsx
@@ -9,9 +9,9 @@ import { useEffect, useMemo, useState } from 'react';
import { useT } from '../../../lib/i18n/I18nContext';
import { useAppDispatch, useAppSelector } from '../../../store/hooks';
import { updateThreadWorkingDir } from '../../../store/threadSlice';
+import { isTauri } from '../../../utils/tauriCommands/common';
import { openhumanGetAgentPaths } from '../../../utils/tauriCommands/config';
import { pickDirectoryNatively } from '../../../utils/tauriCommands/directoryPicker';
-import { isTauri } from '../../../utils/tauriCommands/common';
import { recentWorkingFolders, WorkspacePicker } from './WorkspacePicker';
const debug = debugFactory('conversations:workspace');
diff --git a/app/src/features/conversations/aui/WorkspacePicker.tsx b/app/src/features/conversations/aui/WorkspacePicker.tsx
index 344c86d507..06696465ac 100644
--- a/app/src/features/conversations/aui/WorkspacePicker.tsx
+++ b/app/src/features/conversations/aui/WorkspacePicker.tsx
@@ -8,13 +8,13 @@
* chip disappears with the empty state rather than offering a change the core
* would refuse.
*/
-import { useT } from '../../../lib/i18n/I18nContext';
import {
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuRoot,
DropdownMenuTrigger,
} from '../../../components/ui/DropdownMenu';
+import { useT } from '../../../lib/i18n/I18nContext';
import { folderBasename } from '../threadList/groupThreads';
/** How many recently used folders the menu offers. */
@@ -113,7 +113,12 @@ export function WorkspacePicker({
stroke="currentColor"
viewBox="0 0 24 24"
aria-hidden="true">
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M19 9l-7 7-7-7" />
+ <path
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth={2}
+ d="M19 9l-7 7-7-7"
+ />
</svg>
</button>
</DropdownMenuTrigger>
@@ -164,9 +169,7 @@ export function WorkspacePicker({
{error}
</span>
) : (
- <span className="truncate text-xs text-content-faint">
- {t('composer.workspace.hint')}
- </span>
+ <span className="truncate text-xs text-content-faint">{t('composer.workspace.hint')}</span>
)}
</div>
);