fix(coding-agent): dispose SDK example sessions

This commit is contained in:
Michael Yu
2026-05-10 23:40:12 +08:00
parent f348a06294
commit d68011dab1
12 changed files with 101 additions and 65 deletions

View File

@@ -47,9 +47,9 @@ if (diagnostics.length > 0) {
console.log("Warnings:", diagnostics);
}
await createAgentSession({
const { session } = await createAgentSession({
resourceLoader: loader,
sessionManager: SessionManager.inMemory(),
});
console.log("Session created with filtered skills");
session.dispose();