Add extension mode context

This commit is contained in:
Mario Zechner
2026-06-01 18:31:44 +02:00
parent 335e09ba0d
commit e56521e323
25 changed files with 98 additions and 25 deletions

View File

@@ -47,7 +47,7 @@ function getPiMascot(theme: Theme): string[] {
export default function (pi: ExtensionAPI) {
// Set custom header immediately on load (if UI is available)
pi.on("session_start", async (_event, ctx) => {
if (ctx.hasUI) {
if (ctx.mode === "tui") {
ctx.ui.setHeader((_tui, theme) => {
return {
render(_width: number): string[] {