File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
packages/core/src/amazonqFeatureDev/session Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -137,13 +137,17 @@ export class Session {
137
137
138
138
if ( resp . nextState ) {
139
139
// Cancel the request before moving to a new state
140
+ < < < << << HEAD
140
141
< << << << HEAD
141
142
if ( ! this . state ?. tokenSource ?. token . isCancellationRequested ) {
142
143
this . state ?. tokenSource ?. cancel ( )
143
144
}
144
145
=== = ===
145
146
this . state ?. tokenSource ?. cancel ( )
146
147
>>> > >>> 4742 b3c59 ( refactor ( amazonqFeatureDev ) : include updated rts model )
148
+ === = ===
149
+ if ( ! this . state ?. tokenSource ?. token . isCancellationRequested ) this . state ?. tokenSource ?. cancel ( )
150
+ >>> > >>> e6782b66f ( fix ( amazonqFeatureDev ) : create a new token to stop and iterate in the same session )
147
151
148
152
// Move to the next state
149
153
this . _state = resp . nextState
Original file line number Diff line number Diff line change @@ -306,9 +306,6 @@ export class CodeGenState extends CodeGenBase implements SessionState {
306
306
this . tokenSource = action . tokenSource
307
307
}
308
308
this . isCancellationRequested = true
309
- if ( action . tokenSource ) {
310
- this . tokenSource = action . tokenSource
311
- }
312
309
action . tokenSource ?. dispose ( )
313
310
action . tokenSource = undefined
314
311
} )
@@ -324,9 +321,6 @@ export class CodeGenState extends CodeGenBase implements SessionState {
324
321
this . currentCodeGenerationId
325
322
)
326
323
327
- this . currentCodeGenerationId = codeGenerationId
328
- this . config . currentCodeGenerationId = codeGenerationId
329
-
330
324
if ( ! this . isCancellationRequested ) {
331
325
action . messenger . sendAnswer ( {
332
326
message : i18n ( 'AWS.amazonq.featureDev.pillText.generatingCode' ) ,
@@ -541,7 +535,11 @@ export class PrepareCodeGenState implements SessionState {
541
535
span
542
536
)
543
537
const uploadId = randomUUID ( )
544
- const { uploadUrl, kmsKeyArn } = await this . config . proxyClient . createUploadUrl (
538
+ const {
539
+ uploadUrl,
540
+ uploadId : returnedUploadId ,
541
+ kmsKeyArn,
542
+ } = await this . config . proxyClient . createUploadUrl (
545
543
this . config . conversationId ,
546
544
zipFileChecksum ,
547
545
zipFileBuffer . length ,
You can’t perform that action at this time.
0 commit comments