From 4c83d549645f972d37b51583d50606e42b70a946 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 23 Sep 2026 21:12:14 +0200 Subject: [PATCH] Send the advertised route transport with the sign-in completion The page builds heimdall.auth.complete itself rather than through the vendored client, and its routeHint carried only sourceVersion. Ghostlight refuses any invocation without the route transport ("invocation metadata is incomplete"), so every completion was denied before it reached Heimdall. The page now takes the transport the provider advertises for ghostlight.eve.commands, as the vendored client takes it from a command descriptor. Verified on Yggdrasil: the corrected shape reaches Heimdall's private plane and gets Heimdall's own answer. Co-Authored-By: Claude Opus 5.5 --- web/src/main.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/web/src/main.ts b/web/src/main.ts index 05c8992..cbb7342 100644 --- a/web/src/main.ts +++ b/web/src/main.ts @@ -41,6 +41,12 @@ class GhostlightEveTransport implements EveBrowserProviderTransport { return result; } + private advertisedTransport(): { transport?: string } { + const commands = (this.provider as { commands?: Array<{ command?: string; transport?: string }> } | undefined)?.commands; + const transport = commands?.find(command => command.command === "ghostlight.eve.commands")?.transport; + return transport ? { transport } : {}; + } + async completeAuthentication(handle: string): Promise { if (!this.provider) await this.providerAdvertisement(); return await this.submitCommand({ @@ -51,7 +57,10 @@ class GhostlightEveTransport implements EveBrowserProviderTransport { operationId: "heimdall.auth.complete", schemaId: "heimdall.auth_complete_command.v1", idempotencyKey: crypto.randomUUID(), - routeHint: { sourceVersion: this.sourceVersion }, + // The route transport is the one the provider advertises for its + // command boundary, as the vendored client takes it from a command + // descriptor; Ghostlight refuses an invocation without it. + routeHint: { sourceVersion: this.sourceVersion, ...this.advertisedTransport() }, }, payload: { handle }, issuedAt: new Date().toISOString(),