@4fu/arbor-agent-pi 2026.1107.1 → 2026.1109.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/session.js +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4fu/arbor-agent-pi",
3
- "version": "2026.1107.1",
3
+ "version": "2026.1109.0",
4
4
  "type": "module",
5
5
  "description": "The default AgentBackend: pi-agent-core in process, with its own system prompt and no pi type crossing the interface.",
6
6
  "exports": {
@@ -43,8 +43,8 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@4fu/arbor-errors": "2026.1107.0",
46
- "@4fu/arbor-interfaces": "2026.1107.1",
47
- "@4fu/arbor-prompt": "2026.1107.1",
46
+ "@4fu/arbor-interfaces": "2026.1109.0",
47
+ "@4fu/arbor-prompt": "2026.1109.0",
48
48
  "@earendil-works/pi-agent-core": "1.5.0",
49
49
  "@earendil-works/pi-ai": "1.5.0"
50
50
  }
package/session.js CHANGED
@@ -102,7 +102,13 @@ export class PiWindowSession {
102
102
  });
103
103
  }
104
104
  this.enqueue(delivery, "steer");
105
- if (!this.agent.state.isStreaming)
105
+ // An input is what continues a quiet window: a related input wants a turn.
106
+ // A context delivery is read by the next turn and must never start one, so
107
+ // steering a delta into a quiet window leaves it quiet - the block waits in
108
+ // pi's steering queue for the turn that is already coming, and the window
109
+ // never acts on a change to its own prompt before anything asked it to
110
+ // (docs/dispatch.md#insertion-timing).
111
+ if (delivery.role === "input" && !this.agent.state.isStreaming)
106
112
  await this.continue_();
107
113
  this.stream.push({ kind: "steered", delivery });
108
114
  }