Add hub AI config tab with sync to instances and deploy secret bootstrap.

Wire bootstrap_deploy_secrets into setup_env.sh (one-time HUB_BRIDGE_TOKEN, FLASK_SECRET_KEY, HUB_SESSION_SECRET). Remove AI section from instance env UI; hub saves OPENAI settings to all four .env files. SSO unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-08 22:50:58 +08:00
parent 886f7740f2
commit 823aeda42a
17 changed files with 653 additions and 54 deletions
+8 -2
View File
@@ -3042,7 +3042,8 @@ button.btn-sm {
#hub-sec-2:checked ~ .hub-config-tabs label[for="hub-sec-2"],
#hub-sec-3:checked ~ .hub-config-tabs label[for="hub-sec-3"],
#hub-sec-4:checked ~ .hub-config-tabs label[for="hub-sec-4"],
#hub-sec-5:checked ~ .hub-config-tabs label[for="hub-sec-5"] {
#hub-sec-5:checked ~ .hub-config-tabs label[for="hub-sec-5"],
#hub-sec-6:checked ~ .hub-config-tabs label[for="hub-sec-6"] {
color: var(--text);
border-bottom-color: var(--accent);
font-weight: 600;
@@ -3053,7 +3054,8 @@ button.btn-sm {
#hub-sec-2:checked ~ .hub-config-panels .hub-panel--2,
#hub-sec-3:checked ~ .hub-config-panels .hub-panel--3,
#hub-sec-4:checked ~ .hub-config-panels .hub-panel--4,
#hub-sec-5:checked ~ .hub-config-panels .hub-panel--5 {
#hub-sec-5:checked ~ .hub-config-panels .hub-panel--5,
#hub-sec-6:checked ~ .hub-config-panels .hub-panel--6 {
display: block;
}
@@ -3099,6 +3101,10 @@ button.btn-sm {
margin-top: 8px;
}
.hub-ai-env-grid .field-wide {
grid-column: 1 / -1;
}
.settings-status-line {
font-size: 0.8rem;
color: var(--muted);