Repository navigation
Migrate the retired Anthropic API engine to Claude Code #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,7 +43,7 @@ export type MotionPref = "system" | "reduced" | "full"; | |
| export type AgeColours = "hue" | "lightness"; | ||
| export type ModelRole = "labels" | "summaries" | "maps" | "ask"; | ||
| /** Only the Claude Code CLI is built; the other two are listed as "later" and disabled (§5.27). */ | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This comment is out of date now. Codex CLI and the local model are both built, and nothing is listed as "later" any more. Something like "The agent engines Settings › Agents offers. A stored |
||
| export type AgentEngineSetting = "claude-cli" | "anthropic-api" | "local" | "codex-cli" | "none"; | ||
| export type AgentEngineSetting = "claude-cli" | "local" | "codex-cli" | "none"; | ||
|
|
||
| /** The Codex CLI engine (agents/codexCli.ts): the person's own OpenAI sign-in, run headless in a read-only sandbox. */ | ||
| export interface CodexEngineSettings { | ||
|
|
@@ -513,6 +513,10 @@ function listIsWellFormed(path: string, raw: readonly unknown[]): boolean { | |
|
|
||
| function mergeAt(def: unknown, raw: unknown, path: string, issues: SettingsIssue[]): unknown { | ||
| if (raw === undefined) return structuredCloneSafe(def); | ||
| if (path === "agents.engine" && raw === "anthropic-api") { | ||
| issues.push({ path, problem: "unknown-value", action: "used-default" }); | ||
| return "claude-cli"; | ||
| } | ||
| if (isPlainObject(def)) { | ||
| if (!isPlainObject(raw)) return fallback(def, path, issues); | ||
| const out: Record<string, unknown> = {}; | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issueson the handle only refreshes onreload(), so the note stays for the rest of the session. That includes switching to another engine and back to Claude Code. It's harmless, because the migrated value is what gets saved on the next change. I just wanted it noted in case someone wonders why the note outlives the fix.