thanks copilot bro

This commit is contained in:
LukeParkerDev 2026-04-25 09:32:09 +10:00
parent 2b6f92aebb
commit 7ca307d56b
3 changed files with 3 additions and 2 deletions

View file

@ -193,7 +193,7 @@ export const SettingsGeneral: Component = () => {
void syncDisplayBackend()
})
const autoOption = { id: "auto", value: "", label: "Auto (Default)" }
const autoOption = { id: "auto", value: "", label: language.t("settings.general.row.shell.autoDefault") }
const currentShell = createMemo(() => globalSync.data.config.shell ?? "")
const shellOptions = createMemo<ShellSelectOption[]>(() => {

View file

@ -730,6 +730,7 @@ export const dict = {
"settings.general.row.language.description": "Change the display language for OpenCode",
"settings.general.row.shell.title": "Terminal Shell",
"settings.general.row.shell.description": "Choose the shell used for your terminal. Compatible shells are also used for agent tool calls.",
"settings.general.row.shell.autoDefault": "Auto (Default)",
"settings.general.row.shell.terminalOnly": "terminal only",
"settings.general.row.appearance.title": "Appearance",
"settings.general.row.appearance.description": "Customise how OpenCode looks on your device",

View file

@ -325,7 +325,7 @@ function writable(info: Info) {
function writableGlobal(info: Info) {
const next = writable(info)
// When a user changes config from a value back to default in the Desktop app, we dont want to leave a blank `"shell": "",` key
// When a user changes config from a value back to default in the Desktop app, we don't want to leave a blank `"shell": "",` key
if ("shell" in next && next.shell === "") return { ...next, shell: undefined }
return next
}