Skip to content

DF0016: Agent Resource Already Registered

Package: devframe

Experimental

The agent-native surface is experimental and may change without a major version bump until it stabilizes.

Message

Agent resource "{id}" is already registered.

Cause

ctx.agent.registerResource() was called with an id that already exists on the host.

Fix

Pick a distinct id or unregister the existing resource first via the handle returned from the previous call.

Source

packages/devframe/src/node/host-agent.ts

Released under the MIT License.