Skip to content

Commit 2b8a511

Browse files
committed
CHANGES(docs): Correct lifecycle hook semantics
why: Keep the changelog aligned with the lifecycle behavior shipped on this branch so readers do not infer broader hook semantics than the code implements. what: - Document on_project_start as running only for new session creation - Document on_project_exit as running when the last client detaches - Match the guarded client-detached hook behavior in WorkspaceBuilder
1 parent 2be5464 commit 2b8a511

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CHANGES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Workspace configs now support four lifecycle hooks inspired by tmuxinator:
7373

7474
- `on_project_start` — runs before session build (new session creation only)
7575
- `on_project_restart` — runs when reattaching to an existing session (confirmed attach only)
76-
- `on_project_exit` — runs on client detach (via tmux `client-detached` hook; fires on every detach event)
76+
- `on_project_exit` — runs when the last client detaches (via tmux `client-detached` hook)
7777
- `on_project_stop` — runs before `tmuxp stop` kills the session
7878

7979
### Config templating (#1025)

0 commit comments

Comments
 (0)