session-flow: remove a delivered absence's away state so idle hook cost returns to the cheap path

オープン
#17,389 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@kyle-sexton がすでに取り組んでいます。

2026年11月19日 から。

  • #17396 @kyle-sexton による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
18/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python, shell

調査の方向性

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 (or end) 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分
マージ済み PR(30日)
942

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

melodic-software/claude-code-plugins のほかの issue

melodic-software/claude-code-plugins の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。