Skip to content

fix(tui): use "No memory" instead of "Disabled" in harness memory picker#1635

Merged
aidandaly24 merged 1 commit into
mainfrom
fix/harness-memory-no-memory-wording
Jun 24, 2026
Merged

fix(tui): use "No memory" instead of "Disabled" in harness memory picker#1635
aidandaly24 merged 1 commit into
mainfrom
fix/harness-memory-no-memory-wording

Conversation

@aidandaly24

@aidandaly24 aidandaly24 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Description

In the harness add/create TUI wizard, the memory-mode picker presented its opt-out option with the label Disabled, and the confirm-review summary showed Memory: Disabled.

This PR changes the displayed label only to No memory, matching the agent/generate wizard which already uses None / "No memory".

Changes:

  • src/cli/tui/screens/harness/types.tsMEMORY_MODE_OPTIONS opt-out option title: 'Disabled''No memory'; description trimmed to 'Default' (was 'No memory (default)') to avoid duplicating the new title.
  • src/cli/tui/screens/harness/AddHarnessScreen.tsx — confirm-review summary value 'Disabled''No memory'.

Deliberately NOT changed (wire/API contracts): the option id: 'disabled', the config union { mode: 'disabled' }, the Zod z.literal('disabled'), the --memory-mode disabled flag value and its help text / VALID_MEMORY_MODES allow-list, the deploy notices that instruct users to type --memory-mode disabled, and the CDK Memory: { Disabled: {} } CFN mapping. Renaming any of these would break deployments or the schema shared with @aws/agentcore-cdk.

The picker's onSelect consumes only item.id (never item.title), so the title is pure presentation and is never parsed back — which is why this rename is safe.

Related Issue

Closes #1634

Documentation PR

N/A — no doc changes. docs/memory.md already describes the agent --memory none shorthand as "No memory resource created"; no harness --memory-mode prose references a "Disabled" display label.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Other (please describe): user-facing wording (display-only)

Testing

How have you tested the change?

  • I ran npm run test:unit (harness suite: src/cli/tui/screens/harness — 6/6 passed, including the contract test maps disabled to a bare disabled option)
  • I ran npm run typecheck (exit 0)
  • I ran npm run lint (0 errors on the changed files; 2 pre-existing warnings unrelated to this change)
  • If I modified src/assets/, I ran npm run test:update-snapshots and committed the updated snapshots (N/A — no asset changes)

No test or snapshot asserts the changed display strings, so none required updating. The contract value { mode: 'disabled' } remains covered and green.

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works (existing contract test confirms behavior is unchanged; the edit is a display string with no test coverage to add)
  • I have updated the documentation accordingly (no doc changes needed)
  • 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.

The harness memory-mode picker and confirm summary labeled the opt-out
option "Disabled". Per Amazon's inclusive-language guidance, replace the
displayed label with "No memory" (matching the agent/generate wizard,
which already uses "None" / "No memory").

Display-only change. The option id, config value { mode: 'disabled' },
the --memory-mode disabled flag, and the CFN Memory: { Disabled: {} }
mapping are wire/API contracts and are deliberately left unchanged.

Closes #1634
@aidandaly24 aidandaly24 requested a review from a team June 24, 2026 18:59
@github-actions github-actions Bot added the size/xs PR size: XS label Jun 24, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label Jun 24, 2026
@github-actions github-actions Bot added the agentcore-harness-reviewing AgentCore Harness review in progress label Jun 24, 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 Jun 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Package Tarball

aws-agentcore-0.20.2.tgz

How to install

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

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM. Display-only rename is well-scoped: the contract id: 'disabled' is preserved, and the picker only consumes id/title/description (verified at AddHarnessScreen.tsx:130), so the schema, CFN Memory: { Disabled: {} } mapping, --memory-mode disabled flag, and deploy notices are untouched. Grepped for other references to the old 'Disabled' string in harness tests and snapshots — none found, so no test/snapshot updates are required. No telemetry implications for a display-string change. Aligns the harness wizard wording with the existing generate wizard (generate/types.ts:197).

@github-actions github-actions Bot removed the agentcore-harness-reviewing AgentCore Harness review in progress label Jun 24, 2026
@aidandaly24 aidandaly24 merged commit bac7f61 into main Jun 24, 2026
32 checks passed
@aidandaly24 aidandaly24 deleted the fix/harness-memory-no-memory-wording branch June 24, 2026 19:02
@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 37.15% 13593 / 36580
🔵 Statements 36.43% 14453 / 39671
🔵 Functions 31.8% 2333 / 7336
🔵 Branches 31.1% 9003 / 28940
Generated in workflow #3814 for commit b1b8d1b by the Vitest Coverage Report Action

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.

Fix harness memory picker wording

3 participants