Cache eviction deletes unrelated JSON files

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

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
74/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
backend

调研方向

阅读 src/llm/model-call-cache.ts:166-209,并追踪缓存条目是如何被选中以进行淘汰的。issue 中描述的内存文件系统探测会复现 unrelated.json 被删除的问题;用它检查修复。完成标准是淘汰操作只删除版本化缓存条目布局中的文件。

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

描述

bug

Problem: A configured cache directory containing stale unrelated.json can select it for deletion even though it is outside the versioned cache-entry layout.
File:line: src/llm/model-call-cache.ts:166-209.
Evidence: In-memory filesystem probe captured the unrelated-file deletion call.
Suggested fix size: S.
Found during #44 (workstream C, challenged by @architect).

主要语言
TypeScript
星标
8
派生
1
平均合并
5 分钟
30 天内合并 PR
2

环境准备

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

从这里开始

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

0xPolygon/codegenie 的其他 Issue

查看 0xPolygon/codegenie 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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