Commit 9df6085b0bb7
Changed files (1)
dots
pi
agent
extensions
org-todos
dots/pi/agent/extensions/org-todos/index.ts
@@ -35,7 +35,7 @@ import { execSync } from "node:child_process";
import { homedir } from "node:os";
import { join } from "node:path";
import * as chrono from "chrono-node";
-import { Text } from "@mariozechner/pi-tui";
+import { Box, Text } from "@mariozechner/pi-tui";
// Configuration
const DEFAULT_ORG_FILE = join(homedir(), "desktop/org/todos.org");
@@ -279,7 +279,10 @@ export default function (pi: ExtensionAPI) {
text = text.replace(/\[DONE\]/g, theme.bold(theme.fg("success", "[DONE]"))); // Green bold - completed
text = text.replace(/\[CANX\]/g, theme.bold(theme.fg("error", "[CANX]"))); // Red bold - cancelled
- return new Text(text, 0, 0);
+ // Wrap in Box with background for visual separation
+ const box = new Box(1, 1, (t) => theme.bg("customMessageBg", t));
+ box.addChild(new Text(text, 0, 0));
+ return box;
});
}