Compare commits

..

9 Commits

Author SHA1 Message Date
john 6a48e0ad91 merge: native goosed remount for Portal release
Memind CI / Test, build, and release guards (push) Successful in 4m59s
2026-08-03 16:50:54 +08:00
john c2189ee30d fix(release): restart native goosed pool after Portal live swap on 103
103 production uses launchd goosed-native instead of Docker bind mounts;
fall back to kickstarting native services when docker compose is unavailable.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 16:50:54 +08:00
john 2cc98b9392 merge: retrigger CI on host runner
Memind CI / Test, build, and release guards (push) Successful in 7m3s
2026-08-03 16:12:39 +08:00
john 2f4dd39181 ci: retrigger on host-mode runner
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 16:12:36 +08:00
john 4e66c43350 merge: retrigger CI after runner wrapper
Memind CI / Test, build, and release guards (push) Failing after 2s
2026-08-03 16:11:09 +08:00
john 85872e1e84 ci: retrigger after runner wrapper fix
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 16:11:06 +08:00
john 93aa7c1cfa merge: retrigger CI after runner recovery
Memind CI / Test, build, and release guards (push) Failing after 8s
2026-08-03 16:06:09 +08:00
john 49c2671845 ci: retrigger workflow after runner and Colima recovery
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 16:06:07 +08:00
john 5cebd1121e merge: map Gitea workflows as non-runtime for release gate
Memind CI / Test, build, and release guards (push) Failing after 7s
2026-08-03 15:50:29 +08:00
+36 -2
View File
@@ -438,8 +438,42 @@ remount_goosed_after_live_swap() {
local ready=0 local ready=0
if [[ ! -x "${docker_bin}" || ! -f "${compose_file}" ]]; then if [[ ! -x "${docker_bin}" || ! -f "${compose_file}" ]]; then
echo "goosed remount failed: docker or ${compose_file} is unavailable" >&2 say "重启 native goosed 以刷新 Portal/MindSpace bind mount"
return 1 mkdir -p "${APP_DIR}"
printf '%s\n' "${marker_value}" > "${marker_host}"
local gui="gui/$(id -u)"
local port
for port in $(seq 18006 18014); do
launchctl kickstart -k "${gui}/cn.tkmind.goosed-native-${port}" >/dev/null 2>&1 || true
done
for _ in $(seq 1 60); do
local healthy=1
if [[ "$(cat "${marker_host}" 2>/dev/null || true)" != "${marker_value}" ]]; then
healthy=0
fi
if [[ ! -f "${APP_DIR}/mindspace-sandbox-mcp.mjs" ]]; then
healthy=0
fi
for port in $(seq 18006 18014); do
if [[ "$(curl -skS -m 5 "https://127.0.0.1:${port}/status" 2>/dev/null || true)" != "ok" ]]; then
healthy=0
fi
done
if [[ "${healthy}" -eq 1 ]]; then
ready=1
break
fi
sleep 2
done
rm -f "${marker_host}"
if [[ "${ready}" -ne 1 ]]; then
echo "goosed remount failed: native goosed pool did not become healthy on the new live directory" >&2
return 1
fi
return 0
fi fi
mkdir -p "${APP_DIR}" mkdir -p "${APP_DIR}"