[bug] slugFromPath in hooks/lib/isa-utils.ts compares raw paths, so a file touched by…
维护者通常 4 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 74/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- tooling
调研方向
从 hooks/lib/isa-utils.ts:1099 开始,这里会给 lifeosPath('MEMORY','WORK') 加上前缀并用 startsWith 进行比较,然后顺着 EventLogger.hook.ts:286-290 中的调用方查看同一会话与跨会话的增量。照搬 #2721 (KnowledgeWriteGuard) 所用的方法,以及 LIFEOS/TOOLS/IsaLadder.ts:146 中的 WORK/WORK_REAL 检查:比较前先解析两边的符号链接。完成的标准是报告中两个调用都返回 x——符号链接的 MEMORY 路径和 realpath——并且普通 MEMORY/WORK 路径没有回归。
由索引模型根据 Issue 内容生成。
描述
What happened
slugFromPath misses files touched by their real path behind the LIFEOS/MEMORY symlink
Summary
hooks/lib/isa-utils.ts:1099 builds lifeosPath('MEMORY', 'WORK') + '/' and tests the tool's file_path with startsWith. The installer makes LIFEOS/MEMORY a symlink into the per-user tree (skills/LifeOS/Tools/InstallEngine.ts:1139), so a path given by the real target of that symlink (<realpath of LIFEOS/MEMORY>/WORK/<slug>/...) returns null, and EventLogger.hook.ts:290 (bumpLastToolActivity(toolFilePath)) skips the cross-session heartbeat for that slug. The same-session bump at :286 is unaffected.
Same class as #2721 (KnowledgeWriteGuard), fixed there by resolving symlinks on both sides. LIFEOS/TOOLS/IsaLadder.ts:146 already handles this by checking WORK and WORK_REAL. To see it: slugFromPath("<claude>/LIFEOS/MEMORY/WORK/x/ISA.md") -> "x", slugFromPath("<realpath of LIFEOS/MEMORY>/WORK/x/ISA.md") -> null.
Details
- Kind: bug
- LifeOS version: 8.761.0
Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.
- 主要语言
- TypeScript
- 星标
- 19.9k
- 派生
- 2.5k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
danielmiessler/LifeOS 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 88/100
danielmiessler/LifeOS#2941 ·
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
danielmiessler/LifeOS#2939 ·
维护者通常 4 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
danielmiessler/LifeOS#2938 ·
维护者通常 4 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
danielmiessler/LifeOS#2936 ·
维护者通常 4 天内回复
-
难度 1/5 1 小时以内 新手友好度 78/100
danielmiessler/LifeOS#2935 ·
维护者通常 4 天内回复
查看 danielmiessler/LifeOS 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
External sources always come back in English: `lc` isn't passed to `/api/v3/external_sources`可能已有人在做 @Anurag1428 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
openfoodfacts/openfoodfacts-explorer#2264 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 80/100
cloudflare/workers-sdk#17139 ·
维护者通常 1 天内回复
-
area: editor P3 type: feature
难度 2/5 1-3 小时 新手友好度 74/100
halisonworks/mod-codeling#290 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
colinhacks/zod#6776 ·
维护者通常 1 天内回复