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

@@ -779,7 +779,7 @@ Decide the target cell first, then dump every action for the turn in one go.
description: "Play tic-tac-toe against the agent",
handler: async (_args, ctx) => {
if (!ctx.hasUI) {
if (ctx.mode !== "tui") {
ctx.ui.notify("Tic-tac-toe requires interactive mode", "error");
return;
}