Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

karanA-aws
Copy link
Contributor

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

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:

  • Command execution logs are persisted locally
  • Users can access the logs directly from their repository
  • Changes are properly tracked in the user's local environment

Checklist

  • My code follows the code style of this project
  • I have added tests to cover my changes
  • A short description of the change has been added to the CHANGELOG if the change is customer-facing in the IDE.
  • I have added metrics for my changes (if required)

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

Sorry, something went wrong.

@karanA-aws karanA-aws requested review from a team as code owners March 21, 2025 03:20
@karanA-aws karanA-aws changed the title feat(/dev): skip registering run command log file feat(amazonq): skip registering run command log file Mar 21, 2025
@karanA-aws karanA-aws closed this Mar 21, 2025
@karanA-aws karanA-aws reopened this Mar 21, 2025
@karanA-aws karanA-aws force-pushed the main branch 2 times, most recently from 983f9b1 to 4fbd7bf Compare March 24, 2025 16:54
@karanA-aws karanA-aws force-pushed the main branch 2 times, most recently from 8ac0a97 to dffd769 Compare March 25, 2025 00:34
@karanA-aws karanA-aws requested a review from neilk-aws March 25, 2025 00:50
@karanA-aws karanA-aws force-pushed the main branch 2 times, most recently from 961d59d to aca090b Compare March 27, 2025 22:36
@karanA-aws karanA-aws force-pushed the main branch 3 times, most recently from 26185ba to 3e05b4e Compare March 28, 2025 00:04
@@ -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`() {
Copy link
Contributor

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?

Copy link
Contributor

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.

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants