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:
1 parent
18e3e0ab4e
commit
2e5d6d5006
5 files changed
+152
-2
No files matched your search
@@ -60,6 +60,8 @@ export interface CommandRequest {
|
||||
export interface CommandAck {
|
||||
seq?: number;
|
||||
disposition?: string;
|
||||
/** Command result fields (the plugin's `ack.payload`), spread for callers. */
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
interface PendingCommand {
|
||||
@@ -355,6 +357,7 @@ export class PluginSocketConnection implements PluginConnection {
|
||||
clearTimeout(pending.timer);
|
||||
const disposition = asString(payload.disposition);
|
||||
pending.resolve({
|
||||
...payload,
|
||||
...(seq === undefined ? {} : { seq }),
|
||||
...(disposition === undefined ? {} : { disposition }),
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user