Release Date: 2026-01-06
This release adds async context menu callback support, allowing applications to perform async operations (like data fetching) before the context menu is displayed.
- Async Context Menu Callback: Added
onContextMenuOpenAsync: (suspend () -> Unit)?parameter toTabbedTerminal,EmbeddableTerminal,ProperTerminal, andSplitContainer. When provided, this callback is awaited before the context menu is shown, enabling use cases like refreshing dynamic menu items before display.
None
None
TabbedTerminal(
// ... existing parameters ...
onContextMenuOpen: (() -> Unit)? = null,
onContextMenuOpenAsync: (suspend () -> Unit)? = null, // NEW
// ...
)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.
None
https://github.com/kshivang/BossTerm/compare/v1.0.72...v1.0.73