[PR #5509] fix(ui): guard Node reference for SSR compatibility in isTriggerTitle #11441

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

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

State: closed
Merged: Yes


Summary

  • Fix ReferenceError: Node is not defined crash on Share pages (SSR)

Why

  • The isTriggerTitle utility checks instanceof Node which throws in the server environment where Node is not defined
  • This caused the entire application to fail hydration and render empty on share routes
  • Special thanks to @Dragoy for debugging and identifying the root cause via DevTools

Fixes #5493

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5509 **State:** closed **Merged:** Yes --- ## Summary - Fix `ReferenceError: Node is not defined` crash on Share pages (SSR) ## Why - The `isTriggerTitle` utility checks `instanceof Node` which throws in the server environment where `Node` is not defined - This caused the entire application to fail hydration and render empty on share routes - Special thanks to @Dragoy for debugging and identifying the root cause via DevTools Fixes #5493
yindo added the pull-request label 2026-02-16 18:16:16 -05:00
yindo closed this issue 2026-02-16 18:16:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11441