Skip to content

fix(agent): always fetch latest custom tool from DB when customToolId is present #10070

fix(agent): always fetch latest custom tool from DB when customToolId is present

fix(agent): always fetch latest custom tool from DB when customToolId is present #10070

Triggered via pull request February 12, 2026 20:40
Status Failure
Total duration 1m 26s
Artifacts

ci.yml

on: pull_request
Detect Version
Detect Version
Test and Build  /  Test and Build
1m 5s
Test and Build / Test and Build
Check Docs Changes
Check Docs Changes
Matrix: Build AMD64
Matrix: Build ARM64 (GHCR Only)
Process Docs  /  Process Documentation Embeddings
Process Docs / Process Documentation Embeddings
Matrix: Create GHCR Manifests
Create GitHub Release
0s
Create GitHub Release
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 2 warnings
Test and Build / Test and Build
Process completed with exit code 1.
Test and Build / Test and Build
sim#test: command (/home/runner/_work/sim/sim/apps/sim) /home/runner/.bun/bin/bun run test exited (1)
executor/handlers/agent/agent-handler.test.ts > AgentBlockHandler > execute > customToolId resolution - DB as source of truth > should use DB code for executeFunction when customToolId resolves: apps/sim/executor/handlers/agent/agent-handler.test.ts#L2156
AssertionError: expected "spy" to be called with arguments: [ 'function_execute', …(3) ] Received: 1st spy call: [ "function_execute", - ObjectContaining { - "code": "return { title, content, format };", + { + "_context": { + "isDeployedContext": undefined, + "userId": undefined, + "workflowId": "test-workflow", + "workspaceId": undefined, + }, + "blockData": {}, + "blockNameMapping": {}, + "blockOutputSchemas": {}, + "code": "return { title, content };", + "envVars": {}, + "format": "pdf", + "isCustomTool": true, + "timeout": 5400000, + "title": "Q1", + "workflowVariables": {}, }, false, - Any<Object>, + { + "activeExecutionPath": Set {}, + "blockLogs": [], + "blockStates": Map {}, + "completedLoops": Set {}, + "decisions": { + "condition": Map {}, + "router": Map {}, + }, + "environmentVariables": {}, + "executedBlocks": Set {}, + "loopExecutions": Map {}, + "metadata": { + "duration": 0, + "startTime": "2026-02-12T20:41:39.746Z", + }, + "workflow": { + "blocks": [], + "connections": [], + "loops": {}, + "version": "1.0.0", + }, + "workflowId": "test-workflow", + }, ] Number of calls: 1 ❯ executor/handlers/agent/agent-handler.test.ts:2156:33
Test and Build / Test and Build
Skipping sticky disk commit due to previous step failures
Test and Build / Test and Build
Found 2 failed/cancelled steps in previous workflow steps