Comments: refs are served ids, with no protocol-2 or own-connection cases left

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
HomerandClaude Opus 5.5 committed 2026-10-27 21:26:10 +00:00
1 parent 77161bee35
commit 89ceeec159
2 files changed
+4 -7

No files matched your search

+2 -4
View File
@@ -647,10 +647,8 @@ export class AcpAgent {
return Boolean(connection && this.instanceConnection && connection === this.instanceConnection)
}
/** A model the instance names, as a ref on its connection here; undefined when there is none.
* `<login>/<served>` resolves to the served model under its ref now (`deepseek/x` for the
* served `deepseek/x`; the instance's `<login>/<served>` where a connection of the user's own
* has the provider's name), and to the same model for a bare id from an instance that does not speak protocol 2. */
/** A model the instance names, as a ref on its connection here (`<login>/<served>`, which resolves
* to the served id, provider/refs.ts); undefined when this link has no instance. */
private refFor(served: unknown): string | undefined {
if (typeof served !== "string" || !served.trim() || !this.instanceConnection) return undefined
return `${this.instanceConnection}/${served.trim()}`
+2 -3
View File
@@ -281,9 +281,8 @@ function currentModel(): string | undefined {
return typeof value === "string" && value ? value : undefined
}
/** Each served model's ref once this login is in place (by provider, `deepseek/x`; an
* instance that does not speak protocol 2, or a provider a connection of the user's own is named after, keeps
* `<connection>/<id>`). Read from the configuration as it now is. */
/** Each served model's ref once this login is in place: its served id (`deepseek/x`). Read from
* the configuration as it now is. */
async function refsOf(connection: string): Promise<Record<string, string>> {
try {
const { loadConfig } = await import("../config/load.ts")