Finding
src/assets/scripts/hooks/session-start-context extracts cwd at line 44 and source at line 255 through two separate printf | json_field pipelines, both parsing the same $INPUT payload.
Why deferred
A single two-field extraction would cost nothing extra on the GitHub path and save ~2 forks per session on the jira/linear path, but the fix requires widening json_field's single-field contract — shared plumbing used by every hook — to save two forks on a self-extinguishing non-default path that forks zero times under the default (github) provider. Reviewer's own recommendation: "not recommended given the plumbing cost." Recorded so it is not rediscovered.
Suggested fix
Not recommended as currently scoped. If json_field is ever widened to extract multiple fields in one pass for other reasons, fold this in then.
References
Finding
src/assets/scripts/hooks/session-start-contextextractscwdat line 44 andsourceat line 255 through two separateprintf | json_fieldpipelines, both parsing the same$INPUTpayload.Why deferred
A single two-field extraction would cost nothing extra on the GitHub path and save ~2 forks per session on the jira/linear path, but the fix requires widening
json_field's single-field contract — shared plumbing used by every hook — to save two forks on a self-extinguishing non-default path that forks zero times under the default (github) provider. Reviewer's own recommendation: "not recommended given the plumbing cost." Recorded so it is not rediscovered.Suggested fix
Not recommended as currently scoped. If
json_fieldis ever widened to extract multiple fields in one pass for other reasons, fold this in then.References
.devflow/docs/reviews/feat-325-tracker-phase-3-init-selected-provider/2026-09-17_1253src/assets/scripts/hooks/session-start-context:44,255