Skip to content

Commit b7855c8

Browse files
authored
fix(amazonqFeatureDev): add retry step after user change workspace folder (#5413)
* fix(amazonqFeatureDev): add retry step after user change workspace folder Problem - When selected folder/workspace size its too large, we prompt to select a smaller one. However, after selected, user describe that doesn't retry again forcing to rewrite the prompt again. Solution: - This PR adds a retry button option after it changes the workspace folder and update the placeholder, allowing user choose rewrite the prompt or retry the previous one.
1 parent 1190b5e commit b7855c8

File tree

3 files changed

+19
-0
lines changed

3 files changed

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

packages/core/package.nls.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@
300300
"AWS.amazonq.featureDev.pillText.sendFeedback": "Send feedback",
301301
"AWS.amazonq.featureDev.pillText.selectFiles": "Select files for context",
302302
"AWS.amazonq.featureDev.pillText.retry": "Retry",
303+
"AWS.amazonq.featureDev.pillText.writeNewPrompt": "Write a new prompt",
303304
"AWS.amazonq.featureDev.pillText.reauthenticate": "Follow instructions to re-authenticate ...",
304305
"AWS.amazonq.featureDev.pillText.closeSession": "Close session",
305306
"AWS.amazonq.featureDev.pillText.selectOption": "Select an option above to proceed",

packages/core/src/amazonqFeatureDev/controllers/chat/controller.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,20 @@ export class FeatureDevController {
717717
type: 'answer',
718718
tabID: message.tabID,
719719
})
720+
this.messenger.sendAnswer({
721+
message: undefined,
722+
type: 'system-prompt',
723+
followUps: [
724+
{
725+
pillText: i18n('AWS.amazonq.featureDev.pillText.retry'),
726+
type: FollowUpTypes.Retry,
727+
status: 'warning',
728+
},
729+
],
730+
tabID: message.tabID,
731+
})
732+
this.messenger.sendChatInputEnabled(message.tabID, true)
733+
this.messenger.sendUpdatePlaceholder(message.tabID, i18n('AWS.amazonq.featureDev.pillText.writeNewPrompt'))
720734
}
721735

722736
telemetry.amazonq_modifySourceFolder.emit({

0 commit comments

Comments
 (0)