Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions assistant/src/ipc/skill-routes/registries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,10 @@ async function handleRegisterTools(

// Finalize before branching so both the supervisor short-circuit and
// the in-memory registration path see a `Tool[]` with guaranteed
// `name`. Skills run `finalizeTool` locally before sending, so the
// `?? ""` is a defensive empty-string default — `registerSkillTools`
// will reject an empty name on the non-supervisor path with a clear
// error. The execute closure arrives as a no-op error closure from
// `name`. The execute closure arrives as a no-op error closure from
// `finalizeTool`; the production (supervisor) path replaces it with
// the dispatching closure installed by the manifest loader at boot.
const proxies = tools.map((tool) => finalizeTool(tool, tool.name ?? ""));
const proxies = tools.map((t) => finalizeTool(t));

// Supervisor short-circuit: when a supervisor is registered, the
// manifest loader has already installed proxy tools at daemon boot.
Expand Down
Loading
Loading