Skip to content

fix: guard against undefined lineInfo crash#89

Merged
hyldmo merged 1 commit intomainfrom
hyldmo/fix-lineinfo-undefined
Mar 19, 2026
Merged

fix: guard against undefined lineInfo crash#89
hyldmo merged 1 commit intomainfrom
hyldmo/fix-lineinfo-undefined

Conversation

@hyldmo
Copy link
Copy Markdown
Owner

@hyldmo hyldmo commented Mar 19, 2026

Summary

  • Update @opentui/core (0.1.81→0.1.88) which fixes lineInfo.lineStarts crash in ScrollBox.scrollHeight/scrollWidth
  • Update ghostty-opentui (1.4.3→1.4.7) and patch remaining unguarded lineInfo access in renderSelf and getScrollPositionForLine
  • Move stderr error messages inside app.shutdown().finally() so crash messages print after TUI teardown and are visible

Test plan

  • bun run typecheck passes
  • bun test — 599 tests pass
  • Run numux in TUI mode and verify no lineInfo crash on startup

🤖 Generated with Claude Code

Update @opentui/core (0.1.81→0.1.88) which fixes the lineInfo crash in
ScrollBox.scrollHeight/scrollWidth. Update ghostty-opentui (1.4.3→1.4.7)
and patch its remaining unguarded lineInfo access in renderSelf and
getScrollPositionForLine.

Also move stderr error messages inside app.shutdown().finally() so they
print after TUI teardown and are actually visible.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@hyldmo hyldmo merged commit 104026e into main Mar 19, 2026
2 checks passed
@hyldmo hyldmo deleted the hyldmo/fix-lineinfo-undefined branch March 19, 2026 10:28
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 2.7.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant