Skip to content

Commit 7282c40

Browse files
authored
fix(amazonq): add handling for new limit mechanism (#6091)
## Problem RTS changed feature dev governance interface on dealing with quota ## Solution Added handling for this case on feature dev --- <!--- REMINDER: Ensure that your PR meets the guidelines in CONTRIBUTING.md --> License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent eb5c252 commit 7282c40

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-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 Feature Dev: display limit reached error message"
4+
}

packages/core/src/amazonqFeatureDev/client/featureDev.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ export class FeatureDevClient {
171171
isAwsError(e) &&
172172
((e.code === 'ThrottlingException' &&
173173
e.message.includes('limit for number of iterations on a code generation')) ||
174+
e.message.includes('StartTaskAssistCodeGeneration reached for this month.') ||
174175
e.code === 'ServiceQuotaExceededException')
175176
) {
176177
throw new CodeIterationLimitError()

0 commit comments

Comments
 (0)