@av-pi-studio/server 0.0.122 → 0.0.124

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.
@@ -109,8 +109,11 @@ export async function spawnOrResumeSession(deps, agentId) {
109
109
  const client = deps.resolveClient(record.provider);
110
110
  const cwd = record.cwd;
111
111
  const handle = record.persistence;
112
+ // Resume must re-apply the persisted system prompt: Pi takes it as a spawn flag
113
+ // (`--append-system-prompt`), so a fresh process without it silently loses capability-gated
114
+ // instructions (inline images, file links, mermaid) composed at create time.
112
115
  const session = handle
113
- ? await client.resumeSession(handle, { cwd }, { cwd })
116
+ ? await client.resumeSession(handle, { cwd, systemPrompt: record.config?.systemPrompt }, { cwd })
114
117
  : await client.createSession({ provider: record.provider, cwd, ...record.config }, { cwd });
115
118
  if (!handle) {
116
119
  const modelId = record.config?.model;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@av-pi-studio/server",
3
- "version": "0.0.122",
3
+ "version": "0.0.124",
4
4
  "bin": {
5
5
  "pi-studio-daemon": "dist/daemon/main.js"
6
6
  },
@@ -24,8 +24,8 @@
24
24
  "clean": "rm -rf dist *.tsbuildinfo"
25
25
  },
26
26
  "dependencies": {
27
- "@av-pi-studio/protocol": "^0.0.122",
28
- "@av-pi-studio/relay": "^0.0.122",
27
+ "@av-pi-studio/protocol": "^0.0.124",
28
+ "@av-pi-studio/relay": "^0.0.124",
29
29
  "@earendil-works/pi-coding-agent": "^1.4.0",
30
30
  "@xterm/addon-serialize": "^0.14.0",
31
31
  "@xterm/headless": "^6.0.0",