bridge: call session.bindExtensions — SDK never fires session_start without it
This commit is contained in:
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user