Skip to content

chore: ungate web-search commands#1558

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

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

Conversation

@nborges-aws

Copy link
Copy Markdown
Contributor

Description

Remove all gating logic from web-search feature.

Related Issue

Closes #

Documentation PR

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Other (please describe):

Testing

How have you tested the change?

  • I ran npm run test:unit and npm run test:integ
  • I ran npm run typecheck
  • I ran npm run lint
  • If I modified src/assets/, I ran npm run test:update-snapshots and committed the updated snapshots

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

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 17, 2026 19:23
@github-actions github-actions Bot added the size/s PR size: S label Jun 17, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label Jun 17, 2026
@github-actions github-actions Bot added the agentcore-harness-reviewing AgentCore Harness review in progress label Jun 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Package Tarball

aws-agentcore-0.19.0.tgz

How to install

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

@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 17, 2026

@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.

LGTM — straightforward removal of gating for web-search. Confirmed:

  • The 4 gating points removed (CLI primitive command/options, runtime check in add gateway-target, top-level add/remove web-search shortcuts, and the two TUI screens) are the right ones.
  • The deleted AddScreen.test.tsx case was specifically testing the gated "Coming soon" state, so removing it is appropriate.
  • src/cli/commands/add/validate.ts already lists web-search unconditionally in validTypeList, so no changes needed there.
  • Telemetry events (add.web-search, remove.web-search) and target-type telemetry shapes already exist in src/cli/telemetry/schemas/.
  • Schemas in src/schema/schemas/mcp.ts accept webSearch unconditionally.

The remaining isGatedFeaturesEnabled() ternary for typeDescription (lines 286-288) is still needed because it gates passthrough.

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

@jesseturner21 jesseturner21 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 36.78% 13436 / 36524
🔵 Statements 36.08% 14288 / 39598
🔵 Functions 31.22% 2286 / 7321
🔵 Branches 30.53% 8862 / 29019
Generated in workflow #3678 for commit 3457b17 by the Vitest Coverage Report Action

@nborges-aws nborges-aws merged commit 6bb2ca4 into main Jun 17, 2026
33 of 34 checks passed
@nborges-aws nborges-aws deleted the ungate-web-search branch June 17, 2026 19:50
Hweinstock added a commit that referenced this pull request Jun 17, 2026
This reverts commit 6bb2ca4.

Co-authored-by: Hweinstock <hkobew@amazom.com>
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