Skip to content

fix: duplicate header flash and help menu truncation#955

Open
notgitika wants to merge 1 commit intoaws:mainfrom
notgitika:fix/895-duplicate-header
Open

fix: duplicate header flash and help menu truncation#955
notgitika wants to merge 1 commit intoaws:mainfrom
notgitika:fix/895-duplicate-header

Conversation

@notgitika
Copy link
Copy Markdown
Contributor

Summary

  • Fixes the duplicate header that appeared on command screens (deploy, create, etc.) when run directly from the CLI
  • Makes help menu description width responsive to terminal size instead of truncating at 50 chars

Closes #895
Closes #637

Changes

  • DeployScreen: Return null during brief AWS config transitional phases (checking/detecting/saving) instead of rendering a <Screen> that gets immediately replaced
  • CreateScreen: Return null during checking phase; consolidate all other phases into a single <Screen> mount so Ink doesn't output multiple frames with the same header
  • HelpScreen/CommandListScreen: Replace hardcoded MAX_DESC_WIDTH = 50 with dynamic width computed from terminal columns
  • copy.ts: Trim verbose run command description

Root Cause

Ink (React for terminal) doesn't use an alternate screen buffer in non-interactive mode. When a component renders briefly during a transitional phase then re-renders with different content, both frames get written to stdout — causing the title to appear twice.

Test plan

  • Run agentcore create from CLI — verify single "AgentCore Create" header
  • Run agentcore deploy from CLI — verify single "AgentCore Deploy" header
  • Run agentcore TUI, navigate to deploy — verify single header
  • Check help menu descriptions on wide terminal — should not truncate prematurely
  • Check help menu on narrow terminal — should still truncate gracefully

…loses aws#637)

- Return null during brief transitional phases to prevent Ink from
  rendering a header that gets immediately replaced by a different frame
- Consolidate CreateScreen phases into a single Screen mount
- Make help menu description width responsive to terminal size
- Remove hardcoded 50-char description truncation limit
@notgitika notgitika requested a review from a team April 24, 2026 19:03
@github-actions github-actions Bot added the size/m PR size: M label Apr 24, 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-955-tarball/aws-agentcore-0.9.1.tgz

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.

bug: duplicate header on entrypoint [UX] help menu descriptions are cutting off

1 participant