pi-sdk-web 0.3.9 → 0.3.10

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/dist/server.js +5 -1
  2. package/package.json +1 -1
package/dist/server.js CHANGED
@@ -390,7 +390,11 @@ export class PiWebServer {
390
390
  const message = typeof data.message === "string" ? data.message : "";
391
391
  if (!message)
392
392
  throw new Error("Missing 'message'");
393
- await this.session.prompt(message);
393
+ // Queue with steer when the agent is already running (matches TUI's
394
+ // default: user messages submitted mid-turn are steered, i.e. handled
395
+ // right after the current turn; without this Pi throws
396
+ // "Agent is already processing...").
397
+ await this.session.prompt(message, { streamingBehavior: "steer" });
394
398
  break;
395
399
  }
396
400
  case "abort":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-sdk-web",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "description": "Browser Web access for Pi (AI coding agent) via the Pi SDK - standalone module, zero modification to Pi itself",
5
5
  "type": "module",
6
6
  "bin": {