-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(amazonq): skip registering run command log file #5493
base: main
Are you sure you want to change the base?
Conversation
983f9b1
to
4fbd7bf
Compare
...rc/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/session/CodeGenerationState.kt
Fixed
Show fixed
Hide fixed
8ac0a97
to
dffd769
Compare
961d59d
to
aca090b
Compare
...rc/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/session/CodeGenerationState.kt
Fixed
Show fixed
Hide fixed
26185ba
to
3e05b4e
Compare
@@ -103,6 +104,34 @@ class CodeGenerationStateTest : FeatureDevTestBase() { | |||
coVerify(exactly = 1) { featureDevService.exportTaskAssistArchiveResult(testConversationId) } | |||
} | |||
|
|||
@Test | |||
fun `test generateCode excludes run_command log file and logs its content`() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where in this test do we assert that we logged the contents?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh , it's using the default logger. I think we should remove the "and logs its contents" from the test title since we're not actually testing that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the test title in revision.
Types of changes
Description
Problem:
Users currently cannot access logs generated by the Agent when it executes user commands during code generation.
Solution:
The logs emitted by the Agent during user command execution will be accepted and written to
.amazonq/dev/run_command.log
file in the user's local repository. This ensures that:Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.