Skip to content

smelt.session.slug

Tier: UiHost - Requires a terminal UI; calling these from headless mode raises.

Visibility: Public - Stable Lua API intended for user config and plugins.

Session slug. Use smelt.session.slug.get() to read it. Writing flows through smelt.session.title.set(title, slug).

smelt.session.slug.get

fun(): string?

Return the current session slug, or nil when it has not been set.