Skip to content

Commit 8ca68d0

Browse files
author
Codex
committed
Avoid legacy profile table injection
1 parent d124da7 commit 8ca68d0

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

src/codex-inject.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,6 @@ function buildProviderTableBlock(port: number): string {
2626
return lines.join("\n") + "\n";
2727
}
2828

29-
function buildProfileTableBlock(catalogPath: string): string {
30-
return [
31-
"",
32-
"[profiles.opencodex]",
33-
'model_provider = "opencodex"',
34-
`model_catalog_json = ${tomlString(catalogPath)}`,
35-
].join("\n") + "\n";
36-
}
37-
3829
/**
3930
* Strip every existing `model_provider` line that we must not duplicate: any line set to
4031
* "opencodex" (wherever it sits — including a previously mis-nested one under a table), plus any
@@ -161,7 +152,6 @@ export async function injectCodexConfig(port: number, _config?: OcxConfig): Prom
161152
content = setRootModelProvider(content);
162153
// 2) Provider table appended at EOF (position-independent).
163154
content = content.trimEnd() + "\n" + buildProviderTableBlock(port);
164-
content = content.trimEnd() + "\n" + buildProfileTableBlock(catalogPath);
165155

166156
writeFileSync(CODEX_CONFIG_PATH, content, "utf-8");
167157
writeFileSync(CODEX_PROFILE_PATH, buildProfileFile(port, catalogPath), "utf-8");

0 commit comments

Comments
 (0)