Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

refactor(agent): decide Runtime Registration availability from the runtime list

jeffreycacd45eda1f1
diff --git a/apps/node-services/src/agent/runner-gateway/runner-connections.ts b/apps/node-services/src/agent/runner-gateway/runner-connections.ts
index 8b0243f2..5ae20287 100644
--- a/apps/node-services/src/agent/runner-gateway/runner-connections.ts
+++ b/apps/node-services/src/agent/runner-gateway/runner-connections.ts
@@ -589,9 +589,7 @@ export class RunnerConnections {
base: Pick<Observation, "tenant_id" | "owner_actor_id">,
diagnostic: RunnerHello["runtime_diagnostics"][number],
): Observation => {
- const available =
- diagnostic.status === "ready" ||
- diagnostic.status === "authentication_required";
+ const available = connection.hello.runtimes.includes(diagnostic.type);
return {
...base,
provider_type: diagnostic.type,
@@ -618,8 +616,7 @@ export class RunnerConnections {
const { tenantId, ownerActorId } = owner(connection);
for (const diagnostic of envelope.runtime_diagnostics) {
if (
- (diagnostic.status === "ready" ||
- diagnostic.status === "authentication_required") &&
+ connection.hello.runtimes.includes(diagnostic.type) &&
!registrations.some(
({ provider_type }) => provider_type === diagnostic.type,
)