session-flow: remove a delivered absence's away state so idle hook cost returns to the cheap path
维护者通常 1 天内回复
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 18/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 领域
- performance, tooling
调研方向
Start with the session-flow away hooks and the deliver and end paths that write the away/<session> state under the plugin data dir. Check whether the Python startup cost only appears once that directory exists. Done means a delivered absence leaves no away/<session> directory (or one within the stated retention), the report stays readable as long as that retention allows, tests cover the cleanup, and the idle hook timing is recorded. Linked PR #17396 is already open, so coordinate there first.
由索引模型根据 Issue 内容生成。
描述
Problem
session-flow's always-registered away hooks cost about 0.02 s per prompt and turn end when no away state exists (Python never starts). Once any away/ directory exists under the plugin data dir, the cost is about 0.09 s. A finished absence's state stays in place, so every later session pays the higher cost.
Done looks like
deliver(orend) removes a finished absence's state, or keeps it for a stated bounded retention.- After a delivered absence, no
away/<session>directory remains (or only within the retention bound). - Measured idle hook cost in a session with no active absence is back to about 0.02 s, with the measurement recorded in the PR.
- Tests cover the cleanup, and the report remains readable after delivery for as long as the retention says.
Refs: #17337
- 主要语言
- Shell
- 星标
- 22
- 派生
- 2
- 平均合并
- 1 小时 47 分钟
- 30 天内合并 PR
- 942
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
melodic-software/claude-code-plugins 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
melodic-software/claude-code-plugins#17374 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 71/100
melodic-software/claude-code-plugins#17364 · 4 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
melodic-software/claude-code-plugins#17039 · 7 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
melodic-software/claude-code-plugins#16931 · 3 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
melodic-software/claude-code-plugins#15498 · 3 条评论 ·
维护者通常 1 天内回复
查看 melodic-software/claude-code-plugins 的全部 Issue
相似的 Issue
-
application-issue
难度 1/5 1 小时以内 新手友好度 82/100
Installomator/Installomator#3657 · 1 条评论 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
-
难度 2/5 1-3 小时 新手友好度 68/100
nekko-labs/nekko-agent#2998 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 60/100
kenzok8/openwrt-honk#35 ·
维护者通常 1 天内回复
-
bug severity:medium triage:confirmed triage:in-progress
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复