@yeaft/webchat-agent 0.0.133 → 0.0.134

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/crew.js +7 -0
  2. package/package.json +1 -1
package/crew.js CHANGED
@@ -1682,6 +1682,9 @@ async function pauseAll(session) {
1682
1682
  message: { role: 'assistant', content: [{ type: 'text', text: 'Session 已暂停' }] }
1683
1683
  });
1684
1684
  sendStatusUpdate(session);
1685
+
1686
+ // 显式 await 保存,确保暂停状态落盘
1687
+ await saveSessionMeta(session);
1685
1688
  }
1686
1689
 
1687
1690
  /**
@@ -1776,6 +1779,10 @@ async function stopAll(session) {
1776
1779
  // 清理 git worktrees
1777
1780
  await cleanupWorktrees(session.projectDir);
1778
1781
 
1782
+ // 显式 await 保存,确保 session.json 落盘后再从内存中移除
1783
+ await saveSessionMeta(session);
1784
+ await upsertCrewIndex(session);
1785
+
1779
1786
  // 从活跃 sessions 中移除
1780
1787
  crewSessions.delete(session.id);
1781
1788
  console.log(`[Crew] Session ${session.id} stopped`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "0.0.133",
3
+ "version": "0.0.134",
4
4
  "description": "Remote agent for Yeaft WebChat — connects worker machines to the central server",
5
5
  "main": "index.js",
6
6
  "type": "module",