Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.42 KB

File metadata and controls

44 lines (34 loc) · 1.42 KB

Release Notes - v1.0.73

Release Date: 2026-01-06

Highlights

This release adds async context menu callback support, allowing applications to perform async operations (like data fetching) before the context menu is displayed.

New Features

  • Async Context Menu Callback: Added onContextMenuOpenAsync: (suspend () -> Unit)? parameter to TabbedTerminal, EmbeddableTerminal, ProperTerminal, and SplitContainer. When provided, this callback is awaited before the context menu is shown, enabling use cases like refreshing dynamic menu items before display.

Bug Fixes

None

Improvements

None

API Changes

TabbedTerminal

TabbedTerminal(
    // ... existing parameters ...
    onContextMenuOpen: (() -> Unit)? = null,
    onContextMenuOpenAsync: (suspend () -> Unit)? = null,  // NEW
    // ...
)

EmbeddableTerminal

EmbeddableTerminal(
    // ... existing parameters ...
    onContextMenuOpen: (() -> Unit)? = null,
    onContextMenuOpenAsync: (suspend () -> Unit)? = null,  // NEW
    // ...
)

Usage Note: If onContextMenuOpenAsync is provided, it takes precedence over onContextMenuOpen. The context menu will wait for the async callback to complete before displaying. This is useful for fetching fresh data (e.g., AI assistant detection) before showing dynamic menu items.

Breaking Changes

None

Full Changelog

https://github.com/kshivang/BossTerm/compare/v1.0.72...v1.0.73