Skip to content

Commit 58b1555

Browse files
authored
Updated Q feature dev name for chat messages and logs (#4476)
1 parent 1942372 commit 58b1555

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/FeatureDevConstants.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
package software.aws.toolkits.jetbrains.services.amazonqFeatureDev
55

6-
const val FEATURE_NAME = "Amazon Q feature development"
6+
const val FEATURE_NAME = "Amazon Q Developer Agent for software development"
77

88
// Max number of times a user can attempt to retry an approach request if it fails
99
const val APPROACH_RETRY_LIMIT = 3

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/controller/FeatureDevController.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ class FeatureDevController(
501501
private suspend fun onApproachGeneration(session: Session, message: String, tabId: String) {
502502
session.preloader(message, messenger)
503503

504-
logger.info { "Q - Dev chat conversation id: ${session.conversationId}" }
504+
logger.info { "$FEATURE_NAME conversation id: ${session.conversationId}" }
505505

506506
messenger.sendAnswer(
507507
tabId = tabId,

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/controller/FeatureDevControllerExtensions.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package software.aws.toolkits.jetbrains.services.amazonqFeatureDev.controller
66
import com.intellij.notification.NotificationAction
77
import software.aws.toolkits.core.utils.getLogger
88
import software.aws.toolkits.core.utils.info
9+
import software.aws.toolkits.jetbrains.services.amazonqFeatureDev.FEATURE_NAME
910
import software.aws.toolkits.jetbrains.services.amazonqFeatureDev.messages.FeatureDevMessageType
1011
import software.aws.toolkits.jetbrains.services.amazonqFeatureDev.messages.FollowUp
1112
import software.aws.toolkits.jetbrains.services.amazonqFeatureDev.messages.FollowUpStatusType
@@ -26,7 +27,7 @@ import software.aws.toolkits.jetbrains.utils.notifyInfo
2627
import software.aws.toolkits.resources.message
2728

2829
suspend fun FeatureDevController.onCodeGeneration(session: Session, message: String, tabId: String) {
29-
getLogger<FeatureDevController>().info { "Q - Dev chat conversation id ${session.conversationId}" }
30+
getLogger<FeatureDevController>().info { "$FEATURE_NAME conversation id ${session.conversationId}" }
3031

3132
messenger.sendAsyncEventProgress(
3233
tabId = tabId,

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/messages/FeatureDevMessagePublisherExtensions.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ suspend fun MessagePublisher.sendChatInputEnabledMessage(tabId: String, enabled:
120120

121121
suspend fun MessagePublisher.sendError(tabId: String, errMessage: String, retries: Int, phase: SessionStatePhase? = null) {
122122
if (retries == 0) {
123-
this.sendErrorMessage(
123+
this.sendAnswer(
124124
tabId = tabId,
125-
title = message("amazonqFeatureDev.no_retries.error_text"),
126-
message = errMessage,
125+
messageType = FeatureDevMessageType.Answer,
126+
message = message("amazonqFeatureDev.no_retries.error_text"),
127127
)
128128

129129
this.sendAnswer(

plugins/toolkit/resources/resources/software/aws/toolkits/resources/MessagesBundle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ amazonqFeatureDev.code_generation.iteration_limit.error_text=You have reached th
4949
amazonqFeatureDev.code_generation.no_file_changes=Unable to generate any file changes
5050
amazonqFeatureDev.code_generation.notification_message=Your code suggestions from Amazon Q are ready to review
5151
amazonqFeatureDev.code_generation.notification_open_link=Open chat
52-
amazonqFeatureDev.code_generation.notification_title=AWS Toolkit - Amazon Q FeatureDev
52+
amazonqFeatureDev.code_generation.notification_title=Amazon Q Developer Agent for software development
5353
amazonqFeatureDev.code_generation.provide_code_feedback=How can the code be improved?
5454
amazonqFeatureDev.code_generation.updated_code=Code has been updated. Would you like to work on another task?
5555
amazonqFeatureDev.content_length.error_text=The project you have selected for source code is too large to use as context. Please select a different folder to use for this conversation
@@ -79,7 +79,7 @@ amazonqFeatureDev.follow_up.new_task=Work on new task
7979
amazonqFeatureDev.follow_up.provide_feedback_and_regenerate=Provide feedback to regenerate
8080
amazonqFeatureDev.follow_up.retry=Retry
8181
amazonqFeatureDev.follow_up.send_feedback=Send feedback
82-
amazonqFeatureDev.no_retries.error_text=Sorry, we're unable to provide a response at this time. Please try again later or share feedback with our team to help us troubleshoot.
82+
amazonqFeatureDev.no_retries.error_text=I'm sorry, I'm having technical difficulties and can't continue at the moment. Please try again later, and share feedback to help me improve.
8383
amazonqFeatureDev.placeholder.additional_improvements=Provide input on additional improvements
8484
amazonqFeatureDev.placeholder.after_code_generation=Select an option above to proceed
8585
amazonqFeatureDev.placeholder.after_monthly_limit=Chat input is disabled

0 commit comments

Comments
 (0)