Harness chat drops `*`, `[`, `` ` `` and `~` characters from settled replies

Open Beginner friendly
#2,938 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
84/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
react, typescript
Domain
cli, frontend

Research direction

Start in src/components/ui/markdown/Markdown.tsx and inspect parseInline, especially how the regular-text loop handles *, [, backticks, and ~ when no closed span follows. Reproduce with the examples in the issue and check the settled reply preserves each character while closed spans still render correctly; the issue does not name a test file.

Written by the indexing model from the issue text.

Description

Description

In the harness invoke chat screen, a settled assistant reply is rendered by the vendored
Markdown component (src/components/ui/markdown/Markdown.tsx). Its inline parser drops any
*, `, [ or ~ that does not open a closed span, so the text shown differs from what the
agent returned.

Steps to Reproduce
  1. agentcore harness invoke --id <harness> (interactive chat).
  2. Ask something whose answer contains e.g. 2 * 3 = 6, items[0], or approx ~~10.
Expected Behavior

The reply shows 2 * 3 = 6, items[0], approx ~~10.

Actual Behavior

The reply shows 2 3 = 6, items0], approx ~10. Closed spans (**bold**, `code`, links)
render correctly.

CLI Version

1.2.0 (current v1.x, a6452a4)

Operating System

Linux

Additional Context

parseInline falls through to its "regular text" loop, which stops immediately on these markers;
the else i++; // safety branch then advances past the marker without emitting it.

Dominant language
TypeScript
Stars
339
Forks
129
Avg merge
19h 21m
Merged PRs (30d)
125

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aws/agentcore-cli

All issues in aws/agentcore-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.