From f9b9550942ef91ca602e2cbcd3d340d38af81839 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Fri, 13 Nov 2026 10:16:33 -0600 Subject: [PATCH] Remove redundant Laboratory runtime section --- openpilot/starpilot/galaxy/tests/test_model_laboratory.mjs | 4 +++- openpilot/starpilot/galaxy/web/js/model-laboratory.js | 4 +--- prebuilt.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/openpilot/starpilot/galaxy/tests/test_model_laboratory.mjs b/openpilot/starpilot/galaxy/tests/test_model_laboratory.mjs index 08a24ebee4..3a478dab9f 100644 --- a/openpilot/starpilot/galaxy/tests/test_model_laboratory.mjs +++ b/openpilot/starpilot/galaxy/tests/test_model_laboratory.mjs @@ -73,12 +73,14 @@ await download.reply(1,{message:'Starting download'});await download.reply(2,{.. const canceling=download.feed.action('cancel');assert.equal(download.requests[3].url,'./api/models/cancel');assert.deepEqual(JSON.parse(download.requests[3].options.body),{jobId:'job'}) await download.reply(3,{message:'Cancelling'});await download.reply(4,p);await canceling;download.feed.stop() assert.deepEqual([...LaboratoryPage.template.matchAll(/class="gx-section__title">([^<]+)<\/span>/g)].map(match => match[1]), - ['Compose a pair', 'Available models', 'Runtime']) + ['Compose a pair', 'Available models']) for (const label of ['Lateral model', 'Longitudinal model', 'Enable model pair', 'Check model catalog']) { const position = LaboratoryPage.template.indexOf(label) assert.ok(position >= 0 && position < LaboratoryPage.template.indexOf('v-for="m in availableModels"'), `${label} must appear before the model catalog`) } +assert.doesNotMatch(LaboratoryPage.template,/runtimeState|modelLabel\(status\?\.runtime/ ) +assert.match(LaboratoryPage.template,/status\?\.runtime.error/) assert.match(LaboratoryPage.template,/GalaxySelect/) assert.match(LaboratoryPage.template,/Catalog models/) assert.match(LaboratoryPage.template,/modelLabReason/) diff --git a/openpilot/starpilot/galaxy/web/js/model-laboratory.js b/openpilot/starpilot/galaxy/web/js/model-laboratory.js index 0c0fd69da3..7e94314e42 100644 --- a/openpilot/starpilot/galaxy/web/js/model-laboratory.js +++ b/openpilot/starpilot/galaxy/web/js/model-laboratory.js @@ -111,7 +111,6 @@ export const LaboratoryPage = { readyModels() { return laboratoryReady(this.status) }, candidates() { return this.readyModels.filter(m => m.value !== this.configuration.lateralModel) }, selectionError() { return laboratorySelectionError(this.status, this.configuration) }, - runtimeState() { return !this.status ? "Status unavailable" : !this.status.runtimeSupported ? "Unavailable" : this.status.runtime.active ? "Pair active" : this.status.runtime.requested ? "Pair requested" : "Inactive" }, }, created() { this.feed = new LaboratoryFeed({ unauthorized: this.unauthorized, publish: update => { @@ -139,7 +138,6 @@ export const LaboratoryPage = { statusLabel: laboratoryStatusLabel, actionAvailable(action, model = null) { return laboratoryActionAllowed(this.status, action, model, this.configuration) }, can(action, model = null) { return !this.busy && this.actionAvailable(action, model) }, - modelLabel(id) { return this.status?.models.find(m => m.value === id)?.label || id || "Not selected" }, changeLateral(value) { this.configuration.lateralModel = value if (this.configuration.longitudinalModel === value) this.configuration.longitudinalModel = this.candidates[0]?.value || "" @@ -173,6 +171,7 @@ export const LaboratoryPage = { Loading Model Laboratory… {{ error }} {{ status.configurationError }} + {{ status.runtime.error }} {{ message }} `, } diff --git a/prebuilt.json b/prebuilt.json index bedfde94af..cf5eb9fd98 100644 --- a/prebuilt.json +++ b/prebuilt.json @@ -1 +1 @@ -{"protected_inventory_sha256": "5468f386545333866289074061995eca420d2daf1141b0b528bdbb6393e84e05", "schema_version": 1} +{"protected_inventory_sha256": "c5cf3d82f1dcc073a9d84a5119a0a7545e375d62adb1dd022c9b835180a8b05b", "schema_version": 1}