Summary
It looks like source-tracking doesn't currently handle removal of an AiAuthoringBundle very well.
Steps To Reproduce
- Create a project against a scratch org enabled for Agent Script dev.
mkdir -p force-app/main/default/aiAuthoringBundles/TestScript
- Add
force-app/main/default/aiAuthoringBundles/TestScript/TestScript.agent as:
config:
default_agent_user: "user@org.com"
agent_name: "TestScript"
start_agent start_node:
description: "TestScript"
- Add
force-app/main/default/aiAuthoringBundles/TestScript/TestScript.bundle-meta.xml as:
<?xml version="1.0" encoding="UTF-8"?>
<AiAuthoringBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<bundleType>AGENT</bundleType>
<versionTag>v0.1</versionTag>
</AiAuthoringBundle>
- Push the project to the org.
- Delete
force-app/main/default/aiAuthoringBundles/TestScript.
- Push the project to the org and it will fail with:
Error (ENOENT): ENOENT: no such file or directory, open '/path/to/project/force-app/main/default/aiAuthoringBundles/TestScript/TestScript.agent'
It will continue to fail until you do something like sf project reset tracking.
Expected result
Source-tracking should handle the removed AiAuthoringBundle metadata and apply the local removal to the server.
Actual result
See above.
Additional information
System Information
{
"architecture": "win32-arm64",
"cliVersion": "@salesforce/cli/2.120.3",
"nodeVersion": "node-v22.13.0",
"osVersion": "Windows_NT 10.0.26200",
"rootPath": "C:\\Users\\Scott\\AppData\\Roaming\\npm\\node_modules\\@salesforce\\cli",
"shell": "cmd.exe",
"pluginVersions": [
"@oclif/plugin-autocomplete 3.2.39 (core)",
"@oclif/plugin-commands 4.1.38 (core)",
"@oclif/plugin-help 6.2.36 (core)",
"@oclif/plugin-not-found 3.2.73 (core)",
"@oclif/plugin-plugins 5.4.54 (core)",
"@oclif/plugin-search 1.2.36 (core)",
"@oclif/plugin-update 4.7.16 (core)",
"@oclif/plugin-version 2.2.36 (core)",
"@oclif/plugin-warn-if-update-available 3.1.54 (core)",
"@oclif/plugin-which 3.2.42 (core)",
"@salesforce/cli 2.120.3 (core)",
"agent 1.26.5 (core)",
"apex 3.9.5 (core)",
"api 1.3.7 (core)",
"auth 4.1.2 (core)",
"code-analyzer 5.8.0 (user) published 31 days ago (Sun Dec 28 2025) (latest is 5.9.0)",
"community 3.3.48 (user) published 54 days ago (Sat Dec 06 2025)",
"data 4.0.67 (core)",
"deploy-retrieve 3.24.7 (core)",
"info 3.4.100 (core)",
"lightning-dev 5.1.4 (user) published 19 days ago (Fri Jan 09 2026) (latest is 4.5.3)",
"limits 3.3.74 (core)",
"marketplace 1.3.8 (core)",
"org 5.9.59 (core)",
"packaging 2.24.7 (core)",
"schema 3.3.90 (core)",
"settings 2.4.54 (core)",
"sobject 1.4.81 (core)",
"telemetry 3.6.71 (core)",
"templates 56.4.2 (core)",
"trust 3.7.113 (core)",
"user 3.6.46 (core)",
"@salesforce/sfdx-plugin-lwc-test 1.2.1 (user) published 481 days ago (Fri Oct 04 2024)",
"@salesforce/sfdx-scanner 4.12.0 (user) published 274 days ago (Tue Apr 29 2025)"
]
}
Summary
It looks like source-tracking doesn't currently handle removal of an
AiAuthoringBundlevery well.Steps To Reproduce
mkdir -p force-app/main/default/aiAuthoringBundles/TestScriptforce-app/main/default/aiAuthoringBundles/TestScript/TestScript.agentas:force-app/main/default/aiAuthoringBundles/TestScript/TestScript.bundle-meta.xmlas:force-app/main/default/aiAuthoringBundles/TestScript.It will continue to fail until you do something like
sf project reset tracking.Expected result
Source-tracking should handle the removed
AiAuthoringBundlemetadata and apply the local removal to the server.Actual result
See above.
Additional information
System Information
{ "architecture": "win32-arm64", "cliVersion": "@salesforce/cli/2.120.3", "nodeVersion": "node-v22.13.0", "osVersion": "Windows_NT 10.0.26200", "rootPath": "C:\\Users\\Scott\\AppData\\Roaming\\npm\\node_modules\\@salesforce\\cli", "shell": "cmd.exe", "pluginVersions": [ "@oclif/plugin-autocomplete 3.2.39 (core)", "@oclif/plugin-commands 4.1.38 (core)", "@oclif/plugin-help 6.2.36 (core)", "@oclif/plugin-not-found 3.2.73 (core)", "@oclif/plugin-plugins 5.4.54 (core)", "@oclif/plugin-search 1.2.36 (core)", "@oclif/plugin-update 4.7.16 (core)", "@oclif/plugin-version 2.2.36 (core)", "@oclif/plugin-warn-if-update-available 3.1.54 (core)", "@oclif/plugin-which 3.2.42 (core)", "@salesforce/cli 2.120.3 (core)", "agent 1.26.5 (core)", "apex 3.9.5 (core)", "api 1.3.7 (core)", "auth 4.1.2 (core)", "code-analyzer 5.8.0 (user) published 31 days ago (Sun Dec 28 2025) (latest is 5.9.0)", "community 3.3.48 (user) published 54 days ago (Sat Dec 06 2025)", "data 4.0.67 (core)", "deploy-retrieve 3.24.7 (core)", "info 3.4.100 (core)", "lightning-dev 5.1.4 (user) published 19 days ago (Fri Jan 09 2026) (latest is 4.5.3)", "limits 3.3.74 (core)", "marketplace 1.3.8 (core)", "org 5.9.59 (core)", "packaging 2.24.7 (core)", "schema 3.3.90 (core)", "settings 2.4.54 (core)", "sobject 1.4.81 (core)", "telemetry 3.6.71 (core)", "templates 56.4.2 (core)", "trust 3.7.113 (core)", "user 3.6.46 (core)", "@salesforce/sfdx-plugin-lwc-test 1.2.1 (user) published 481 days ago (Fri Oct 04 2024)", "@salesforce/sfdx-scanner 4.12.0 (user) published 274 days ago (Tue Apr 29 2025)" ] }