[PR #8656] fix(desktop): move platform creation before event listener #12820

Closed
opened 2026-02-16 18:17:42 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/8656

State: closed
Merged: No


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
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8656 **State:** closed **Merged:** No --- ### 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
yindo added the pull-request label 2026-02-16 18:17:42 -05:00
yindo closed this issue 2026-02-16 18:17:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12820