@yeaft/webchat-agent 1.0.533 → 1.0.534

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "1.0.533",
3
+ "version": "1.0.534",
4
4
  "description": "Remote worker agent for Yeaft Web Code Agent — connects the native Yeaft engine, CLI providers, and workbench tools",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -601,8 +601,8 @@ export function createSessionFromSpec(yeaftDir, spec, options = {}) {
601
601
 
602
602
  /**
603
603
  * Create an independent Session from an existing Session's durable state.
604
- * Project membership and server-owned asset storage intentionally remain with
605
- * their existing owners; message payloads and their references are preserved.
604
+ * The Server inherits Project membership when it receives the copy result.
605
+ * Server-owned assets retain their original ownership; message references are preserved.
606
606
  */
607
607
  export function copySession(yeaftDir, sourceSessionId, options = {}) {
608
608
  const sourceYeaftDir = resolveSessionYeaftDir(yeaftDir, sourceSessionId);
@@ -3664,7 +3664,7 @@ export function handleYeaftCopySession(msg) {
3664
3664
  });
3665
3665
  recordAgentSessionCreated();
3666
3666
  session.config = loadSessionConfig(yeaftDir, session.id);
3667
- sendSessionCrudResult({ op: 'copy', requestId, ok: true, session });
3667
+ sendSessionCrudResult({ op: 'copy', requestId, ok: true, sourceSessionId: sessionId, session });
3668
3668
  sendSessionSnapshotBroadcast();
3669
3669
  } catch (err) {
3670
3670
  sendSessionCrudResult({ op: 'copy', requestId, ok: false, error: sessionErrorPayload(err) });