From 00486de7adffbc1a1f3becc7e24e26f9f12588f7 Mon Sep 17 00:00:00 2001 From: natehuby76 <86365949+natehuby76@users.noreply.github.com> Date: Tue, 24 Nov 2026 18:02:18 -0500 Subject: [PATCH] fix galaxy support code entry --- openpilot/starpilot/galaxy/server.py | 2 +- openpilot/starpilot/galaxy/tests/test_diagnostic_http.py | 2 +- openpilot/starpilot/galaxy/web/js/local-access.js | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/openpilot/starpilot/galaxy/server.py b/openpilot/starpilot/galaxy/server.py index 3b18a92d7f..ed296f06d6 100644 --- a/openpilot/starpilot/galaxy/server.py +++ b/openpilot/starpilot/galaxy/server.py @@ -1834,7 +1834,7 @@ def make_server(*, port=8082, host='127.0.0.1', monitor=None, owner=None, crashe self.json(401, {'error': 'Sign in to Galaxy'}) return if (not isinstance(payload, dict) or not isinstance(payload.get('code'), str) or - not re.fullmatch(r'[0-9a-f]{16}', payload['code']) or payload.get('action') not in ('check', 'send')): + not re.fullmatch(r'[0-9a-hjkmnp-tv-z]{12}', payload['code']) or payload.get('action') not in ('check', 'send')): self.json(400, {'error': 'Enter the code from the Discord request.'}) return relay = 'https://starpilot-log-relay.nathan-g-hubbard.workers.dev/report/galaxy/device' diff --git a/openpilot/starpilot/galaxy/tests/test_diagnostic_http.py b/openpilot/starpilot/galaxy/tests/test_diagnostic_http.py index 7bcb204600..45bf828efa 100644 --- a/openpilot/starpilot/galaxy/tests/test_diagnostic_http.py +++ b/openpilot/starpilot/galaxy/tests/test_diagnostic_http.py @@ -75,7 +75,7 @@ class DiagnosticHTTPTest(unittest.TestCase): def test_support_code_captures_on_device_and_confirms_delivery(self): _, _, self.cookie = self.request('/api/auth/session') - code = 'ab12' * 3 + code = 'j2q7m4x8z0tw' path = '/api/companion/support-ticket' def post(action): return self.request(path, method='POST', payload={'code': code, 'action': action}) diff --git a/openpilot/starpilot/galaxy/web/js/local-access.js b/openpilot/starpilot/galaxy/web/js/local-access.js index 77b107ef57..c7c85f2b66 100644 --- a/openpilot/starpilot/galaxy/web/js/local-access.js +++ b/openpilot/starpilot/galaxy/web/js/local-access.js @@ -69,6 +69,7 @@ export const ConnectionLogs = { this.captureError = "" }, async threadAction(action) { + this.$refs?.supportCodeField?.blur() if (this.supportBusy) return this.supportBusy = true this.captureError = "" @@ -141,7 +142,7 @@ export const ConnectionLogs = {
Send to existing Discord thread

Support received the logs. Your Discord thread has the receipt.

- +