-
Notifications
You must be signed in to change notification settings - Fork 81
feat(amazonq): pinned context and rules #1663
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
Conversation
}, | ||
onPromptTopBarButtonClick(tabId, button, eventId) { | ||
if (button.id === 'Rules') { | ||
rulesList.showLoading(tabId) |
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.
Curious: where do we check if the rules are ready or not?
I'm assuming we have this logic somewhere:
if (!rulesAreReady()) {
showLoading
}
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.
so the way it works is, the next line calls messager.onListRules({ tabId })
and then when that message comes back with the rules list, then listRules is called (in this file) which calls rulesList.show
* feat: update list of models and set default to 4 (#1659) * fix(agenticChat): UX fixes for MCP (#1661) * fix: setting mute as false for mcp tools * fix: set muted as false for mcp * feat(amazonq): model throttling message as card instead of chat message (#1657) * feat(amazonq): model throttling message as card instead of chat message * fix empty message bug for VS * fix(amazonq): properly deposit workspace context server resources on exit (#1647) * fix(amazonq): cancel workspace context server initialization workflow on exit * fix(amazonq): cancel message queue consumer interval on exit * fix(amazonq): add check before start workspace context server init workflow --------- Co-authored-by: Jiatong Li <[email protected]> * chore(amazonq): extend remote workspace monitor interval from 5 mins to 30 mins (#1637) Co-authored-by: Jiatong Li <[email protected]> * fix: increase timeout value for the streaming client (#1654) * feat: add EnableWebFormsToBlazorTransform flag to support WebForms to Blazor transformation (#1577) * feat(amazonq): edit predition auto trigger (#1662) Co-authored-by: Dhanasekar Karuppasamy <[email protected]> Co-authored-by: Flora <[email protected]> * feat(amazonq): add capability to log into a local file for dev purpose (#1633) Co-authored-by: Dhanasekar Karuppasamy <[email protected]> Co-authored-by: Flora <[email protected]> * feat(amazonq): pinned context and rules (#1663) * feat(amazonq): pinned context and rules * test: unit test fixes * chore: update mynah-ui and language-server-runtimes to latest * test: fix unit tests * chore(release): release packages from branch main (#1660) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * feat: add packageId property to references in req.json (#1570) * fix: adding normalizePathFromUri to mcpUtils to handle uri paths (#1653) * fix: when user add a new server, it would load global persona at first time (#1667) * fix: use NodeHttpHandler when configuring requestHandler (#1670) * fix: timeout only works for the first time in the loop (#1675) * fix(amazonq): prevent workspace context server initialization workflow from overlapping (#1668) Co-authored-by: Jiatong Li <[email protected]> * fix: clear IDE context for auto-retry requests not initiated by the user (#1680) * fix: add latency metrics for invokeLLM metric (#1681) * feat: support per region model selection (#1683) * chore(release): release packages from branch main (#1666) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * chore(amazonq): bump mynah-ui to 4.35.5 (#1686) * fix: update MCP tools implementation (#1676) * fix: send AmazonQ.md as a rule, do not automatically send README.md (#1688) * fix(amazonq): filter languages at workspace context server onDeleteFiles (#1684) Co-authored-by: Jiatong Li <[email protected]> * chore(amazonq): nep cherrypick codewhispererService.ts (#1689) * chore(release): release packages from branch main (#1687) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * revert(amazonq): nep cherrypick codewhispererService.ts (#1689)" (#1692) This reverts commit bf596bf. * revert(amazonq): fix filter languages at workspace context server onDeleteFiles This reverts commit 4272eec. Co-authored-by: Jiatong Li <[email protected]> * chore(release): release packages from branch main (#1693) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * feat: adding current working directory to the stdio transport for mcp… (#1691) * feat: adding current working directory to the stdio transport for mcp server initialization * fix(amazonq): profile is not set after re-auth (#1690) * revert(amazonq): bring back #1689 * fix: add fsReplace tool to batch edits (#1533) * fix: add fsReplace tool to batch edits * fix: update toolSpec, add special character handling/escaped characters * fix(amazonq): itemid was accidentally removed by #1689 (#1698) * revert(amazonq): bring back #1684 (#1697) This reverts commit 403c26a. Co-authored-by: Jiatong Li <[email protected]> * fix: diff reports no lines added or removed (#1549) Co-authored-by: Jason Guo <[email protected]> * fix: thinking doesn't get removed if response is empty (#1699) * fix: thinking doesn't get removed if response is empty * fix lint * chore(release): release packages from branch main (#1695) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix(amazonq): serialize S3 uploads for file events from workspace context server (#1700) Co-authored-by: Jiatong Li <[email protected]> * chore: bump runtimes (#1705) * chore(release): release packages from branch main (#1704) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Tai Lai <[email protected]> Co-authored-by: Laxman Reddy <[email protected]> Co-authored-by: Yaofu Zuo <[email protected]> Co-authored-by: Jiatong Li <[email protected]> Co-authored-by: Jiatong Li <[email protected]> Co-authored-by: Jason Guo <[email protected]> Co-authored-by: Rajanna-Karthik <[email protected]> Co-authored-by: Will Lo <[email protected]> Co-authored-by: Dhanasekar Karuppasamy <[email protected]> Co-authored-by: Flora <[email protected]> Co-authored-by: Avi Alpert <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Chris <[email protected]> Co-authored-by: invictus <[email protected]> Co-authored-by: Randall-Jiang <[email protected]> Co-authored-by: Jiatong Li <[email protected]> Co-authored-by: chungjac <[email protected]> Co-authored-by: Christopher Christou <[email protected]>
* feat(amazonq): pinned context and rules * test: unit test fixes * chore: update mynah-ui and language-server-runtimes to latest * test: fix unit tests
Pinned Context
• Added ability for users to pin context items (files, code snippets, folders, saved prompts) to chat tabs
• Pinned context items are saved to history. Reopening a conversation restores pinned context items
• Implemented storage of pinned context in the ChatDatabase
• Added "Active File" pinned context item representing the open text file in IDE
Rules Management
• Added ability to toggle workspace rules and rule folders on/off per chat tab
• Rules are now discovered recursively from .amazonq/rules directories
• Added support for README.md and AmazonQ.md as special rule files
• Rules state is persisted per tab in the ChatDatabase
Telemetry
• Tracking metrics added in aws/aws-toolkit-common#1051
This enhancement provides users with more control over their Amazon Q chat context, allowing for more consistent and personalized interactions.
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.