Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/document not working as expected #118

Open
ajiteshps opened this issue Dec 29, 2024 · 4 comments
Open

/document not working as expected #118

ajiteshps opened this issue Dec 29, 2024 · 4 comments
Labels
BUG P3 Owned by another team We are maintaining this feedback for visibility but it is not within the control of our team triaged A work item has been created. Now being handled internally.

Comments

@ajiteshps
Copy link

Summary

The /document functionality is not working correctly for Apex classes. At times, it adds more methods than the original class, and other times, it simply returns the original class unchanged.

Steps To Reproduce:

  1. /document any apex class

Expected result

provided class level and method level documentation without changing original code

Actual result

it adds more method than origial class and sometimes it directly returns original class itself.

Additional information

Screenshot 2024-12-29 at 6 20 20 PM

Salesforce Extension Version in VS Code: 62.9.1

Salesforce Einstein For Developers Version in VS Code: 1.7.0

OS and version: Version 14.7.2 Sonoma

VS Code version: 1.96.2

@floralan
Copy link

Hi @ajiteshps, thank you for the report. We’ll pass this along to the AI research team. In the meantime, could you please follow the instructions here to share the final prompt with us? This will help us assist with debugging more effectively.

@floralan floralan added BUG P3 Owned by another team We are maintaining this feedback for visibility but it is not within the control of our team triaged A work item has been created. Now being handled internally. labels Dec 30, 2024
Copy link

git2gus bot commented Dec 30, 2024

This issue has been linked to a new work item: W-17513733

@ajiteshps
Copy link
Author

@floralan I actually tried following the instructions to share prompt with you but now the issue is not reproducible and i couldn't find "ChatService: engineered prompt" in console logs, however I found below log looks like related to agentforce for developer

sendTelemetry {"commandName":"sfdx__eGPT_chat_interaction_event","commandSource":"Chat","promptId":"efaeaa90-c95a-4d48-8cc0-fe9a7e062ab6","sequenceId":"17","codeBlockQuantity":1,"streamDuration":39111.746417,"timeToFirstTokenDuration":2208.63975,"status":"success","sessionId":"34a3d20e-b72a-4ebe-8c00-9238b0ed47e3","chatSlashCommandName":"document","questionLength":"38","generatedLinesCount":187,"generatedCharacterCount":10112,"wasOutputContextPrevented":false,"contextLanguage":"apex"}

@gbockus-sf
Copy link
Contributor

Thanks @ajiteshps. We're aware of the /document issue and continue to figure out the right path forward

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG P3 Owned by another team We are maintaining this feedback for visibility but it is not within the control of our team triaged A work item has been created. Now being handled internally.
Projects
None yet
Development

No branches or pull requests

3 participants