opencode icon indicating copy to clipboard operation
opencode copied to clipboard

fix(desktop): move platform creation before event listener

Open jerome-benoit opened this issue 21 hours ago • 3 comments

What does this PR do?

Fixes typecheck error TS2304: Cannot find name 'platform' introduced in #7360.

Moves platform and serverPassword creation outside render() so they're available to the click event listener that references platform.openLink().

Fixes #8657

How did you verify your code works?

  • ✅ Typecheck passes: bun run typecheck
  • ✅ Pre-push hooks pass (includes turbo typecheck)
  • ✅ No functionality changes - only moves existing code to correct scope

jerome-benoit avatar Jan 15 '26 11:01 jerome-benoit