bridge: call session.bindExtensions — SDK never fires session_start without it

This commit is contained in:
Raphael Westphal
2026-08-18 15:54:28 +02:00
parent 7a7a130a1a
commit 9c486f5e11
+4
View File
@@ -10,6 +10,10 @@ process.on("unhandledRejection", (err) => {
try { try {
const { session } = await createAgentSession(); const { session } = await createAgentSession();
// SDK does not bind extensions implicitly (unlike TUI/RPC modes); without
// bindExtensions the session_start event never fires, so the lvmh plugin
// would never dial the daemon.
await session.bindExtensions({ mode: "rpc" });
console.error(`[lvmh-bridge] session up, cwd=${process.cwd()}`); console.error(`[lvmh-bridge] session up, cwd=${process.cwd()}`);
session.subscribe((event) => { session.subscribe((event) => {