Skip to content

Commit d67d933

Browse files
authored
feat(amazonq): Increase polling rate for Q agent code summary (#5843)
## Problem Agent polling rate is too low, causing users to receive slow summary updates of changes agent has made to their code ## Solution - Decrease requestDelay to 5000ms from 10000ms to ensure we poll for agent updates more frequently - Increased pollCount to 360 from 180 as we are now polling twice as frequently --- <!--- 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 1017632 commit d67d933

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "Provide more frequent updates about code changes made by agent"
4+
}

packages/core/src/amazonqFeatureDev/session/sessionState.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ function getDeletedFileInfos(deletedFiles: string[], workspaceFolders: CurrentWs
131131
}
132132

133133
abstract class CodeGenBase {
134-
private pollCount = 180
135-
private requestDelay = 10000
134+
private pollCount = 360
135+
private requestDelay = 5000
136136
readonly tokenSource: vscode.CancellationTokenSource
137137
public phase: SessionStatePhase = DevPhase.CODEGEN
138138
public readonly conversationId: string

0 commit comments

Comments
 (0)