pstack docs/harness/claude-code.md: transcript slug replaces every non-alphanumeric character, not only / and .

未关闭 适合新手
#1,155 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1-3 小时
新手友好度
82/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
zsh
领域
documentation

调研方向

错误的规则位于 docs/harness/claude-code.md 中 Paths 表格的 Transcripts 行。请用名称包含非 ASCII 字符的工作区文件夹进行检查,每个这样的字符都应映射为短横线。完成的标准是:句子说明每个不是 ASCII 字母或数字的字符都会变成 -,并且 reflect 技能的第 1 步使用 find,或说明 zsh 的 no-match 行为。

由索引模型根据 Issue 内容生成。

描述

Problem

docs/harness/claude-code.md (Paths table, Transcripts row) says the slug is the workspace path with each / and . changed to -. In practice, Claude Code replaces every character that is not an ASCII letter or digit. A workspace folder whose name ends in Japanese characters (for example 11-1-<four kana/kanji>) maps to 11-1-----.

An agent that follows the documented rule builds a path that does not exist. The reflect skill's step 1 then fails to find the active transcript.

A related trap: in zsh, the documented ls -t <dir>/*.jsonl <dir>/*/*.jsonl ... fails with no matches found when any glob has no match, so the whole command returns nothing. find or setopt null_glob avoids it.

Suggested change

Change the sentence to "each character that is not an ASCII letter or digit is changed to -", and use find (or note the zsh behavior) in reflect step 1.

Environment

pstack 0.15.36, Claude Code on macOS (zsh).

主要语言
TypeScript
星标
14.9k
派生
1.5k
平均合并
3 小时 15 分钟
30 天内合并 PR
148

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

cursor/plugins 的其他 Issue

查看 cursor/plugins 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。