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): Prefetch next inline recommendation #5290

Draft
wants to merge 134 commits into
base: main
Choose a base branch
from

Conversation

evanliu048
Copy link

Types of changes

  • New feature (non-breaking change which adds functionality)

Description

This PR introduces the ability for users to see the next recommendation immediately after accepting the current one, provided there is a subsequent recommendation available. The key enhancements include:

  1. Automatic Prefetching: Introduced a function that calls the CodeWhisperer API to fetch the next recommendation while the current one is being reviewed.
  2. Session Promotion Added functionality to display the next recommendation instantly upon accepting the current recommendation (if there is one)
  3. Helper Utilities: Implemented helper functions to calculate the necessary file information for the next request and to send telemetry events related to the subsequent recommendation.

License

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

@evanliu048 evanliu048 requested a review from a team as a code owner January 23, 2025 00:04
@evanliu048 evanliu048 marked this pull request as draft January 23, 2025 18:05
@evanliu048 evanliu048 changed the title Prefetch next inline recommendation feat(amazonq): Prefetch next inline recommendation Jan 24, 2025
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.

4 participants