Fix Zeus Connect: show only QR code, hide raw URL text

- modules/core/sovran-hub.nix: rename credential label from 'Scan QR Code' to 'QR Code'
- server.py: forward qronly flag in _resolve_credential so JS can hide the URL text/copy button

Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/0292564f-8e75-4c34-b938-1a6c98f3ff0d

Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-30 03:50:17 +00:00
committed by GitHub
parent c2887b60b2
commit 6d72f70fe5
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -1243,6 +1243,7 @@ def _resolve_credential(cred: dict) -> dict | None:
extract = cred.get("extract", "")
multiline = cred.get("multiline", False)
qrcode = cred.get("qrcode", False)
qronly = cred.get("qronly", False)
# Static value
if "value" in cred:
@@ -1251,6 +1252,8 @@ def _resolve_credential(cred: dict) -> dict | None:
qr_data = _generate_qr_base64(result["value"])
if qr_data:
result["qrcode"] = qr_data
if qronly:
result["qronly"] = True
return result
# File-based value
@@ -1280,6 +1283,9 @@ def _resolve_credential(cred: dict) -> dict | None:
if qr_data:
result["qrcode"] = qr_data
if qronly:
result["qronly"] = True
return result