Interactive thread selector screen for /threads command.
Build a full LangSmith thread URL if tracing is configured.
Combines get_langsmith_project_name and fetch_langsmith_project_url
into a single convenience helper.
Get the glyph set for the current charset mode.
Open the URL from a Rich link style on click, if present.
Rich Style(link=...) embeds OSC 8 terminal hyperlinks, but Textual's
mouse capture intercepts normal clicks before the terminal can act on them.
By handling the Textual click event directly we open the URL with a single
click, matching the behavior of links in the Markdown widget.
On success the event is stopped so it does not bubble further. On failure (e.g. no browser available in a headless environment) the error is logged at debug level and the event bubbles normally.
Thread metadata returned by list_threads.
Character set mode for TUI display.
A clickable thread option in the selector.
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.