Skip to content

chore(deps): bump @opentui/core from 0.7.0 to 0.8.3 - #240

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bun/opentui/core-0.8.1
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bun/opentui/core-0.8.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Bumps @opentui/core from 0.7.0 to 0.8.3.

Release notes

Sourced from @​opentui/core's releases.

Release v0.8.3

Over ssh, sshd drops COLORTERM. A terminal that draws 24-bit color but sends TERM=xterm-256color without COLORTERM therefore got every color mapped to the 256-color palette. In WezTerm and xterm over ssh, a navy #23344b turned into a gray #3a3a3a. In 0.8.2, only a kitty XTVERSION reply turned on 24-bit color. In 0.8.3, when COLORTERM does not settle the question, the startup queries also ask XTGETTCAP RGB and Tc. A positive reply turns on 24-bit color. So does an XTVERSION reply from Ghostty, WezTerm, foot, XTerm, iTerm2, or tmux, because tmux converts 24-bit colors for its client itself. The replies come back through ssh, so this works without COLORTERM. Inside GNU Screen, OpenTUI sends neither query, because Screen drops 24-bit colors and prints the query bodies as text. When nothing answers, the old TERM rule still applies. Alacritty and mosh answer none of these queries, so they still need COLORTERM=truecolor.

The width method decides how many cells an emoji sequence takes. When OpenTUI picks a different method than the terminal uses, the line overflows or leaves gaps. Before, OpenTUI kept the unicode method in terminals that do not report mode 2027, even though many of them draw a sequence one code point at a time. tmux 3.6 and later draws a sequence as one cluster but got wcwidth. An inherited TERM_PROGRAM=ghostty also forced unicode-wide in other terminals. Now the method comes from one place, with the strongest evidence first:

  1. OPENTUI_FORCE_*, also over SSH.
  2. The multiplexer.
  3. The DECRPM 2027 reply. An unrecognized or permanently reset mode means wcwidth, except in kitty and iTerm2.
  4. XTVERSION.
  5. The environment, where TERM wins over an inherited TERM_PROGRAM.
Terminal Before After
Alacritty, xterm, urxvt, GNOME Terminal, VS Code, Zellij, foot (wcswidth) unicode wcwidth
tmux 3.6+ wcwidth unicode
kitty started from Ghostty unicode-wide unicode
Ghostty over SSH, libghostty unicode unicode-wide

No method matches tmux when variation-selector-always-wide is off. Unicode is the closest. If the new choice is wrong for your terminal, set OPENTUI_FORCE_UNICODE or OPENTUI_FORCE_WCWIDTH. These settings still win.

Before this release, a host that started an unmodified OpenTUI app could not easily make it load a different native build. setRenderLibPath() needs code, and OTUI_ASSET_ROOT needs the whole asset tree under one root. OPENTUI_LIB_PATH names one library file, under both Bun and Node:

OPENTUI_LIB_PATH=../opentui/packages/native/lib/x86_64-linux/libopentui.so bun run src/index.ts

A relative path resolves against the working directory. setRenderLibPath() takes precedence over the variable, and the variable takes precedence over OTUI_ASSET_ROOT and the platform package. If the file is missing or does not load, the error names the variable. Core now also checks the context ABI version when it loads a library, so a library built for another context ABI fails at load and not at a later call.

A host that embeds a terminal often has to know where the terminal's view is. For example, it can pass an unused wheel step to an outer scroll view or draw a scrollbar. Counting scroll steps does not give the answer. Output and resizes keep the view on its history rows, a scrollback clear jumps to the live screen, and the alternate screen has no history. EmbeddedTerminalRenderable.getScroll() reads the current view from the emulator, including the moves that the emulator makes on its own:

function scrollStatus(terminal: EmbeddedTerminalRenderable): string {
  const { offset, total, visible } = terminal.getScroll()
  if (offset === 0) return "live"
  return `${offset} of ${total - visible} rows back`
}

