Skip to content

fix: add missing TROUBLESHOOTING_URL and COMPATIBILITY_URL constants - #515

Merged
lacymorrow merged 2 commits into
mainfrom
fix/missing-menu-urls
Aug 25, 2026
Merged

lacymorrow merged 2 commits into
mainfrom
fix/missing-menu-urls

Conversation

@lacymorrow

@lacymorrow lacymorrow commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Fixes the v3.4.4 startup crash on all platforms (#529): menu.js destructures TROUBLESHOOTING_URL and COMPATIBILITY_URL from src/config/config.js, but they were never defined there. openUrlMenuItem throws `The `url` option is required` at module load, crashing the main process before any window opens.

Changes

  • Add TROUBLESHOOTING_URL and COMPATIBILITY_URL constants to src/config/config.js and export them.
  • Regression test (test/config.spec.js): every key destructured from config/config anywhere in src/ must exist in config's exports, and all exported *_URL values must parse as URLs. The test fails on the pre-fix tree and passes with the fix.

Testing

  • playwright test test/config.spec.js — 2 passed with fix; verified the first test fails when config.js is reverted to the v3.4.4 version.
  • eslint clean on the new test file.

Paperclip: LAC-3424

🤖 Generated with Claude Code

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request adds and exports two new configuration constants, TROUBLESHOOTING_URL and COMPATIBILITY_URL, pointing to game compatibility resources on GitHub. I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

lacymorrow and others added 2 commits August 25, 2026 16:18
These were imported in menu.js but never defined in config.js, causing
an uncaught exception on app start from openUrlMenuItem.
Fails on the #529 bug (TROUBLESHOOTING_URL/COMPATIBILITY_URL undefined at
menu build) and guards the whole class: every key destructured from
config/config in src/ must exist in config's exports, and *_URL exports
must parse as URLs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@lacymorrow
lacymorrow force-pushed the fix/missing-menu-urls branch from eb1529d to fa99b6a Compare August 25, 2026 20:21
@lacymorrow
lacymorrow merged commit 41fe7b8 into main Aug 25, 2026
4 checks passed
@lacymorrow
lacymorrow deleted the fix/missing-menu-urls branch August 25, 2026 22:16
lacymorrow added a commit that referenced this pull request Aug 25, 2026
Ships the #515 startup-crash fix (missing TROUBLESHOOTING_URL and
COMPATIBILITY_URL config exports crashed v3.4.4 at launch, #529).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant