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.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
fix(regression): harden docker probe compatibility
cyhce4582535ac6
diff --git a/scripts/run_three_regression.sh b/scripts/run_three_regression.shindex 1b80c46b8..f14e060b2 100755--- a/scripts/run_three_regression.sh+++ b/scripts/run_three_regression.sh@@ -217,18 +217,25 @@ snapshot_agent_runtime_state() {}wait_for_service() {- local port="$1"- local url="http://127.0.0.1:${port}"-for _ in $(seq 1 60); do- if curl -sf "$url/health" >/dev/null 2>&1 && \- curl -sf "$url/status" | "$PYTHON_BIN" -c 'import json,sys; sys.exit(0 if json.load(sys.stdin).get("running") else 1)' >/dev/null 2>&1; then+ if "$DOCKER_BIN" compose -p "$PROJECT_NAME" -f "$COMPOSE_FILE" exec -T vibe python - <<'PY' >/dev/null 2>&1; then+import json+import sys+import urllib.request++try:+ urllib.request.urlopen("http://127.0.0.1:5123/health", timeout=3).read()+ status = json.loads(urllib.request.urlopen("http://127.0.0.1:5123/status", timeout=3).read())+except Exception:+ sys.exit(1)+sys.exit(0 if status.get("running") else 1)+PYreturn 0fisleep 2done- echo "Service did not become ready on port $port" >&2+ echo "Service did not become ready inside the regression container" >&2"$DOCKER_BIN" compose -p "$PROJECT_NAME" -f "$COMPOSE_FILE" logs vibe || truereturn 1}diff --git a/tests/test_ui_remote_access_auth.py b/tests/test_ui_remote_access_auth.pyindex 91a5b9dd7..81320ccf9 100644--- a/tests/test_ui_remote_access_auth.py+++ b/tests/test_ui_remote_access_auth.py@@ -130,6 +130,21 @@ def test_docker_loopback_status_probe_is_allowed_when_explicitly_trusted(monkeypassert response.status_code == 200+def test_docker_loopback_probe_accepts_ipv4_mapped_peer(monkeypatch, tmp_path):+ monkeypatch.setenv("VIBE_REMOTE_HOME", str(tmp_path))+ monkeypatch.setenv("VIBE_REMOTE_ALLOW_DOCKER_LOOPBACK_PEERS", "1")+ monkeypatch.setenv("VIBE_REMOTE_DOCKER_LOOPBACK_BIND_HOST", "127.0.0.1")+ _save_config(tmp_path)++ response = app.test_client().get(+ "/health",+ base_url="http://127.0.0.1:15130",+ environ_base={"REMOTE_ADDR": "::ffff:172.17.0.1"},+ )++ assert response.status_code == 200++def test_docker_loopback_trust_does_not_bypass_ui_auth(monkeypatch, tmp_path):monkeypatch.setenv("VIBE_REMOTE_HOME", str(tmp_path))monkeypatch.setenv("VIBE_REMOTE_ALLOW_DOCKER_LOOPBACK_PEERS", "1")diff --git a/vibe/ui_server.py b/vibe/ui_server.pyindex ab064fa40..d5f68c60d 100644--- a/vibe/ui_server.py+++ b/vibe/ui_server.py@@ -250,6 +250,7 @@ def _is_trusted_docker_peer() -> bool:address = ipaddress.ip_address(remote_addr)except ValueError:return False+ address = getattr(address, "ipv4_mapped", None) or addresscidrs = os.environ.get("VIBE_REMOTE_DOCKER_LOOPBACK_PEER_CIDRS", "172.16.0.0/12,192.168.65.0/24")for raw_network in cidrs.split(","):