Skip to content

Merge main into feature/temp-rules#2658

Open
aws-toolkit-automation wants to merge 16 commits intofeature/temp-rulesfrom
autoMerge/feature/temp-rules
Open

Merge main into feature/temp-rules#2658
aws-toolkit-automation wants to merge 16 commits intofeature/temp-rulesfrom
autoMerge/feature/temp-rules

Conversation

@aws-toolkit-automation
Copy link
Copy Markdown
Collaborator

Automatic merge failed

  • Resolve conflicts and push to this PR branch.
  • Do not squash-merge this PR. Use the "Create a merge commit" option to do a regular merge.

Command line hint

To perform the merge from the command line, you could do something like the following (where "origin" is the name of the remote in your local git repo):

git stash
git fetch --all
git checkout origin/feature/temp-rules
git merge origin/main
git commit
git push origin HEAD:refs/heads/autoMerge/feature/temp-rules

chungjac and others added 2 commits March 10, 2026 16:48
Co-authored-by: aws-toolkit-automation <>
* fix: rules created in default file is not workin

* fix: rules created in default file is not working

Use dependency injection for McpManager.getResources() in
AdditionalContextProvider to avoid pulling node:process and
node:stream into the webworker webpack bundle, which caused
packaging to fail with UnhandledSchemeError.

* fix: rules created in default file is not working

Use dependency injection for McpManager.getResources() in
AdditionalContextProvider to avoid pulling node:process and
node:stream into the webworker webpack bundle, which caused
packaging to fail with UnhandledSchemeError.

Co-authored-by: aws-toolkit-automation <43144436+aws-toolkit-automation@users.noreply.github.com>
@aws-toolkit-automation aws-toolkit-automation requested a review from a team as a code owner March 11, 2026 00:14
laileni-aws and others added 14 commits March 16, 2026 17:37
* fix: rules created in default file is not working (#2652)

* fix: rules created in default file is not workin

* fix: rules created in default file is not working

Use dependency injection for McpManager.getResources() in
AdditionalContextProvider to avoid pulling node:process and
node:stream into the webworker webpack bundle, which caused
packaging to fail with UnhandledSchemeError.

* fix: rules created in default file is not working

Use dependency injection for McpManager.getResources() in
AdditionalContextProvider to avoid pulling node:process and
node:stream into the webworker webpack bundle, which caused
packaging to fail with UnhandledSchemeError.

* fix: deduplicate rules in multi workspace mode (#2659)

* fix: rules created in default file is not workin

* fix: rules created in default file is not working

Use dependency injection for McpManager.getResources() in
AdditionalContextProvider to avoid pulling node:process and
node:stream into the webworker webpack bundle, which caused
packaging to fail with UnhandledSchemeError.

* fix: rules created in default file is not working

Use dependency injection for McpManager.getResources() in
AdditionalContextProvider to avoid pulling node:process and
node:stream into the webworker webpack bundle, which caused
packaging to fail with UnhandledSchemeError.

* fix: rules created in default file is not working

Use dependency injection for McpManager.getResources() in
AdditionalContextProvider to avoid pulling node:process and
node:stream into the webworker webpack bundle, which caused
packaging to fail with UnhandledSchemeError.

---------

Co-authored-by: aws-toolkit-automation <43144436+aws-toolkit-automation@users.noreply.github.com>
…vent (#2665) (#2668)

Add a dedicated boolean metric to distinguish @workspace usage from
regular folder context in telemetry. Previously both were counted
under cwsprChatFolderContextCount with no way to differentiate.

The metric is true when the user uses @workspace (inline or pinned),
false otherwise. Wired through the existing triggerContext.hasWorkspace
flag into the telemetry pipeline.

Co-authored-by: aws-toolkit-automation <43144436+aws-toolkit-automation@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: aws-toolkit-automation <>
…nToken API calls (#2680)

* fix: cache subscription status to prevent excessive CreateSubscriptionToken API calls

setPaidTierMode() was calling getSubscriptionStatus() (which invokes
CreateSubscriptionToken) on every tab add and tab change event, even
though the subscription status rarely changes during a session.

With the upcoming Kiro/Stripe integration requiring a lower throttle
limit (0.25 TPS), these redundant calls would cause both unnecessary
and legitimate requests to be throttled.

Now, when setPaidTierMode() is called without an explicit mode, it
reuses the cached #paidTierMode if already known, and only calls the
API on the first invocation when the status is still unknown.

Resolves: V1880021966

* test: add test

* fix: deduplicate concurrent getSubscriptionStatus calls with a stored promise

The previous cache only helped after the first getSubscriptionStatus()
resolved. If multiple tabs opened before that promise settled, each would
see #paidTierMode as falsy and fire its own API call — the burst this fix
is meant to prevent.

Store the in-flight promise in #subscriptionStatusPromise so all concurrent
setPaidTierMode(!mode) callers attach to the same request. The promise is
cleared on error (allowing a retry) and alongside #paidTierMode on
configuration updates.

Also adds a test that verifies 5 rapid tab-adds result in only one API call.
* feat(amazonq): align mcp oauth client with mcp sdk auth patterns

* fix(amazonq): log errors in OAuth discovery catch blocks instead of silently swallowing
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: aws-toolkit-automation <>
* perf(amazonq): cap context command payload and throttle indexing updates

- Cap context commands sent to webview at 10,000 items
- Throttle onIndexingInProgressChanged with 500ms coalescing
- Cache full item list before applying cap for reuse
- Add preservation property-based tests
- Update unit tests for throttle behavior

* chore: error

* fix: newly added files are not be loaded

* fix: bugfix

* perf: handle context commands in server

* perf: add server-side filtering for context commands in large repos

* chore: bump language-server-runtimes, runtimes-types, and mynah-ui

* chore: remove redundant debug log

* fix: filter out externally deleted files from context command results

Files deleted outside the IDE (e.g. git revert/checkout) were not
removed from the cached context commands because LSP workspace file
operation events only fire for IDE-initiated deletions. Add an
fs.existsSync check when returning results to the client so stale
entries are excluded regardless of how the file was removed.

* chore: remove debug logs from context commands and indexing paths

* fix: scope filterContextCommandsResponse to requesting tab

Previously, filter responses updated contextCommands in all tabs,
causing a search in one tab to overwrite the default list in others.
Track the originating tabId and scope the store update accordingly.

* fix: address PR review feedback for context command filtering
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

5 participants