Skip to content

Feature: tools.nodes.notifyOnExit config flag for node exec.finished events #22823

@abbudjoe

Description

@abbudjoe

Node exec.finished events always enqueue a system event + request heartbeat via server-node-events, regardless of config. This causes duplicate notifications when the agent already received the result inline from nodes.run.

tools.exec.notifyOnExit: false exists for gateway-local exec but there is no equivalent for node events.

Current behavior:

  • Agent calls nodes.run → gets result inline
  • Node sends exec.finished event → gateway enqueues system event → agent gets duplicate notification
  • Agent responds twice, burning tokens

Requested:
Add tools.nodes.notifyOnExit (default: true) to mirror tools.exec.notifyOnExit behavior for node exec events in server-node-events.

Workaround: Agent can ignore async system messages when it already processed the inline result, but a config flag would be cleaner.

Source: dist/server-node-events-C9uF6jq0.js lines ~381-420 — exec.finished case unconditionally calls enqueueSystemEvent + requestHeartbeatNow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleMarked as stale due to inactivity

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions