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.
feat: show why a local model's gateway registration failed
Dongdong Chen307f2ab438b3
diff --git a/apps/computer/local-daemon/README.md b/apps/computer/local-daemon/README.mdindex da2de5d4..63f5e43c 100644--- a/apps/computer/local-daemon/README.md+++ b/apps/computer/local-daemon/README.md@@ -151,6 +151,14 @@ model.Daemon rereads the status, which carries what the phase reserved or freed(pool use, placement, models unloaded first), and applies the job's line ontop; later lines of the phase update that snapshot without another read.+- Error causes. `library status` keeps only a failed row's `code` and+ `detail`; the `cause` and `path` of a `GATEWAY_REGISTRATION_FAILED` reach+ the Daemon only on the job's error line (`GATEWAY_HOME_NOT_PRIVATE`: the+ gateway's private folder at `path` has another owner). The Daemon keeps them+ per model and puts them back on that row in every read while it still fails+ with that code; the model's next accepted job, or a row that moved on,+ drops them. They live in memory, so after a Daemon restart the row shows+ only its code.- Pi. When the loaded models change, the Daemon asks the Runtime monitor for afull discovery, so TeamHub sees Pi's new model list. Each model's`pi_model` (`<provider>/<id>`, as an Agent's `runtime_model` stores it) isdiff --git a/apps/computer/local-daemon/internal/localmodels/library.go b/apps/computer/local-daemon/internal/localmodels/library.goindex 58aee26a..f2a1cd05 100644--- a/apps/computer/local-daemon/internal/localmodels/library.go+++ b/apps/computer/local-daemon/internal/localmodels/library.go@@ -11,6 +11,7 @@ import ("log/slog""os""path/filepath"+ "slices""sort""strings""sync"@@ -92,8 +93,12 @@ type Library struct {current *wire.LocalModelsSnapshot// loaded identifies the loaded models of the last status read; nil// before the first one.- loaded *string- jobs map[string]*job+ loaded *string+ jobs map[string]*job+ // causes holds, by model, the cause the last job's error line gave. The+ // tool's status keeps only the code, so each read puts the cause back on+ // a row that still fails with that code.+ causes map[string]*wire.LocalModelErrorlastProgress time.TimeprogressTimer *time.Timer// progressTimerID tells a timer callback that already fired whether it@@ -113,7 +118,7 @@ func New(options Options) *Library {tool: options.Tool, environment: options.Environment, jobDirectory: options.JobDirectory,publish: options.Publish, runtimeChanged: options.RuntimeChanged,progressInterval: options.ProgressInterval, statusTimeout: options.StatusTimeout, actionTimeout: options.ActionTimeout,- now: time.Now, ctx: ctx, stop: stop, jobs: make(map[string]*job),+ now: time.Now, ctx: ctx, stop: stop, jobs: make(map[string]*job), causes: make(map[string]*wire.LocalModelError),}if library.progressInterval <= 0 {library.progressInterval = defaultProgressInterval@@ -190,9 +195,25 @@ func (l *Library) read(ctx context.Context) wire.LocalModelsSnapshot {slog.Warn("local_models.status_invalid", "error", err)return unavailable(CodeToolFailed, "localmodels reported a library status outside its contract", l.now())}+ l.restoreCauses(&snapshot)return snapshot}+// restoreCauses puts each kept cause back on its failed row, and forgets one+// whose row no longer fails with the code it came with.+func (l *Library) restoreCauses(snapshot *wire.LocalModelsSnapshot) {+ l.mu.Lock()+ defer l.mu.Unlock()+ for id, cause := range l.causes {+ index := slices.IndexFunc(snapshot.Models, func(model wire.LocalModel) bool { return model.ID == id })+ if index < 0 || snapshot.Models[index].Error == nil || snapshot.Models[index].Error.Code != cause.Code {+ delete(l.causes, id)+ continue+ }+ snapshot.Models[index].Error.Cause, snapshot.Models[index].Error.Path = cause.Cause, cause.Path+ }+}+// loadedKey names the loaded models; a change means Pi's model list changed.func loadedKey(snapshot wire.LocalModelsSnapshot) string {var loaded []string@@ -482,6 +503,7 @@ func (l *Library) superviseJob(action Action, events <-chan libraryEvent, endedif accepted {l.mu.Lock()l.jobs[action.Model] = &job{action: action}+ delete(l.causes, action.Model)l.mu.Unlock()}}@@ -532,6 +554,11 @@ func (l *Library) superviseJob(action Action, events <-chan libraryEvent, ended}l.mu.Lock()delete(l.jobs, action.Model)+ if final != nil && final.Event == "error" {+ if cause := final.cause(); cause != nil {+ l.causes[action.Model] = cause+ }+ }l.mu.Unlock()l.Refresh(l.ctx)if action.Name == ActionLoad {diff --git a/apps/computer/local-daemon/internal/localmodels/library_test.go b/apps/computer/local-daemon/internal/localmodels/library_test.goindex 8b9ca26e..c2116696 100644--- a/apps/computer/local-daemon/internal/localmodels/library_test.go+++ b/apps/computer/local-daemon/internal/localmodels/library_test.go@@ -622,3 +622,47 @@ func TestRefreshMapsRichModelCardMetadataAndKeepsItAcrossProgress(t *testing.T)t.Fatalf("progress dropped model card fields: %+v", after)}}++// localmodels names why a load could not register with its gateway only on+// the job's error line; the snapshot's failed row carries it until another+// job for that model ends.+func TestAFailedLoadKeepsTheGatewayCauseOnItsRow(t *testing.T) {+ fake := newFakeTool(t)+ fake.write("status.json", status(model(testModel, "idle")))+ failed := model(testModel, "failed")+ failed["error"] = map[string]any{"code": "GATEWAY_REGISTRATION_FAILED", "detail": "gateway-home is not private"}+ encodedFailed, _ := json.Marshal(status(failed))+ const home = `C:\Users\ana\AppData\Local\localmodels\tools\gateway-home`+ causeLine := errorLine(testModel, "GATEWAY_REGISTRATION_FAILED", `,"cause":"GATEWAY_HOME_NOT_PRIVATE","path":"C:\\Users\\ana\\AppData\\Local\\localmodels\\tools\\gateway-home"`)+ fake.script("load", fakeScript{+ Lines: []fakeLine{{Line: progressLine(testModel, "load", 0, 2)}, {Line: causeLine, DelayMS: 20}},+ Exit: 1, StatusAfter: encodedFailed,+ })+ record := &recorder{}+ library := newLibrary(t, fake, record, 10*time.Millisecond)+ library.Refresh(context.Background())++ if refusal, _ := library.Act(context.Background(), Action{Name: ActionLoad, Model: testModel}, soon()); refusal != nil {+ t.Fatalf("load refused: %+v", refusal)+ }+ waitFor(t, "the failed row with its cause", func() bool {+ model := modelState(record.last(), testModel)+ return model.State == "failed" && model.Error != nil && model.Error.Cause == "GATEWAY_HOME_NOT_PRIVATE" && model.Error.Path == home+ })+ if again := modelState(library.Refresh(context.Background()), testModel); again.Error == nil || again.Error.Cause != "GATEWAY_HOME_NOT_PRIVATE" {+ t.Fatalf("a later read dropped the cause: %+v", again.Error)+ }++ // A retry that fails for another reason carries no stale cause.+ fake.script("load", fakeScript{+ Lines: []fakeLine{{Line: progressLine(testModel, "load", 0, 2)}, {Line: errorLine(testModel, "GATEWAY_REGISTRATION_FAILED", ""), DelayMS: 20}},+ Exit: 1, StatusAfter: encodedFailed,+ })+ if refusal, _ := library.Act(context.Background(), Action{Name: ActionLoad, Model: testModel}, soon()); refusal != nil {+ t.Fatalf("retry refused: %+v", refusal)+ }+ waitFor(t, "the cause to clear", func() bool {+ model := modelState(library.Refresh(context.Background()), testModel)+ return model.Error != nil && model.Error.Cause == "" && model.Error.Path == ""+ })+}diff --git a/apps/computer/local-daemon/internal/localmodels/status.go b/apps/computer/local-daemon/internal/localmodels/status.goindex be91b0f0..1c55c3f3 100644--- a/apps/computer/local-daemon/internal/localmodels/status.go+++ b/apps/computer/local-daemon/internal/localmodels/status.go@@ -246,6 +246,8 @@ type libraryEvent struct {NeedBytes *float64 `json:"need_bytes"`FreeBytes *float64 `json:"free_bytes"`HaveBytes *float64 `json:"have_bytes"`+ Cause string `json:"cause"`+ Path string `json:"path"`}func parseEvent(line []byte) (libraryEvent, bool) {@@ -306,6 +308,19 @@ func bytesValue(value float64) uint64 {return uint64(value)}+// errorCauses is the tool's closed set of error causes; a GATEWAY_REGISTRATION_FAILED+// line carries one with the path it names.+var errorCauses = []string{"GATEWAY_HOME_NOT_PRIVATE"}++// cause is the error line's cause as the wire carries it on a model's error,+// or nil when the line names none the contract knows.+func (e libraryEvent) cause() *wire.LocalModelError {+ if !slices.Contains(errorCodes, e.Code) || !slices.Contains(errorCauses, e.Cause) || e.Path == "" {+ return nil+ }+ return &wire.LocalModelError{Code: e.Code, Cause: e.Cause, Path: clip(e.Path, 4096)}+}+// clip bounds display text to the schema's length in characters.func clip(text string, limit int) string {if utf8.RuneCountInString(text) <= limit {diff --git a/apps/teamhub/internal/app/handlers_local_models.go b/apps/teamhub/internal/app/handlers_local_models.goindex 7ed76098..7716e295 100644--- a/apps/teamhub/internal/app/handlers_local_models.go+++ b/apps/teamhub/internal/app/handlers_local_models.go@@ -147,6 +147,10 @@ func localModelsView(record agentruntimestate.LocalModelsRecord, viewerID string}}}+ // A cause's path is a folder on the owner's machine; only they can act on it.+ if model.Error != nil && !view.ViewerIsOwner {+ model.Error.Path = nil+ }view.Models = append(view.Models, httpapi.LocalModelView{Model: model, UsedBy: users})}return view, nil@@ -341,6 +345,9 @@ func validLocalModelsSnapshot(snapshot teamhubinternal.LocalModelsSnapshot) boolif model.PromptTokensPerSecond != nil && *model.PromptTokensPerSecond < 0 {return false}+ if model.Error != nil && model.Error.Cause != nil && !model.Error.Cause.Valid() {+ return false+ }seen[model.Id] = true}return truediff --git a/apps/teamhub/internal/app/handlers_local_models_test.go b/apps/teamhub/internal/app/handlers_local_models_test.goindex 690b750b..65e11da9 100644--- a/apps/teamhub/internal/app/handlers_local_models_test.go+++ b/apps/teamhub/internal/app/handlers_local_models_test.go@@ -3,6 +3,7 @@ package appimport ("encoding/json""slices"+ "strings""testing""time"@@ -97,6 +98,29 @@ func TestLocalModelsViewMatchesAgentsToModelsOnTheComputer(t *testing.T) {}}+// The folder a gateway cause names is a path on the owner's machine: only+// the owner, who can rename it, reads it.+func TestLocalModelsViewShowsTheCausePathOnlyToTheOwner(t *testing.T) {+ snapshot := strings.Replace(storedLocalModelsSnapshotJSON, `"state":"idle"`,+ `"state":"failed","error":{"code":"GATEWAY_REGISTRATION_FAILED","cause":"GATEWAY_HOME_NOT_PRIVATE","path":"/home/ana/.local/share/localmodels/tools/gateway-home"}`, 1)+ record := agentruntimestate.LocalModelsRecord{+ ComputerID: "computer_1", DisplayName: "Studio", Status: "offline",+ Owner: agentruntimestate.LocalComputerOwner{TenantID: "tenant_1", OwnerActorID: "actor_owner"},+ Snapshot: json.RawMessage(snapshot),+ }+ for viewer, wantPath := range map[string]bool{"actor_owner": true, "actor_member": false} {+ view, err := localModelsView(record, viewer, time.Now())+ if err != nil {+ t.Fatal(err)+ }+ failed := view.Models[2].Model.Error+ if failed == nil || failed.Cause == nil || *failed.Cause != httpapi.LocalModelErrorCauseGatewayHomeNotPrivate ||+ (failed.Path != nil) != wantPath {+ t.Fatalf("%s: error=%+v", viewer, failed)+ }+ }+}+func TestLocalModelsViewWithoutSnapshotIsNotReported(t *testing.T) {view, err := localModelsView(agentruntimestate.LocalModelsRecord{ComputerID: "computer_1", DisplayName: "Studio", Status: "offline"}, "actor_owner", time.Now())if err != nil || view.Available || view.Reason == nil || view.Reason.Code != httpapi.LocalModelsViewNotReported ||@@ -179,6 +203,11 @@ func TestValidLocalModelsSnapshot(t *testing.T) {u := "http://huggingface.co/Qwen/Qwen3-4B"s.Models[0].SourceUrl = &u},+ "unknown error cause": func(s *teamhubinternal.LocalModelsSnapshot) {+ c := teamhubinternal.LocalModelErrorCause("DISK_LOCKED")+ s.Models[0].State = teamhubinternal.LocalModelStateFailed+ s.Models[0].Error = &teamhubinternal.LocalModelError{Code: "GATEWAY_REGISTRATION_FAILED", Cause: &c}+ },"negative prompt_tokens_per_second": func(s *teamhubinternal.LocalModelsSnapshot) {p := float32(-1)s.Models[0].PromptTokensPerSecond = &pdiff --git a/apps/web/src/features/local-models/local-model-details.tsx b/apps/web/src/features/local-models/local-model-details.tsxindex 61f276f8..e74b9d88 100644--- a/apps/web/src/features/local-models/local-model-details.tsx+++ b/apps/web/src/features/local-models/local-model-details.tsx@@ -127,7 +127,7 @@ export function ModelFacts({label={stopped ? "Last download" : "Last load"}><span className="text-app-danger">- {modelErrorCopy(model.error.code)}+ {modelErrorCopy(model.error)}</span></Fact>) : null}diff --git a/apps/web/src/features/local-models/local-models-copy.ts b/apps/web/src/features/local-models/local-models-copy.tsindex eb0baa98..08b01b2a 100644--- a/apps/web/src/features/local-models/local-models-copy.ts+++ b/apps/web/src/features/local-models/local-models-copy.ts@@ -66,9 +66,24 @@ const modelErrors: Record<Schemas["LocalModelErrorCode"], string> = {PLATFORM_UNSUPPORTED: "This model doesn't run on this computer.",};-/** Why the last load or download of a model failed. */-export function modelErrorCopy(code: Schemas["LocalModelErrorCode"]) {- return modelErrors[code];+const modelErrorCauses: Record<+ NonNullable<Schemas["LocalModelError"]["cause"]>,+ (path: string | undefined) => string+> = {+ GATEWAY_HOME_NOT_PRIVATE: (path) =>+ path+ ? `It loaded, but Agents couldn't be given access to it: the folder ${path} belongs to another account. Quit Linger, rename that folder, then open Linger and load the model again.`+ : "It loaded, but Agents couldn't be given access to it: a Linger folder on the computer belongs to another account.",+};++/**+ * Why the last load or download of a model failed. A cause names the fix;+ * its path reaches only the Computer's owner.+ */+export function modelErrorCopy(error: Schemas["LocalModelError"]) {+ return error.cause+ ? modelErrorCauses[error.cause](error.path)+ : modelErrors[error.code];}const notes: Record<diff --git a/apps/web/src/features/local-models/local-models-page.test.tsx b/apps/web/src/features/local-models/local-models-page.test.tsxindex 315058df..2fe0e3de 100644--- a/apps/web/src/features/local-models/local-models-page.test.tsx+++ b/apps/web/src/features/local-models/local-models-page.test.tsx@@ -590,6 +590,41 @@ describe("LocalModelsPage", () => {expect(screen.queryByRole("dialog")).not.toBeInTheDocument();});+ it.each([+ [+ "/home/ana/.local/share/localmodels/tools/gateway-home",+ "It loaded, but Agents couldn't be given access to it: the folder /home/ana/.local/share/localmodels/tools/gateway-home belongs to another account. Quit Linger, rename that folder, then open Linger and load the model again.",+ ],+ [+ undefined,+ "It loaded, but Agents couldn't be given access to it: a Linger folder on the computer belongs to another account.",+ ],+ ])(+ "explains a gateway folder another account owns (path %s)",+ async (path, copy) => {+ await renderPage(+ setup([+ withModel(macView(), "llama3.3-70b:Q4_K_M", {+ error: {+ cause: "GATEWAY_HOME_NOT_PRIVATE",+ code: "GATEWAY_REGISTRATION_FAILED",+ detail: "raw gateway detail",+ ...(path ? { path } : {}),+ },+ }),+ ]),+ );+ await findModels();++ fireEvent.click(screen.getByRole("button", { name: "Llama 3.3 70B" }));+ const details = screen.getByRole("region", {+ name: "Llama 3.3 70B details",+ });+ expect(details).toHaveTextContent(copy);+ expect(details).not.toHaveTextContent("raw gateway detail");+ },+ );+it("retries a model that failed to load with a load and still offers Remove", async () => {const fixture = setup([withModel(macView(), "llama3.3-70b:Q4_K_M", {diff --git a/contracts/generated/go/runnergateway/wire.gen.go b/contracts/generated/go/runnergateway/wire.gen.goindex ab8144c3..d752713a 100644--- a/contracts/generated/go/runnergateway/wire.gen.go+++ b/contracts/generated/go/runnergateway/wire.gen.go@@ -1315,6 +1315,8 @@ func (LocalModelEndpoint) RequiredFields() []string { return []string{"base_url"type LocalModelError struct {Code string `json:"code"`Detail string `json:"detail,omitempty"`+ Cause string `json:"cause,omitempty"`+ Path string `json:"path,omitempty"`}// FixedFields lists the keys whose value the schema fixes for a LocalModelError.diff --git a/contracts/generated/go/teamhubinternal/openapi.gen.go b/contracts/generated/go/teamhubinternal/openapi.gen.goindex 8187a1e3..96239af2 100644--- a/contracts/generated/go/teamhubinternal/openapi.gen.go+++ b/contracts/generated/go/teamhubinternal/openapi.gen.go@@ -839,6 +839,21 @@ func (e LocalModelDownloadProgressStep) Valid() bool {}}+// Defines values for LocalModelErrorCause.+const (+ LocalModelErrorCauseGatewayHomeNotPrivate LocalModelErrorCause = "GATEWAY_HOME_NOT_PRIVATE"+)++// Valid indicates whether the value is a known member of the LocalModelErrorCause enum.+func (e LocalModelErrorCause) Valid() bool {+ switch e {+ case LocalModelErrorCauseGatewayHomeNotPrivate:+ return true+ default:+ return false+ }+}+// Defines values for LocalModelErrorCode.const (CANCELLED LocalModelErrorCode = "CANCELLED"@@ -3231,13 +3246,22 @@ type LocalModelEndpoint struct {// LocalModelError defines model for LocalModelError.type LocalModelError struct {+ // Cause Why a GATEWAY_REGISTRATION_FAILED happened, when the Computer supervised the failed job. GATEWAY_HOME_NOT_PRIVATE: the local gateway's private folder at path has another owner; closing Linger and renaming that folder lets the model load.+ Cause *LocalModelErrorCause `json:"cause,omitempty"`+// Code Closed localmodels library error set. It is extended only together with the localmodels library contract.Code LocalModelErrorCode `json:"code"`// Detail Diagnostic text for display; never matched on.Detail *string `json:"detail,omitempty"`++ // Path The folder the cause names, on the Computer. The public view carries it only for the Computer's owner.+ Path *string `json:"path,omitempty"`}+// LocalModelErrorCause Why a GATEWAY_REGISTRATION_FAILED happened, when the Computer supervised the failed job. GATEWAY_HOME_NOT_PRIVATE: the local gateway's private folder at path has another owner; closing Linger and renaming that folder lets the model load.+type LocalModelErrorCause string+// LocalModelErrorCode Closed localmodels library error set. It is extended only together with the localmodels library contract.type LocalModelErrorCode stringdiff --git a/contracts/generated/go/teamhubpublic/openapi.gen.go b/contracts/generated/go/teamhubpublic/openapi.gen.goindex 2f222e10..9816d286 100644--- a/contracts/generated/go/teamhubpublic/openapi.gen.go+++ b/contracts/generated/go/teamhubpublic/openapi.gen.go@@ -2138,6 +2138,21 @@ func (e LocalModelDownloadProgressStep) Valid() bool {}}+// Defines values for LocalModelErrorCause.+const (+ LocalModelErrorCauseGatewayHomeNotPrivate LocalModelErrorCause = "GATEWAY_HOME_NOT_PRIVATE"+)++// Valid indicates whether the value is a known member of the LocalModelErrorCause enum.+func (e LocalModelErrorCause) Valid() bool {+ switch e {+ case LocalModelErrorCauseGatewayHomeNotPrivate:+ return true+ default:+ return false+ }+}+// Defines values for LocalModelErrorCode.const (CANCELLED LocalModelErrorCode = "CANCELLED"@@ -6609,13 +6624,22 @@ type LocalModelEndpoint struct {// LocalModelError defines model for LocalModelError.type LocalModelError struct {+ // Cause Why a GATEWAY_REGISTRATION_FAILED happened, when the Computer supervised the failed job. GATEWAY_HOME_NOT_PRIVATE: the local gateway's private folder at path has another owner; closing Linger and renaming that folder lets the model load.+ Cause *LocalModelErrorCause `json:"cause,omitempty"`+// Code Closed localmodels library error set. It is extended only together with the localmodels library contract.Code LocalModelErrorCode `json:"code"`// Detail Diagnostic text for display; never matched on.Detail *string `json:"detail,omitempty"`++ // Path The folder the cause names, on the Computer. The public view carries it only for the Computer's owner.+ Path *string `json:"path,omitempty"`}+// LocalModelErrorCause Why a GATEWAY_REGISTRATION_FAILED happened, when the Computer supervised the failed job. GATEWAY_HOME_NOT_PRIVATE: the local gateway's private folder at path has another owner; closing Linger and renaming that folder lets the model load.+type LocalModelErrorCause string+// LocalModelErrorCode Closed localmodels library error set. It is extended only together with the localmodels library contract.type LocalModelErrorCode stringdiff --git a/contracts/generated/typescript/src/generated/runner-gateway/schema.ts b/contracts/generated/typescript/src/generated/runner-gateway/schema.tsindex 9415f080..406b5e23 100644--- a/contracts/generated/typescript/src/generated/runner-gateway/schema.ts+++ b/contracts/generated/typescript/src/generated/runner-gateway/schema.ts@@ -2403,6 +2403,17 @@ export const runnerGatewayEnvelopeSchema = {type: "string",maxLength: 4000,},+ cause: {+ description:+ "Why a GATEWAY_REGISTRATION_FAILED happened, from the failed job's error line. GATEWAY_HOME_NOT_PRIVATE: the local gateway's private folder at path has another owner.",+ enum: ["GATEWAY_HOME_NOT_PRIVATE"],+ },+ path: {+ description: "The folder the cause names.",+ type: "string",+ minLength: 1,+ maxLength: 4096,+ },},},LocalModelNote: {diff --git a/contracts/generated/typescript/src/generated/runner-gateway/types.ts b/contracts/generated/typescript/src/generated/runner-gateway/types.tsindex 13220df0..622ce0b0 100644--- a/contracts/generated/typescript/src/generated/runner-gateway/types.ts+++ b/contracts/generated/typescript/src/generated/runner-gateway/types.ts@@ -1466,6 +1466,14 @@ export interface LocalModelError {* Diagnostic text for display; never matched on.*/detail?: string;+ /**+ * Why a GATEWAY_REGISTRATION_FAILED happened, from the failed job's error line. GATEWAY_HOME_NOT_PRIVATE: the local gateway's private folder at path has another owner.+ */+ cause?: "GATEWAY_HOME_NOT_PRIVATE";+ /**+ * The folder the cause names.+ */+ path?: string;}/*** Present only when idle and the automatic load after download was skipped.diff --git a/contracts/generated/typescript/src/generated/teamhub-internal/types.ts b/contracts/generated/typescript/src/generated/teamhub-internal/types.tsindex 376d4350..3eefbc40 100644--- a/contracts/generated/typescript/src/generated/teamhub-internal/types.ts+++ b/contracts/generated/typescript/src/generated/teamhub-internal/types.ts@@ -2626,6 +2626,13 @@ export interface components {code: components["schemas"]["LocalModelErrorCode"];/** @description Diagnostic text for display; never matched on. */detail?: string;+ /**+ * @description Why a GATEWAY_REGISTRATION_FAILED happened, when the Computer supervised the failed job. GATEWAY_HOME_NOT_PRIVATE: the local gateway's private folder at path has another owner; closing Linger and renaming that folder lets the model load.+ * @enum {string}+ */+ cause?: "GATEWAY_HOME_NOT_PRIVATE";+ /** @description The folder the cause names, on the Computer. The public view carries it only for the Computer's owner. */+ path?: string;};LocalModelNote: {/** @enum {string} */diff --git a/contracts/generated/typescript/src/generated/teamhub-public/types.ts b/contracts/generated/typescript/src/generated/teamhub-public/types.tsindex e3793e03..81302d07 100644--- a/contracts/generated/typescript/src/generated/teamhub-public/types.ts+++ b/contracts/generated/typescript/src/generated/teamhub-public/types.ts@@ -4690,6 +4690,13 @@ export interface components {code: components["schemas"]["LocalModelErrorCode"];/** @description Diagnostic text for display; never matched on. */detail?: string;+ /**+ * @description Why a GATEWAY_REGISTRATION_FAILED happened, when the Computer supervised the failed job. GATEWAY_HOME_NOT_PRIVATE: the local gateway's private folder at path has another owner; closing Linger and renaming that folder lets the model load.+ * @enum {string}+ */+ cause?: "GATEWAY_HOME_NOT_PRIVATE";+ /** @description The folder the cause names, on the Computer. The public view carries it only for the Computer's owner. */+ path?: string;};LocalModelNote: {/** @enum {string} */diff --git a/contracts/openapi/components/local-models.yaml b/contracts/openapi/components/local-models.yamlindex ea5bf042..611d47ae 100644--- a/contracts/openapi/components/local-models.yaml+++ b/contracts/openapi/components/local-models.yaml@@ -282,6 +282,22 @@ components:description: Diagnostic text for display; never matched on.type: stringmaxLength: 4000+ cause:+ description: >-+ Why a GATEWAY_REGISTRATION_FAILED happened, when the Computer+ supervised the failed job. GATEWAY_HOME_NOT_PRIVATE: the local+ gateway's private folder at path has another owner; closing Linger+ and renaming that folder lets the model load.+ type: string+ enum: [GATEWAY_HOME_NOT_PRIVATE]+ x-enum-varnames: [LocalModelErrorCauseGatewayHomeNotPrivate]+ path:+ description: >-+ The folder the cause names, on the Computer. The public view+ carries it only for the Computer's owner.+ type: string+ minLength: 1+ maxLength: 4096LocalModelNote:type: objectadditionalProperties: falsediff --git a/contracts/runner-gateway/envelope.schema.json b/contracts/runner-gateway/envelope.schema.jsonindex f67314e2..706b2a0d 100644--- a/contracts/runner-gateway/envelope.schema.json+++ b/contracts/runner-gateway/envelope.schema.json@@ -2380,6 +2380,16 @@"description": "Diagnostic text for display; never matched on.","type": "string","maxLength": 4000+ },+ "cause": {+ "description": "Why a GATEWAY_REGISTRATION_FAILED happened, from the failed job's error line. GATEWAY_HOME_NOT_PRIVATE: the local gateway's private folder at path has another owner.",+ "enum": ["GATEWAY_HOME_NOT_PRIVATE"]+ },+ "path": {+ "description": "The folder the cause names.",+ "type": "string",+ "minLength": 1,+ "maxLength": 4096}}},