C and Rust hosts get two changes. First, the @opentui/core-<platform> packages now ship the opentui.h that their library was built from. Before, a binding that took the library from npm had no matching header. Second, opentui.h now declares the audio engine. Before, a host could bind it only by copying Zig signatures. With OT_AUDIO_START_NO_DEVICE, the engine mixes only when the host calls ot_audio_mix, so tests can play sounds without a device. Voice IDs now carry a generation. An old ID no longer stops a new sound that reused its slot.

Added

  • core: EmbeddedTerminalRenderable.getScroll() returns the view's offset from the live screen, the total rows, and the visible rows. See Embedded terminal. (#1934)
  • core: OPENTUI_LIB_PATH names a native library file. Under Bun and Node, Core loads it instead of the OTUI_ASSET_ROOT copy or the platform package. setRenderLibPath() takes precedence over the variable. See Environment variables. (#1933)
  • native: ot_embedded_terminal_scrollbar_get fills an ot_embedded_terminal_scrollbar record with the offset from the live screen, the total rows, and the visible rows. See Embedded terminal. (#1934)
  • native: opentui.h declares nine ot_audio_* functions that address an audio engine by ot_handle and return ot_status. With the OT_AUDIO_START_NO_DEVICE flag, ot_audio_start opens no device, and the engine mixes only in ot_audio_mix. See C. (#1935)
  • native: The @opentui/core-<platform> packages include the opentui.h that the library was built from. On Windows, they also include opentui.lib. See C. (#1932)
  • native: The OT_INPUT_KEY_TYPED key flag marks a key whose code is a printable character that the terminal sent as text or as a CSI 27 code. See Keyboard input. (#1919)

Changed

... (truncated)

Commits
  • b9e9d46 Release v0.8.3
  • 6adfa20 native: ask the terminal for 24-bit color before falling back (#1941)
  • e4ad586 native: export the audio engine in opentui.h (#1935)
  • cd23e75 native: report the embedded terminal viewport (#1934)
  • d8e5461 core: load the native library from OPENTUI_LIB_PATH (#1933)
  • 2c01742 core: ship opentui.h in the platform packages (#1932)
  • 6f14d3a native: measure a width within Yoga's tolerance of a cell as that cell (#1926)
  • 308cd00 native: choose the width method from DECRPM 2027 and XTVERSION (#1920)
  • 5453279 native: tell typed private-use characters from functional keys (#1919)
  • 82b3710 native: keep the first resize across hook republishes (#1918)
  • Additional commits viewable in compare view

Ask Polylane for an impact assessment of this pull request:

Assess with Polylane

@dependabot dependabot Bot added the dependencies Automatically managed pull request metadata label Nov 8, 2026
@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 47a8285c-381f-4d58-bb95-9f13cfbbe2bc

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@changeset-bot

changeset-bot Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: e66cbfd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions Bot added the size/xs Automatically managed pull request metadata label Nov 8, 2026
@socket-security

socket-security Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​opentui/​core@​0.8.3971009498100

View full report

Bumps [@opentui/core](https://github.com/anomalyco/opentui/tree/HEAD/packages/core) from 0.7.0 to 0.8.3.
- [Release notes](https://github.com/anomalyco/opentui/releases)
- [Commits](https://github.com/anomalyco/opentui/commits/v0.8.3/packages/core)

---
updated-dependencies:
- dependency-name: "@opentui/core"
  dependency-version: 0.8.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title chore(deps): bump @opentui/core from 0.7.0 to 0.8.1 chore(deps): bump @opentui/core from 0.7.0 to 0.8.3 Nov 15, 2026
@dependabot
dependabot Bot force-pushed the dependabot/bun/opentui/core-0.8.1 branch from 707fede to e66cbfd Compare November 15, 2026 04:29
@dependabot @github

dependabot Bot commented on behalf of github Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #246.

@dependabot dependabot Bot closed this Nov 15, 2026
@dependabot
dependabot Bot deleted the dependabot/bun/opentui/core-0.8.1 branch November 15, 2026 23:53

This branch is waiting to be deployed

1 waiting deployment
docs-preview — e66cbfdf Waiting Nov 15, 2026 by dependabot[bot] via Deploy preview (review required) #483
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Automatically managed pull request metadata size/xs Automatically managed pull request metadata

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants