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

未關閉 適合新手
#2,938 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
84/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
react, typescript
領域
cli, frontend

研究方向

從src/components/ui/markdown/Markdown.tsx開始,檢查parseInline,尤其是後面沒有閉合的span時,純文字迴圈如何處理*、[、反引號和~。使用issue中的範例重現,並檢查定稿的回覆是否保留每個字元,同時閉合的span仍能正確呈現;issue沒有提到測試檔案。

由索引模型根據 Issue 內容生成。

描述

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.

主要語言
TypeScript
星號
339
分支
129
平均合併
19 小時 21 分鐘
30 天內合併 PR
125

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

aws/agentcore-cli 的其他 Issue

查看 aws/agentcore-cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。