Skip to content
This repository was archived by the owner on Jun 8, 2026. It is now read-only.

Fix auto-update error visibility and add zip target - #44

Merged
mikeangstadt merged 3 commits into
mainfrom
fix-auto-update-bugs
Mar 26, 2026
Merged

Fix auto-update error visibility and add zip target#44
mikeangstadt merged 3 commits into
mainfrom
fix-auto-update-bugs

Conversation

@mikeangstadt

Copy link
Copy Markdown
Contributor

Summary

  • Bug 2 fix: Auto-update errors were silently swallowed via empty .catch(() => {}) blocks. Added autoUpdater.on("error") handler and replaced empty catches with proper gatewayLog.error logging for full visibility into update failures.
  • Bug 3 fix: macOS builds only produced DMG, but electron-updater works most reliably with zip for applying updates. Added zip as an additional build target alongside DMG (DMG for initial install, zip for auto-updates). Updated release workflow to upload both artifacts.

Test plan

  • Verify typecheck passes (just desktop-typecheck)
  • Verify lint passes (just desktop-lint)
  • Confirm CI builds both DMG and zip artifacts
  • Confirm auto-update errors now appear in gateway logs (UI Logs panel)

🤖 Generated with Claude Code

…rget

- Add autoUpdater.on("error") handler with gatewayLog.error logging
- Replace empty catch blocks with error logging in checkForUpdates calls
- Add zip build target alongside DMG for reliable macOS auto-updates
- Update release workflow to upload both DMG and zip artifacts
- Bump version to 0.8.9

Testing: Ran typecheck and lint, both pass. Verified error handler uses
existing gatewayLog infrastructure for consistency.

Risks: The zip target addition changes build output -- CI will now produce
an additional artifact. electron-updater prefers zip on macOS so this
improves update reliability.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mikeangstadt
mikeangstadt requested a review from a team March 26, 2026 15:33
mikeangstadt and others added 2 commits March 26, 2026 11:24
- Replace org-level GitHub App secrets with repo-level CLAUDE_CODE_OAUTH_TOKEN
- Use GITHUB_TOKEN (always available) instead of generated app token
- Drop private plugin marketplace dependency (requires cross-repo app token)
- Simplify workflow to essentials — no org secrets needed for public repo

Testing: Verified CLAUDE_CODE_OAUTH_TOKEN exists as repo secret.

Risks: Reviews will use default claude-code-action behavior instead of
custom plugins. Review quality should be equivalent for this repo's needs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Restore claude-code-review.yml to original state
- Restore release.yml to original state (revert zip artifact change)
- Workflow fixes are out of scope for this PR

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@aponamarev aponamarev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mikeangstadt
mikeangstadt merged commit 330dfe0 into main Mar 26, 2026
2 checks passed
@mikeangstadt
mikeangstadt deleted the fix-auto-update-bugs branch March 26, 2026 19:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants