Skip to content

feat(memory): add read-only Memory TUI - #1878

Merged
notgitika merged 1 commit into
refactorfrom
feat/memory-read-only-tui
Jul 31, 2026
Merged

feat(memory): add read-only Memory TUI#1878
notgitika merged 1 commit into
refactorfrom
feat/memory-read-only-tui

Conversation

@notgitika

@notgitika notgitika commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

This PR asds read-only TUI screens for listing and inspecting AgentCore Memories.

Manually tested all flows.

This reuses the shared DataTable through PaginatedTablePicker, with #1845 ’s column configuration

@github-actions github-actions Bot added agentcore-harness-reviewing AgentCore Harness review in progress and removed agentcore-harness-reviewing AgentCore Harness review in progress labels Jul 30, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.06452% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.89%. Comparing base (69aa0c1) to head (fa31204).

Files with missing lines Patch % Lines
src/handlers/memory/get/screen.tsx 97.67% 2 Missing ⚠️
src/handlers/memory/screen.tsx 50.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           refactor    #1878      +/-   ##
============================================
+ Coverage     95.86%   95.89%   +0.03%     
============================================
  Files           198      201       +3     
  Lines          9352     9505     +153     
============================================
+ Hits           8965     9115     +150     
- Misses          387      390       +3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@notgitika

Copy link
Copy Markdown
Contributor Author

Unrelated but I will look into this failure for AI reviewer separately. It now throws a new error. https://github.com/aws/agentcore-cli/actions/runs/30582321369/job/91005460337?pr=1878

ERROR: Failed to invoke harness: An error occurred (AccessDeniedException) when calling the InvokeHarness operation: User: arn:aws:sts::685197708687:assumed-role/GitHubActions-HarnessReview/GitHubActions is not authorized to perform: bedrock-agentcore:InvokeHarness on resource: *** because no identity-based policy allows the bedrock-agentcore:InvokeHarness action

@github-actions github-actions Bot added agentcore-harness-reviewing AgentCore Harness review in progress and removed agentcore-harness-reviewing AgentCore Harness review in progress labels Jul 30, 2026
@notgitika

Copy link
Copy Markdown
Contributor Author

Fixed the reviewer ^

@github-actions github-actions Bot added agentcore-harness-reviewing AgentCore Harness review in progress and removed agentcore-harness-reviewing AgentCore Harness review in progress labels Jul 31, 2026

@aidandaly24 aidandaly24 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I have no comments, approved.

navigate(-1);
return;
}
if (input === "r" && detail.isError) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

q: do we want to allow the user to refresh even if there isn't an error? (ex. maybe something changed and they want to check).

This looks consistent with https://github.com/aws/agentcore-cli/blob/refactor/src/handlers/runtime/get/screen.tsx#L48 so just curious what behavior we want.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

nice catch I think we would want that right? maybe I created a new resource while the TUI screen was open and I just want to refresh it to see if it shows up.

Let me add that quickly in a follow up in both places

import { useQuery } from "@tanstack/react-query";
import { Box, Text, useInput } from "ink";
import { useNavigate, useParams } from "react-router";
import { JsonDetail } from "../../../components/JsonDetail";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

love to see us using so many common components!

@notgitika
notgitika merged commit ec57799 into refactor Jul 31, 2026
17 of 22 checks passed
@notgitika
notgitika deleted the feat/memory-read-only-tui branch July 31, 2026 20:15
This was referenced Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants