rules/auto-update.md
Debugging update failures reported by users, or changing updater/debug-report code.
https://api.dyad.sh/v1/update/{stable|beta}/dyad-sh/dyad/<platform>-<arch>/<version>/RELEASES (built by update-electron-app from the host set in src/main.ts). To check server health, curl that exact shape — a malformed path (e.g. missing the dyad-sh/dyad/... segments) gets a 307 redirect to the repo homepage, which looks "up" but is not a valid feed response.Squirrel.FileDownloader.DownloadUrl stack traces that start at --- End of stack trace --- are missing the head line with the real exception (System.Net.WebException: ...). Cause: update-electron-app logs updater errors at info level, and the warn-filtered bug-report logs drop [info]-prefixed lines while keeping unprefixed stack-trace continuation lines. Fixed by an error-level autoUpdater.on("error") handler in src/main.ts; old reports still show only tails.Update.exe: %LocalAppData%\dyad\SquirrelSetup.log. Debug bundles capture its tail via readUpdaterLogs() in src/ipc/handlers/debug_handlers.ts (updaterLogs field).openGitHubIssue in HelpDialog.tsx), so any new log section added there must be tightly size-capped (~1-2k chars) to avoid overlong URLs. When capping updater logs, reserve space for the Last updater error (this session) block; blindly taking the tail can keep only Squirrel stack tails and drop the root cause. Do not split updater log sections on arbitrary blank lines because .NET exception text can contain internal blank lines; use known section headers such as Squirrel*.log (tail):.HelpDialog review screen so users can inspect it before submitting.dyad-cloud/apps/api/src/app/v1/update/release_trust.ts; a GitHub release and its asset digests are not sufficient trust signals by themselves..github/workflows/release.yml. Any intentional workflow edit must be coordinated with that allowlist or new releases will fail closed and disappear from update/landing feeds.out/make, not all of out; the latter also contains unpackaged application files that are not release assets.contents: write job (currently publish); a read-only follow-up job reports the draft as missing even when every asset uploaded successfully.~ become .). Record that sanitized name in provenance, and keep post-upload verification comparing every exact name, digest, and size so publisher behavior cannot drift silently.actions/attest statement: its workflow path has no leading slash, and its builder ID is the workflow identity URL rather than a generic hosted-runner URL.