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

Ouverte
#17,389 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@kyle-sexton y travaille déjà.

Depuis le 19/11/2026.

  • #17396 par @kyle-sexton — ouverte

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
18/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
python, shell
Domaine
performance, tooling

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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

Langage dominant
Shell
Étoiles
22
Forks
2
Merge moyen
1 h 47 min
PR mergées (30 j)
942

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de melodic-software/claude-code-plugins

Toutes les issues de melodic-software/claude-code-plugins

Issues similaires

Plus d'issues Shell/Bash

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.