fix(daemon): propagate plugin ack payloads and route entries correctly

- CommandAck spreads the plugin payload so sessionId/results reach callers
- /sessions/:sid/entries relays workspace.query{kind:entries} (was session.entries)
- scripts/e2e: daemon -> headless nvim -> real pi prompt -> history, verified end-to-end
This commit is contained in:
yuez committed 2026-10-21 13:29:08 +08:00
1 parent 18e3e0ab4e
commit 2e5d6d5006
5 files changed
+152 -2

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ export interface PluginConnection {
command(
cmd: { id: string; sessionId?: string; method: string; params?: Record<string, unknown>; clientRequestId?: string },
timeoutMs?: number,
): Promise<{ seq?: number; disposition?: string }>;
): Promise<{ seq?: number; disposition?: string } & Record<string, unknown>>;
subscribe(sessionId: string): void;
unsubscribe(sessionId: string): void;
/** Last snapshot received for a session (render cache, may be undefined). */