Skip to content

fix: allow skipping optional KMS key ARN in evaluator wizard#1402

Merged
notgitika merged 1 commit into
mainfrom
fix/evaluator-kms-skip-enter
May 27, 2026
Merged

fix: allow skipping optional KMS key ARN in evaluator wizard#1402
notgitika merged 1 commit into
mainfrom
fix/evaluator-kms-skip-enter

Conversation

@notgitika
Copy link
Copy Markdown
Contributor

Summary

  • Adds allowEmpty prop to the KMS key ARN TextInput in the add evaluator wizard, allowing users to press Enter to skip the optional field
  • The dataset wizard already had this prop set correctly; the evaluator wizard was the only one missing it

Root Cause

TextInput blocks submission when the value is empty unless allowEmpty is set. The KMS field is optional but was missing this prop, causing the wizard to freeze at that step.

Fixes #1398

Test plan

  • Run agentcore add evaluator → choose LLM-as-a-Judge → complete steps up to KMS key ARN → press Enter with empty field → should advance to confirm step
  • Enter a valid KMS ARN → should advance and show it in confirm
  • Enter an invalid ARN → should show validation error

The TextInput for KMS key ARN was missing `allowEmpty`, preventing
Enter from advancing past the step when the field is left empty.

Fixes #1398
@notgitika notgitika requested a review from a team May 27, 2026 22:49
@github-actions github-actions Bot added the size/xs PR size: XS label May 27, 2026
@github-actions github-actions Bot added the agentcore-harness-reviewing AgentCore Harness review in progress label May 27, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label May 27, 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 May 27, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Package Tarball

aws-agentcore-0.15.0.tgz

How to install

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

Copy link
Copy Markdown

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

Choose a reason for hiding this comment

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

LGTM. Minimal, targeted fix that mirrors the existing pattern in AddDatasetScreen.tsx (allowEmpty alongside a customValidation that already permits empty values). No new feature surface, so no new telemetry needed; the underlying TextInput allowEmpty behavior is already covered by TextInput.test.tsx.

@github-actions github-actions Bot removed the agentcore-harness-reviewing AgentCore Harness review in progress label May 27, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 35% 10660 / 30452
🔵 Statements 34.35% 11324 / 32960
🔵 Functions 29.98% 1809 / 6033
🔵 Branches 29.01% 6735 / 23214
Generated in workflow #3351 for commit 924c97c by the Vitest Coverage Report Action

@notgitika notgitika merged commit 6d679ff into main May 27, 2026
30 checks passed
@notgitika notgitika deleted the fix/evaluator-kms-skip-enter branch May 27, 2026 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

agentcore add evaluator freezes at KMS arn step

3 participants