Skip to content

fix: agentcore add component opens component wizard directly#896

Merged
jesseturner21 merged 1 commit intomainfrom
fix/add-command-skip-selection-screen
Apr 21, 2026
Merged

fix: agentcore add component opens component wizard directly#896
jesseturner21 merged 1 commit intomainfrom
fix/add-command-skip-selection-screen

Conversation

@notgitika
Copy link
Copy Markdown
Contributor

Summary

  • agentcore add memory (and all other component subcommands) now opens the component-specific wizard directly instead of showing the generic resource selection screen
  • Added initialResource prop to AddFlow that maps to the correct wizard state, skipping the selection screen
  • Each primitive passes its resource type when rendering AddFlow in TUI fallback mode

Root Cause

AddFlow always initialized with { name: 'select' } state regardless of which subcommand invoked it. The primitives rendered AddFlow without telling it which component was requested.

Test plan

  • npx tsc --noEmit passes
  • Pre-commit hooks pass (eslint, prettier, secretlint, typecheck)
  • Manual: agentcore add memory → should open memory wizard directly
  • Manual: agentcore add agent → should open agent wizard directly
  • Manual: agentcore add (no subcommand) → should still show selection screen

Closes #857

@notgitika notgitika requested a review from a team April 21, 2026 07:02
@github-actions github-actions Bot added the size/s PR size: S label Apr 21, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Package Tarball

aws-agentcore-0.9.1.tgz

How to install

npm install https://github.com/aws/agentcore-cli/releases/download/pr-896-tarball/aws-agentcore-0.9.1.tgz

@notgitika notgitika changed the title fix: agentcore add <component> opens component wizard directly fix: agentcore add component opens component wizard directly Apr 21, 2026
When running `agentcore add memory` (or any other component), the TUI
was always showing the generic resource selection screen. This is because
AddFlow always started in the 'select' state regardless of which
subcommand invoked it.

Added an `initialResource` prop to AddFlow that maps directly to the
correct wizard state, skipping the selection screen. Each primitive now
passes its resource type when rendering AddFlow in TUI fallback mode.

Closes #857
@notgitika notgitika force-pushed the fix/add-command-skip-selection-screen branch from d5a63f2 to 4da1348 Compare April 21, 2026 07:04
@github-actions github-actions Bot added size/s PR size: S and removed size/s PR size: S labels Apr 21, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 42.44% 7170 / 16891
🔵 Statements 41.86% 7604 / 18165
🔵 Functions 40.2% 1275 / 3171
🔵 Branches 41.03% 4803 / 11706
Generated in workflow #1858 for commit 4da1348 by the Vitest Coverage Report Action

@jesseturner21 jesseturner21 merged commit 74a35cb into main Apr 21, 2026
23 checks passed
@jesseturner21 jesseturner21 deleted the fix/add-command-skip-selection-screen branch April 21, 2026 15:16
notgitika added a commit to notgitika/agentcore-cli that referenced this pull request Apr 24, 2026
…#115)

* Add implementation plan for harness Custom JWT auth

* fix: agentcore add component opens component wizard directly (aws#896)

When running `agentcore add memory` (or any other component), the TUI
was always showing the generic resource selection screen. This is because
AddFlow always started in the 'select' state regardless of which
subcommand invoked it.

Added an `initialResource` prop to AddFlow that maps directly to the
correct wizard state, skipping the selection screen. Each primitive now
passes its resource type when rendering AddFlow in TUI fallback mode.

Closes aws#857

* fix(tui): polish harness creation wizard ordering, help text, and summary

- Move memory screen first in advanced settings order so it appears
  before tools when multiple options are selected
- Add description help text to all advanced TextInput screens (idle
  timeout, max lifetime, max iterations, max tokens, timeout, subnets,
  security groups, session storage)
- Add description prop to TextInput component for consistent help text
- Add session storage path to the confirm summary screen

---------

Co-authored-by: Gitika <53349492+notgitika@users.noreply.github.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.

agentcore add <component> command always showing components despite specifying the component

2 participants