Skip to content

chore: ungate web-search commands (#1558)#1597

Merged
nborges-aws merged 1 commit into
mainfrom
reapply-web-search-ungate
Jun 22, 2026
Merged

chore: ungate web-search commands (#1558)#1597
nborges-aws merged 1 commit into
mainfrom
reapply-web-search-ungate

Conversation

@nborges-aws

Copy link
Copy Markdown
Contributor

Description

Re-apply of changes in PR #1558. Change was reverted due to a bug that has been confirmed as fixed in PR #1575


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.

@nborges-aws nborges-aws requested a review from a team June 19, 2026 15:23
@github-actions github-actions Bot added size/s PR size: S agentcore-harness-reviewing AgentCore Harness review in progress labels Jun 19, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label Jun 19, 2026
@agentcore-devx-automation

Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label Jun 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Package Tarball

aws-agentcore-0.20.2.tgz

How to install

gh release download pr-1597-tarball --repo aws/agentcore-cli --pattern "*.tgz" --dir /tmp/pr-tarball
npm install -g /tmp/pr-tarball/aws-agentcore-0.20.2.tgz

@agentcore-cli-automation agentcore-cli-automation left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the diff. This is an exact re-apply of #1558 (verified via git diff against the previously-merged commit), and the bug that caused the revert in #1567 has been fixed on main by #1575.

Spot checks all look good:

  • Telemetry for add.web-search / remove.web-search is already wired in src/cli/telemetry/schemas/command-run.ts.
  • validate.ts already accepts web-search ungated (line 412), and --exclude-domains is rejected for non-webSearch types.
  • Underlying behavior is covered by the createWebSearchGatewayTarget tests in src/cli/primitives/__tests__/GatewayTargetPrimitive.test.ts.
  • Option, isGatedFeaturesEnabled, and gatePassthroughOption are still legitimately used by the passthrough code paths after the removal of the local gate helper.
  • The change from addOption(new Option('--exclude-domains …').argParser(excludeDomainsCoercer)) to .option('--exclude-domains', desc, excludeDomainsCoercer) is functionally equivalent — both register the same coercer and the only behavioral difference (visibility in --help) is the intended ungating.
  • Removing the "Coming soon" assertion from AddScreen.test.tsx is correct since web-search is no longer gated.

LGTM.

@github-actions github-actions Bot removed the agentcore-harness-reviewing AgentCore Harness review in progress label Jun 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 36.93% 13500 / 36550
🔵 Statements 36.21% 14354 / 39632
🔵 Functions 31.48% 2309 / 7334
🔵 Branches 30.69% 8915 / 29042
Generated in workflow #3727 for commit ddd6019 by the Vitest Coverage Report Action

@nborges-aws nborges-aws changed the title Reapply: ungate web-search commands (#1558) Chore: reapply ungate web-search commands (#1558) Jun 22, 2026
@nborges-aws nborges-aws changed the title Chore: reapply ungate web-search commands (#1558) chore: reapply ungate web-search commands (#1558) Jun 22, 2026
@nborges-aws nborges-aws changed the title chore: reapply ungate web-search commands (#1558) chore: ungate web-search commands (#1558) Jun 22, 2026
@nborges-aws nborges-aws merged commit 61e405e into main Jun 22, 2026
34 of 37 checks passed
@nborges-aws nborges-aws deleted the reapply-web-search-ungate branch June 22, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants