Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type" : "feature",
"description" : "Remove read-only mode on before diff of code changes generated by agent"
Copy link
Contributor

@tverney tverney Oct 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can't we combine these both changelogs into one? Also, toolkit team requires to specify which team this change is going into.

"Amazon Q /dev: Remove read-only mode on proposed code changes and increase pooling rate for code generation status"

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type" : "feature",
"description" : "Provide more frequent updates about code changes made by agent"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import com.intellij.diff.DiffContentFactory
import com.intellij.diff.DiffManager
import com.intellij.diff.contents.EmptyContent
import com.intellij.diff.requests.SimpleDiffRequest
import com.intellij.diff.util.DiffUserDataKeys
import com.intellij.ide.BrowserUtil
import com.intellij.openapi.application.runInEdt
import com.intellij.openapi.command.WriteCommandAction
Expand Down Expand Up @@ -225,7 +224,6 @@ class FeatureDevController(
}

val request = SimpleDiffRequest(message.filePath, leftDiffContent, rightDiffContent, null, null)
request.putUserData(DiffUserDataKeys.FORCE_READ_ONLY, true)

DiffManager.getInstance().showDiff(project, request)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ private suspend fun CodeGenerationState.generateCode(
messenger: MessagePublisher,
token: CancellationTokenSource?,
): CodeGenerationResult {
val pollCount = 180
val requestDelay = 10000L
val pollCount = 360
val requestDelay = 5000L

repeat(pollCount) {
if (token?.token?.isCancellationRequested() == true) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class CodeGenerationStateTest : FeatureDevTestBase() {
assertThat(actual.interaction.content).isEqualTo("")
}

verify(exactly = 180) { featureDevService.getTaskAssistCodeGeneration(testConversationId, codeGenerationId) }
verify(exactly = 360) { featureDevService.getTaskAssistCodeGeneration(testConversationId, codeGenerationId) }
coVerify(exactly = 0) { featureDevService.exportTaskAssistArchiveResult(testConversationId) }
}
}
Loading