Skip to content

feat(MEMORY-001): wire Claude SessionEnd hook -> session-handoff (cross-OS, AC3/AC4)#191

Merged
mlorentedev merged 1 commit into
mainfrom
feat/memory-001-sessionend-hook
May 31, 2026
Merged

feat(MEMORY-001): wire Claude SessionEnd hook -> session-handoff (cross-OS, AC3/AC4)#191
mlorentedev merged 1 commit into
mainfrom
feat/memory-001-sessionend-hook

Conversation

@mlorentedev
Copy link
Copy Markdown
Owner

Completes MEMORY-001: wires the Claude SessionEnd hook to the session-handoff bridge so it actually fires at session end (ADR-014).

What

  • ai/claude/settings.json: new hooks.SessionEnd with __SESSION_END_COMMAND__ placeholder.
  • setup-linux.sh + setup-windows.ps1: substitute the placeholder to the deployed session-handoff.{sh,ps1} path and merge .hooks.SessionEnd (template wins) — mirrors the existing SessionStart wiring.
  • scripts/session-handoff.ps1: ASCII-only functional Windows mirror of the bash bridge, deployed by setup-windows.
  • claude-settings-template.bats: asserts the placeholder + both setups merge SessionEnd.

Verification

  • bats tests/claude-settings-template.bats + tests/session-handoff.bats green; settings.json valid; setup-linux.sh shellcheck clean (no new warnings); .ps1 ASCII-only.
  • Merge simulated: SessionEnd command resolves to the script path.
  • Windows runtime validation remains empirical (no Windows run here).

Completes AC3/AC4 of specs/MEMORY-001-cross-agent-session-bridge/.

…ss-OS, AC3/AC4)

settings.json gains a hooks.SessionEnd entry (__SESSION_END_COMMAND__ placeholder); setup-{linux,windows} substitute it to the deployed session-handoff.{sh,ps1} path and merge .hooks.SessionEnd (template wins), mirroring the SessionStart wiring. Adds scripts/session-handoff.ps1 (ASCII-only functional Windows mirror) + its deploy. claude-settings-template.bats asserts the placeholder + both setups' merge. This is what makes the MEMORY-001 bridge actually fire at session end. Windows runtime validation remains empirical.
@mlorentedev mlorentedev merged commit 2c0627f into main May 31, 2026
6 checks passed
@mlorentedev mlorentedev deleted the feat/memory-001-sessionend-hook branch May 31, 2026 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant