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()}`