Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, chat telemetry events were not capturing `promptText` and `responseText` due to the asynchronous nature of the `truncatePromptString` function, which was modified in a recent pull request(#5231). Now, we have added the proper `await` calls when using `truncatePromptString`, re-enabling the collection of this data for chat telemetry events. Key changes: 1. Added `await` to `ChatController` where `truncatePromptString` is being used 2. Made `addBotMessage` an async func ## Test plan Tested locally and verified `promptText` and `responseText` are being recorded again. https://github.com/user-attachments/assets/b3952819-0945-4162-baf7-d98704aec21d <!-- Required. See https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles. --> ## Changelog <!-- OPTIONAL; info at https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c -->
- Loading branch information