fix: use pi.getAllTools() instead of ctx.getAllTools()
getAllTools() is on the ExtensionAPI (pi), not on ExtensionContext (ctx).
This commit is contained in:
parent
9ca324342c
commit
934551197c
@ -93,7 +93,7 @@ export default function (pi: ExtensionAPI) {
|
|||||||
// Build state from in-memory data (not available in a separate pi process)
|
// Build state from in-memory data (not available in a separate pi process)
|
||||||
const state = {
|
const state = {
|
||||||
systemPrompt: ctx.getSystemPrompt(),
|
systemPrompt: ctx.getSystemPrompt(),
|
||||||
tools: ctx.getAllTools(),
|
tools: pi.getAllTools(),
|
||||||
};
|
};
|
||||||
|
|
||||||
// Export session to HTML with full in-memory state
|
// Export session to HTML with full in-memory state
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user