Skip to content

feat: add gateway exceptionLevel support and automatic Transaction Search#540

Merged
tejaskash merged 10 commits intoaws:mainfrom
aidandaly24:feat/enable-semantic-search
Mar 12, 2026
Merged

feat: add gateway exceptionLevel support and automatic Transaction Search#540
tejaskash merged 10 commits intoaws:mainfrom
aidandaly24:feat/enable-semantic-search

Conversation

@aidandaly24
Copy link
Contributor

Description

Adds gateway observability support: exceptionLevel field on the gateway schema and a "Debug Exception Level" toggle in the TUI wizard's advanced configuration pane.

What changed:

  • Added GatewayExceptionLevelSchema ('NONE' | 'DEBUG') as a direct field on AgentCoreGateway schema
  • Added "Debug Exception Level" toggle to the gateway wizard advanced config (defaults to off)
  • Added --exception-level <level> CLI flag for non-interactive gateway creation
  • Transaction Search is now automatic for all gateways (matching existing agent behavior) — no user toggle needed
  • Renamed hasGatewayObservability to hasGateways in deploy flow since Transaction Search triggers on gateway existence
  • Pinned eslint to ^9.39.4 because dependabot PR chore(deps-dev): bump the dev-dependencies group with 6 updates #538 bumped to v10 which is incompatible with eslint-plugin-react@7.37.5

Design decisions:

  • exceptionLevel is a top-level gateway field (not nested under an observability wrapper) to keep the schema flat and simple
  • Transaction Search has no toggle because it should be automatic, same as it is for agents
  • Exception Level defaults to 'NONE' (generic errors); 'DEBUG' returns verbose error details for debugging

Related Issue

Closes #

Documentation PR

Type of Change

  • New feature
  • Bug fix
  • 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.

@github-actions github-actions bot added the size/m PR size: M label Mar 11, 2026
@aidandaly24 aidandaly24 requested a review from a team March 11, 2026 21:53
@github-actions github-actions bot added size/m PR size: M and removed size/m PR size: M labels Mar 11, 2026
@aidandaly24 aidandaly24 force-pushed the feat/enable-semantic-search branch from 9cfb98a to a526cbe Compare March 11, 2026 21:58
@github-actions github-actions bot added size/m PR size: M and removed size/m PR size: M labels Mar 11, 2026
…d config

Extends the gateway creation TUI with observability toggle (default: ON) and
debug exception level toggle (default: OFF) in the Advanced Configurations
multi-select screen, following the existing semantic search pattern.
…way creation

Wires observability config through the full CLI path: Commander flags →
action handler → buildGatewayConfig() → gateway object in mcp.json.
Uses the same --no-X boolean negation pattern as --no-semantic-search.
7 tests for GatewayPrimitive.add() observability behavior (defaults,
noObservability, exceptionLevel, invalid fallback). 7 tests for
useAddGatewayWizard defaults and setAdvancedConfig with observability fields.
Adds Zod-based validation for exceptionLevel in validateAddGatewayOptions(),
matching the existing pattern for framework/authorizer validation. Invalid
values like VERBOSE now fail with a clear error instead of silently
falling back to NONE.
Widens the Transaction Search trigger from "agents exist" to "agents
exist OR any gateway has observability enabled". Both CLI and TUI deploy
paths now check gateway observability config from mcp.json. Adds 3 tests.
Align test cases with the positive enableObservability naming
convention adopted during rebase (matching enableSemanticSearch).
Dependabot PR aws#538 bumped eslint to 10.0.3, but eslint-plugin-react
7.37.5 (latest) doesn't support ESLint 10 yet, breaking lint-staged.
…ateway schema

Transaction Search is now automatic for gateways (matching agent behavior),
so the observability.enabled toggle is removed. exceptionLevel is promoted
from the nested observability wrapper to a direct gateway field.
Reverts unrelated Unicode/emoji formatting changes that inflated the
diff, and regenerates package-lock.json properly for the eslint 9.x pin.
@aidandaly24 aidandaly24 force-pushed the feat/enable-semantic-search branch from a526cbe to 4510fe3 Compare March 11, 2026 22:08
@github-actions github-actions bot added size/m PR size: M and removed size/m PR size: M labels Mar 11, 2026
Copy link
Contributor

@tejaskash tejaskash left a comment

Choose a reason for hiding this comment

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

LGTM

@tejaskash tejaskash merged commit 73156a4 into aws:main Mar 12, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/m PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants