Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion build/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,13 @@ tasks:
dir: build
sources:
- "../frontend/public/appicon.png"
- "../frontend/public/appicon_windows.png"
generates:
- "darwin/icons.icns"
- "windows/icon.ico"
cmds:
- wails3 generate icons -input ../frontend/public/appicon.png -macfilename darwin/icons.icns -windowsfilename windows/icon.ico
- wails3 generate icons -input ../frontend/public/appicon.png -macfilename darwin/icons.icns
- wails3 generate icons -input ../frontend/public/appicon_windows.png -windowsfilename windows/icon.ico

dev:frontend:
summary: Runs the frontend in development mode
Expand Down
Binary file modified build/windows/icon.ico
Binary file not shown.
Binary file added frontend/public/appicon_windows.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/tray_windows.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion frontend/src/app/settings/SettingsApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ export function SettingsApp() {
isIntegrationActive
? "flex min-h-0 flex-1 flex-col overflow-hidden"
: isDebugActive
? "w-full"
? "flex min-h-0 flex-1 flex-col overflow-hidden"
: resolvedSection === "memory"
? isMemoryEntriesActive
? "flex min-h-0 h-full w-full flex-1 flex-col overflow-hidden"
Expand Down
20 changes: 2 additions & 18 deletions frontend/src/features/library/components/library-config-shared.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -382,24 +382,8 @@ export function TaskRuntimeFields(props: {
label: t("library.config.taskRuntime.thinkingOff"),
},
{
value: "minimal",
label: t("library.config.taskRuntime.thinkingMinimal"),
},
{
value: "low",
label: t("library.config.taskRuntime.thinkingLow"),
},
{
value: "medium",
label: t("library.config.taskRuntime.thinkingMedium"),
},
{
value: "high",
label: t("library.config.taskRuntime.thinkingHigh"),
},
{
value: "xhigh",
label: t("library.config.taskRuntime.thinkingExtraHigh"),
value: "on",
label: t("library.config.taskRuntime.thinkingOn"),
},
],
(nextValue) => updateField("thinkingMode", nextValue),
Expand Down
10 changes: 5 additions & 5 deletions frontend/src/features/library/components/library-config-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,16 @@ function resolveStructuredOutputModeLabel(value: string | undefined) {

function resolveThinkingModeLabel(value: string | undefined) {
switch (value?.trim()) {
case "on":
case "enabled":
case "enable":
case "true":
case "minimal":
return t("library.config.taskRuntime.thinkingMinimal");
case "low":
return t("library.config.taskRuntime.thinkingLow");
case "medium":
return t("library.config.taskRuntime.thinkingMedium");
case "high":
return t("library.config.taskRuntime.thinkingHigh");
case "xhigh":
return t("library.config.taskRuntime.thinkingExtraHigh");
return t("library.config.taskRuntime.thinkingOn");
case "off":
case "":
case undefined:
Expand Down
31 changes: 2 additions & 29 deletions frontend/src/features/settings/about/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,13 @@ import { SettingsCompactListCard, SettingsCompactRow, SettingsCompactSeparator }
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/shared/ui/tooltip";
import { cn } from "@/lib/utils";
import { messageBus } from "@/shared/message";
import { useSettings, useUpdateSettings as useAppSettingsUpdate } from "@/shared/query/settings";
import { useUpdateStore } from "@/shared/store/update";
import { useCheckForUpdate, useDownloadUpdate, useRestartToApply, useUpdateState } from "@/shared/query/update";
import { Browser } from "@wailsio/runtime";

export function AboutSection() {
const { t } = useI18n();
const { mode, setMode } = useDebugMode();
const settingsQuery = useSettings();
const updateAppSettings = useAppSettingsUpdate();
const { mode, setMode, isPending: debugModePending } = useDebugMode();
const updateInfo = useUpdateStore((state) => state.info);
const setUpdateInfo = useUpdateStore((state) => state.setInfo);
const checkUpdate = useCheckForUpdate();
Expand Down Expand Up @@ -139,31 +136,7 @@ export function AboutSection() {
if (nextMode !== "off" && nextMode !== "basic" && nextMode !== "full") {
return;
}
if (nextMode === mode) {
return;
}
const previousMode = mode;
setMode(nextMode);

const targetRecordPrompt = nextMode === "full";
const currentRecordPrompt = settingsQuery.data?.gateway.runtime.recordPrompt;
if (typeof currentRecordPrompt === "boolean" && targetRecordPrompt === currentRecordPrompt) {
return;
}
updateAppSettings.mutate(
{
gateway: {
runtime: {
recordPrompt: targetRecordPrompt,
},
},
},
{
onError: () => {
setMode(previousMode);
},
}
);
};

const handleAdvancedUnlock = () => {
Expand Down Expand Up @@ -511,7 +484,7 @@ export function AboutSection() {
value={mode}
onChange={handleDebugModeChange}
className="w-36"
disabled={updateAppSettings.isPending}
disabled={debugModePending}
aria-label={t("settings.about.advanced.debug")}
>
<option value="off">{t("settings.about.advanced.options.off")}</option>
Expand Down
Loading
Loading