Fix Update.ps1 hash lookup condition

This commit is contained in:
2025-10-08 17:59:01 -06:00
parent 9948722776
commit 62cc377fe2
3 changed files with 238 additions and 300 deletions

View File

@@ -127,7 +127,7 @@ export default function DeviceList({ onSelectDevice }) {
const fetchLatestRepoHash = useCallback(async () => {
try {
const params = new URLSearchParams({ repo: "bunny-lab-io/Borealis", branch: "main" });
const resp = await fetch(`/api/agent/repo_hash?${params.toString()}`);
const resp = await fetch(`/api/repo/current_hash?${params.toString()}`);
const json = await resp.json();
const sha = (json?.sha || "").trim();
if (!resp.ok || !sha) {