Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(ui): build console-server reload redirect with explicit http scheme

cyh7e74dbae4740
diff --git a/ui/src/components/settings/SettingsServicePage.tsx b/ui/src/components/settings/SettingsServicePage.tsx
index b621209ae..8c5e8f02a 100644
--- a/ui/src/components/settings/SettingsServicePage.tsx
+++ b/ui/src/components/settings/SettingsServicePage.tsx
@@ -73,7 +73,12 @@ export const SettingsServicePage: React.FC = () => {
normalizedSetupHost === '::' ||
normalizedSetupHost === '';
const targetHostname = isBindAll ? currentHostname : normalizedSetupHost;
- const newOrigin = `${window.location.protocol}//${formatAuthorityHost(targetHostname)}:${targetPort}`;
+ // The UI server (vibe/ui_server.run_ui_server) binds plain HTTP — any
+ // HTTPS access the user has goes through an external TLS proxy whose
+ // upstream is this HTTP bind. Always target http:// so the redirect or
+ // surfaced URL points at something the rebound server can actually
+ // serve, instead of inheriting the current page protocol.
+ const newOrigin = `http://${formatAuthorityHost(targetHostname)}:${targetPort}`;
const originChanged = targetHostname !== currentHostname || targetPort !== currentPort;
if (originChanged) {
// Only auto-redirect when the new hostname is something the current