@dreb/coding-agent 2.70.1 → 2.71.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.
@@ -114,6 +114,17 @@ function loadAgentsFromDir(dir, agents) {
114
114
  // and process.argv[1] may return corrupted or truncated data.
115
115
  const DREB_SCRIPT = process.argv[1] || "dreb";
116
116
  const NODE_EXEC = process.execPath;
117
+ /**
118
+ * Whether RPC-controlled subagent children should emit legacy full
119
+ * message_update frames. Set by an RPC host started with
120
+ * --rpc-full-message-updates so nested background_agent_event payloads relayed
121
+ * from children match the parent's opt-in (issue 535). Children launched with
122
+ * the flag set it again in their own process, so it propagates to every depth.
123
+ */
124
+ let subagentRpcFullMessageUpdates = false;
125
+ export function setSubagentRpcFullMessageUpdates(enabled) {
126
+ subagentRpcFullMessageUpdates = enabled;
127
+ }
117
128
  // Tools that must never be available to subagents — wait (subagents should
118
129
  // never no-op; they have a task to complete), watch_github_ci (parent workflow
119
130
  // orchestration), subagent (no recursive spawning), and suggest_next (would end
@@ -282,6 +293,8 @@ async function spawnSubagent(agentConfig, task, cwd, signal, onProgress, parentP
282
293
  if (rpcModeIndex !== -1)
283
294
  args[rpcModeIndex] = "rpc";
284
295
  args.splice(args.length - 2, 2);
296
+ if (subagentRpcFullMessageUpdates)
297
+ args.push("--rpc-full-message-updates");
285
298
  }
286
299
  // Early abort check — if the signal is already aborted (e.g. queued task whose
287
300
  // AbortController was aborted while waiting on bgAcquire), bail out before