Skip to content

fix(dev): use TUI picker for harness deploy when launching dev from interactive menu#1410

Open
jesseturner21 wants to merge 2 commits into
mainfrom
fix/dev-tui-consistency-1376-main
Open

fix(dev): use TUI picker for harness deploy when launching dev from interactive menu#1410
jesseturner21 wants to merge 2 commits into
mainfrom
fix/dev-tui-consistency-1376-main

Conversation

@jesseturner21
Copy link
Copy Markdown
Contributor

Summary

  • When preview is enabled and a project has harnesses, selecting "dev" from the interactive agentcore menu rendered harness deploy inline (text spinners via runCliDeploy), while agentcore dev used the full-screen TUI (DevScreen) with structured deploy progress
  • launchBrowserDev() now uses launchTuiDevScreenWithPicker() — the same alt-screen TUI picker used by the direct agentcore dev command — when isPreviewEnabled() and harnesses are present
  • Both entry paths now render deploy progress identically in the terminal
  • Non-preview (GA) behavior is unchanged

Closes #1376

Test plan

  • Added unit tests for launchBrowserDev verifying TUI picker is used when preview enabled + harnesses present
  • Tests verify runCliDeploy is NOT called (deploy handled by DevScreen TUI instead)
  • Tests verify alt screen is entered (confirming TUI mode, not inline)
  • Tests verify user can back out of picker without launching browser mode
  • Tests verify non-preview path skips TUI picker and launches browser mode directly
  • Tests verify error cases (no project, no runtimes/harnesses)
  • Manual: enable preview → agentcore createcd into project → agentcore → select "dev" → verify deploy uses full-screen TUI
  • Manual: agentcore dev → verify same full-screen TUI deploy experience

…nteractive menu

When selecting "dev" from the interactive `agentcore` menu with preview
enabled, harness deploy was rendered inline via runCliDeploy() instead of
using the full-screen TUI (DevScreen) that `agentcore dev` uses directly.

Now launchBrowserDev() uses launchTuiDevScreenWithPicker() — the same
alt-screen TUI picker used by the direct `agentcore dev` command — when
preview is enabled and harnesses are present, so deploy progress renders
identically regardless of entry path.

Closes #1376

Constraint: Must be gated behind isPreviewEnabled() to match GA behavior
Rejected: Adding ENTER_ALT_SCREEN around runCliDeploy | would still show spinner-based output instead of the structured DevScreen TUI
Confidence: high
Scope-risk: narrow
@jesseturner21 jesseturner21 requested a review from a team May 28, 2026 14:58
@github-actions github-actions Bot added size/m PR size: M agentcore-harness-reviewing AgentCore Harness review in progress labels May 28, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label May 28, 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 28, 2026
@github-actions github-actions Bot removed the agentcore-harness-reviewing AgentCore Harness review in progress label May 28, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Package Tarball

aws-agentcore-0.15.0.tgz

How to install

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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 28, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 35.03% 10697 / 30529
🔵 Statements 34.39% 11366 / 33048
🔵 Functions 30.01% 1818 / 6056
🔵 Branches 29.03% 6761 / 23286
Generated in workflow #3394 for commit b48a957 by the Vitest Coverage Report Action

Remove duplicated OTEL/runBrowserMode code by using pickerResult with
optional chaining in the shared path. Trim test file to only the two
meaningful cases: picker used for deploy, and user back-out handled.
@github-actions github-actions Bot added size/m PR size: M and removed size/m PR size: M labels May 29, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label May 29, 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 29, 2026
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.

In preview, with harness agentcore -> dev and agentcore dev are different experiences

1 participant