Modal dialog for browsing and resuming threads.
Displays recent threads with keyboard navigation. The current thread is pre-selected and visually marked.
Returns a thread_id string on selection, or None on cancel.
ThreadSelectorScreen(
self,
current_thread: str | None = None,
)ModalScreen[str | None]| Name | Type | Description |
|---|---|---|
current_thread | str | None | Default: NoneThe currently active thread ID (to highlight). |
| Name | Type |
|---|---|
| current_thread | str | None |
Compose the screen layout.
Fetch threads, configure border for ASCII terminals, and build the list.
Move selection up.
Move selection down.
Move selection up by one visible page.
Unlike single-step navigation, page jumps clamp to the list boundaries instead of wrapping around.
Move selection down by one visible page.
Unlike single-step navigation, page jumps clamp to the list boundaries instead of wrapping around.
Confirm the highlighted thread and dismiss the selector.
Open Rich-style hyperlinks on single click.
ThreadOption clicks are already stopped before bubbling here, so this
only fires for non-option widgets such as the title. Non-link clicks
bubble normally.
Handle click on a thread option.
Cancel the selection.