forcedotcom / forcedotcom/cli

cli is not able to edit existing genAiFunctions

Open
#3,075 5 comments 2 reactions 0 assignees View on GitHub
bug owned by another team
Dominant language
No language data
Stars
571
Forks
80
Avg merge
2d 15h
Merged PRs (30d)
3

Description

### Steps:
1. retrieve a genAiFunctions from an org
![Screenshot 2024-10-22 at 10 40 50 AM](https://github.com/user-attachments/assets/05bc4fd8-200e-433b-b4e9-c937fa5b8e72)

2. modify the output/schema.json file
![Screenshot 2024-10-22 at 10 40 18 AM](https://github.com/user-attachments/assets/98b639ff-0542-4410-b600-4c3e8103f557)

3. execute a `sf project deploy start --source-dir force-app/main/default/genAiFunctions/* ...`
```
❯ make deploy
sf project deploy start --source-dir force-app/main/default/genAiFunctions/* --target-org builders-automation --ignore-errors --ignore-conflicts --ignore-warnings --verbose
Deploying v61.0 metadata to scalle@epicstage.org using the v62.0 SOAP API.
Deploy size: 6.74 KB of ~39 MB limit
Deployed files count: 10 of 10,000 limit
Deploy ID: 0AfEE000000mKCX0A2
Status: Succeeded | ████████████████████████████████████████ | 3/3 Components

Deployed Source
==================================================================================================================================================================================================
| State Name Type Path
| ───────── ─────────────────────────────────── ───────────── ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
| Unchanged call_integration_service GenAiFunction force-app/main/default/genAiFunctions/call_integration_service/call_integration_service.genAiFunction-meta.xml
| Unchanged call_integration_service GenAiFunction force-app/main/default/genAiFunctions/call_integration_service/input/schema.json
| Unchanged call_integration_service GenAiFunction force-app/main/default/genAiFunctions/call_integration_service/output/schema.json
```

### Expected result
The agent action is updated in the org.

### Actual result
The agent action is not being updated in the org.

See the `Unchanged` state in (3)

### Additional information

### System Information

```
CLI:
@salesforce/cli/2.62.6 darwin-x64 node-v20.17.0

Plugin Version:
@oclif/plugin-autocomplete 3.2.5 (core)
@oclif/plugin-commands 4.1.3 (core)
@oclif/plugin-help 6.2.14 (core)
@oclif/plugin-not-found 3.2.22 (core)
@oclif/plugin-plugins 5.4.14 (core)
@oclif/plugin-search 1.2.11 (core)
@oclif/plugin-update 4.6.3 (core)
@oclif/plugin-version 2.2.14 (core)
@oclif/plugin-warn-if-update-available 3.1.18 (core)
@oclif/plugin-which 3.2.15 (core)
@salesforce/cli 2.62.6 (core)
apex 3.5.1 (core)
api 1.3.1 (core)
auth 3.6.65 (core)
data 3.7.0 (core)
deploy-retrieve 3.12.17 (core)
info 3.4.9 (core)
limits 3.3.32 (core)
marketplace 1.2.26 (core)
org 4.6.0 (core)
packaging 2.8.11 (core)
schema 3.3.34 (core)
settings 2.3.23 (core)
signups 2.5.21 (user)
sobject 1.4.41 (core)
source 3.5.21 (core)
telemetry 3.6.15 (core)
templates 56.3.22 (core)
trust 3.7.33 (core)
user 3.5.32 (core)
sfdx-plugin-prettier 1.0.5 (user)
```

```
SF ENV. VARS.
SF_BINPATH,/Users/scalle/.local/share/sf/client/bin/sf
SF_AUTOUPDATE_DISABLE,true
SF_DISABLE_AUTOUPDATE,true
SF_UPDATE_INSTRUCTIONS,Use "npm update --global @salesforce/cli" to update npm-based installations.
```

```
Windows: false
Shell: zsh
Channel: stable
```
---
### Diagnostics
:white_check_mark: pass - salesforcedx plugin isn’t installed
:white_check_mark: pass - you don't have any linked plugins
:white_check_mark: pass - [@salesforce/plugin-trust] can ping: https://registry.npmjs.org
:white_check_mark: pass - [@salesforce/plugin-trust] can ping: https://registry.yarnpkg.com
:white_check_mark: pass - [@salesforce/plugin-trust] can ping: https://registry.npmjs.org/
:white_check_mark: pass - using latest or latest-rc CLI version
:white_check_mark: pass - [@salesforce/plugin-deploy-retrieve] sourceApiVersion matches apiVersion
:x: warn - [@salesforce/plugin-deploy-retrieve] sourceApiVersion matches default target org max apiVersion
:white_check_mark: pass - can access: https://test.salesforce.com
:white_check_mark: pass - can access: https://appexchange.salesforce.com/services/data
:white_check_mark: pass - can access: https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-win32-x64-buildmanifest
:x: fail - [@salesforce/plugin-auth] CLI supports v2 crypto

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.