From 934551197c3e5c74afc9bdbb250c1847bb36a4d3 Mon Sep 17 00:00:00 2001 From: Willem van den Ende Date: Fri, 12 Jun 2026 22:52:36 +0100 Subject: [PATCH] fix: use pi.getAllTools() instead of ctx.getAllTools() getAllTools() is on the ExtensionAPI (pi), not on ExtensionContext (ctx). --- .pi/extensions/clear-export.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pi/extensions/clear-export.ts b/.pi/extensions/clear-export.ts index 820bc38..cb9375e 100644 --- a/.pi/extensions/clear-export.ts +++ b/.pi/extensions/clear-export.ts @@ -93,7 +93,7 @@ export default function (pi: ExtensionAPI) { // Build state from in-memory data (not available in a separate pi process) const state = { systemPrompt: ctx.getSystemPrompt(), - tools: ctx.getAllTools(), + tools: pi.getAllTools(), }; // Export session to HTML with full in-memory state