Skip to content

Commit fcc14a1

Browse files
committed
fix: replace Codex references with OpenCode in UI strings and errors
1 parent 3a141f2 commit fcc14a1

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

src-tauri/src/shared/codex_core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ async fn resolve_codex_home_for_workspace_core(
5959
let (entry, parent_entry) = resolve_workspace_and_parent(workspaces, workspace_id).await?;
6060
resolve_workspace_codex_home(&entry, parent_entry.as_ref())
6161
.or_else(resolve_default_codex_home)
62-
.ok_or_else(|| "Unable to resolve CODEX_HOME".to_string())
62+
.ok_or_else(|| "Unable to resolve OpenCode config directory".to_string())
6363
}
6464

6565
fn should_include_hidden_sessions(sort_key: &Option<String>) -> bool {

src-tauri/src/shared/prompts_core.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ pub(crate) async fn prompts_global_dir_core(
323323
let workspaces = workspaces.lock().await;
324324
let entry = require_workspace_entry(&workspaces, &workspace_id)?;
325325
let dir = default_prompts_dir_for_workspace(&workspaces, &entry)
326-
.ok_or("Unable to resolve CODEX_HOME".to_string())?;
326+
.ok_or("Unable to resolve OpenCode config directory".to_string())?;
327327
fs::create_dir_all(&dir).map_err(|err| err.to_string())?;
328328
Ok(dir.to_string_lossy().to_string())
329329
}
@@ -349,7 +349,7 @@ pub(crate) async fn prompts_create_core(
349349
}
350350
"global" => {
351351
let dir = default_prompts_dir_for_workspace(&workspaces, &entry)
352-
.ok_or("Unable to resolve CODEX_HOME".to_string())?;
352+
.ok_or("Unable to resolve OpenCode config directory".to_string())?;
353353
(dir, "global")
354354
}
355355
_ => return Err("Invalid scope.".to_string()),

src/features/models/hooks/useModels.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type UseModelsOptions = {
1616
selectionKey?: string | null;
1717
};
1818

19-
const CONFIG_MODEL_DESCRIPTION = "Configured in CODEX_HOME/config.toml";
19+
const CONFIG_MODEL_DESCRIPTION = "Configured in ~/.config/opencode/opencode.json";
2020

2121
const findModelByIdOrModel = (
2222
models: ModelOption[],

src/features/prompts/components/PromptPanel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,11 +579,11 @@ export function PromptPanel({
579579
className="prompt-empty-link"
580580
onClick={() => void onRevealGeneralPrompts()}
581581
>
582-
CODEX_HOME/prompts
582+
~/.config/opencode/prompts
583583
</button>
584584
) : (
585585
<span className="prompt-empty-link is-disabled">
586-
CODEX_HOME/prompts
586+
~/.config/opencode/prompts
587587
</span>
588588
)}
589589
.

src/features/settings/components/sections/SettingsFeaturesSection.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function SettingsFeaturesSection({
2424
</div>
2525
{hasCodexHomeOverrides && (
2626
<div className="settings-help">
27-
Feature settings are stored in the default CODEX_HOME config.toml.
27+
Feature settings are stored in the global ~/.config/opencode/opencode.json.
2828
<br />
2929
Workspace overrides are not updated.
3030
</div>
@@ -33,7 +33,7 @@ export function SettingsFeaturesSection({
3333
<div>
3434
<div className="settings-toggle-title">Config file</div>
3535
<div className="settings-toggle-subtitle">
36-
Open the Codex config in {fileManagerName()}.
36+
Open the OpenCode config in {fileManagerName()}.
3737
</div>
3838
</div>
3939
<button type="button" className="ghost" onClick={onOpenConfig}>
@@ -49,8 +49,8 @@ export function SettingsFeaturesSection({
4949
<div>
5050
<div className="settings-toggle-title">Personality</div>
5151
<div className="settings-toggle-subtitle">
52-
Choose Codex communication style (writes top-level <code>personality</code> in
53-
config.toml).
52+
Choose OpenCode communication style (writes top-level <code>personality</code> in
53+
opencode.json).
5454
</div>
5555
</div>
5656
<select
@@ -98,7 +98,7 @@ export function SettingsFeaturesSection({
9898
<div>
9999
<div className="settings-toggle-title">Multi-agent</div>
100100
<div className="settings-toggle-subtitle">
101-
Enable multi-agent collaboration tools in Codex.
101+
Enable multi-agent collaboration tools in OpenCode.
102102
</div>
103103
</div>
104104
<button

0 commit comments

Comments
 (0)