Skip to content

Commit 4f5c106

Browse files
authored
fix(amazonqFeatureDev): add retry step after user change workspace folder aws#5413 (aws#4758)
* fix(amazonqFeatureDev): add retry step after user change workspace folder * chore(amazonqFeatureDev): include changelog * refactor(amazonqFeatureDev): remove lock not used * refactor(amazonqFeatureDev): add revised string for input placeholder
1 parent b1cc7f8 commit 4f5c106

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "Amazon Q /dev: include a retry option for the same prompt after folder reselection"
4+
}

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,21 @@ class FeatureDevController(
730730
messageType = FeatureDevMessageType.Answer,
731731
message = message("amazonqFeatureDev.follow_up.modified_source_folder", selectedFolder.path),
732732
)
733+
734+
messenger.sendAnswer(
735+
tabId = tabId,
736+
messageType = FeatureDevMessageType.SystemPrompt,
737+
followUp = listOf(
738+
FollowUp(
739+
pillText = message("amazonqFeatureDev.follow_up.retry"),
740+
type = FollowUpTypes.RETRY,
741+
status = FollowUpStatusType.Warning
742+
)
743+
),
744+
)
745+
746+
messenger.sendChatInputEnabledMessage(tabId, enabled = false)
747+
messenger.sendUpdatePlaceholder(tabId = tabId, newPlaceholder = message("amazonqFeatureDev.placeholder.write_new_prompt"))
733748
}
734749

735750
AmazonqTelemetry.modifySourceFolder(

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ amazonqFeatureDev.placeholder.generating_code=Generating code...
9696
amazonqFeatureDev.placeholder.iterate_plan=How can this plan be improved?
9797
amazonqFeatureDev.placeholder.new_plan=Describe your task or issue in as much detail as possible
9898
amazonqFeatureDev.placeholder.provide_code_feedback=Feedback, comments ...
99+
amazonqFeatureDev.placeholder.write_new_prompt=Write a new prompt
99100
amazonqFeatureDev.plan_generation.ask_for_feedback=Would you like to generate a suggestion for this? You'll review a file diff before inserting into your project.
100101
amazonqFeatureDev.plan_generation.deny_listed_error.failed_generation=I'm sorry, I'm having trouble generating a plan. Please try again.
101102
amazonqFeatureDev.plan_generation.failed_generation=I'm sorry, I ran into an issue while trying to generate a plan. Please try again.

0 commit comments

Comments
 (0)