agent-relay-runner 0.120.1 → 0.120.2

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": "agent-relay-runner",
3
- "version": "0.120.1",
3
+ "version": "0.120.2",
4
4
  "description": "Unified provider lifecycle runner for Agent Relay",
5
5
  "type": "module",
6
6
  "bin": {
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "agent-relay-providers": "0.104.3",
24
- "agent-relay-sdk": "0.2.107",
24
+ "agent-relay-sdk": "0.2.108",
25
25
  "callmux": "0.23.0"
26
26
  },
27
27
  "devDependencies": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "agent-relay-runner",
3
3
  "description": "Thin Agent Relay runner bridge for Claude Code",
4
- "version": "0.120.1",
4
+ "version": "0.120.2",
5
5
  "agentRelayContracts": {
6
6
  "providerPluginProtocol": 1
7
7
  }
@@ -50,6 +50,7 @@ import {
50
50
  runnerAgentStatus,
51
51
  runnerBusErrorAction,
52
52
  runnerMessageMatches,
53
+ runnerMessageShouldDirtyObligations,
53
54
  runnerShouldResolveProviderExit,
54
55
  runnerShouldRestartUnexpectedProviderExit,
55
56
  runtimeProviderCapabilities,
@@ -441,8 +442,9 @@ export class AgentRunner {
441
442
  this.bus.on("message.new", (message) => {
442
443
  // A delivered message may create a new reply obligation — warm the snapshot so the
443
444
  // next turn-end sees it without a hot-path server read.
444
- this.obligationCache.markDirty();
445
- this.enqueueMessage(message as Message);
445
+ const msg = message as Message;
446
+ if (runnerMessageShouldDirtyObligations(msg, this.agentId)) this.obligationCache.markDirty();
447
+ this.enqueueMessage(msg);
446
448
  });
447
449
  this.bus.on("command", (type, params, commandId, command) => {
448
450
  void this.handleCommand(type, params, commandId, command);
@@ -49,6 +49,10 @@ export function runnerMessageMatches(message: Pick<Message, "to" | "resolvedToAg
49
49
  });
50
50
  }
51
51
 
52
+ export function runnerMessageShouldDirtyObligations(message: Pick<Message, "from">, agentId: string): boolean {
53
+ return message.from !== agentId;
54
+ }
55
+
52
56
  export function taskIdFromMessage(message: Pick<Message, "payload">): number | undefined {
53
57
  const taskId = message.payload?.taskId;
54
58
  return Number.isSafeInteger(taskId) ? taskId as number : undefined;