fix: use pi.getAllTools() instead of ctx.getAllTools()

getAllTools() is on the ExtensionAPI (pi), not on ExtensionContext (ctx).
This commit is contained in:
Willem van den Ende 2026-06-12 22:52:36 +01:00
parent 9ca324342c
commit 934551197c

View File

@ -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