Skip to content

Commit 5a1e0b4

Browse files
authored
fix: add fallback URL for docs/memory.md link in unsupported terminals (#307) (#312)
1 parent 5708c3f commit 5a1e0b4

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/cli/tui/screens/add/AddFlow.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,13 +247,14 @@ export function AddFlow(props: AddFlowProps) {
247247
!flow.loading && (
248248
<Box flexDirection="column">
249249
<AgentAddedSummary config={flow.config} projectName={flow.projectName} projectPath={flow.projectPath} />
250-
<Box marginTop={1}>
250+
<Box marginTop={1} flexDirection="column">
251251
<Text color="yellow">
252252
Note: {memoryNotePrefix}
253253
<Link url={`https://github.com/aws/agentcore-cli/blob/main/docs/memory.md${memoryDocAnchor}`}>
254254
<Text color="cyan">docs/memory.md</Text>
255255
</Link>
256256
</Text>
257+
<Text dimColor>https://github.com/aws/agentcore-cli/blob/main/docs/memory.md</Text>
257258
</Box>
258259
</Box>
259260
)
@@ -287,13 +288,14 @@ export function AddFlow(props: AddFlowProps) {
287288
!flow.loading && (
288289
<Box flexDirection="column">
289290
<AgentAddedSummary config={flow.config} projectName={flow.projectName} />
290-
<Box marginTop={1}>
291+
<Box marginTop={1} flexDirection="column">
291292
<Text color="yellow">
292293
Note: {memoryNotePrefix}
293294
<Link url={`https://github.com/aws/agentcore-cli/blob/main/docs/memory.md${memoryDocAnchor}`}>
294295
<Text color="cyan">docs/memory.md</Text>
295296
</Link>
296297
</Text>
298+
<Text dimColor>https://github.com/aws/agentcore-cli/blob/main/docs/memory.md</Text>
297299
</Box>
298300
</Box>
299301
)

src/cli/tui/screens/memory/AddMemoryFlow.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export function AddMemoryFlow({ isInteractive = true, onExit, onBack, onDev, onD
6969
</Link>{' '}
7070
to learn how to connect memory to your agent.
7171
</Text>
72+
<Text dimColor>https://github.com/aws/agentcore-cli/blob/main/docs/memory.md</Text>
7273
<Text color="yellow">
7374
Once you deploy, the memory resource will be created in your account, but it is not automatically
7475
connected to your agent. You must configure your agent code to use this memory.

0 commit comments

Comments
 (0)