feat(chat): add Claude Code chat backend
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/** Harnesses with a verified catalog and model-selection path. */
|
||||
export function supportsChatModels(backend) {
|
||||
return ["", "opencode", "codex"].includes(String(backend ?? "").trim());
|
||||
return ["", "opencode", "codex", "claude"].includes(String(backend ?? "").trim());
|
||||
}
|
||||
|
||||
/** Never turn an unknown remote model into an invented model name. */
|
||||
@@ -10,7 +10,11 @@ export function chatModelLabel(session) {
|
||||
}
|
||||
|
||||
export function chatModelSelectionNote(backend) {
|
||||
return backend === "codex"
|
||||
? "Saved by Pipelines for the next turn you send. Does not resume this thread or edit global Codex configuration."
|
||||
: "Applies to the next turn in this chat.";
|
||||
if (backend === "codex") {
|
||||
return "Saved by Pipelines for the next turn you send. Does not resume this thread or edit global Codex configuration.";
|
||||
}
|
||||
if (backend === "claude") {
|
||||
return "Saved by Pipelines for the next turn you send. Does not edit your global Claude Code configuration.";
|
||||
}
|
||||
return "Applies to the next turn in this chat.";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user