Skip to content

Support composable client-scoped lifecycle hooks #759

Description

@1jehuang

Problem

Lifecycle integrations such as Herdr need to observe Jcode session startup without replacing an existing user hook. A shared Jcode server must also execute each hook with the terminal environment of the client that initiated that session, otherwise multiple panes can be attributed to the wrong session.

Desired behavior

  • lifecycle hook settings accept multiple commands while remaining compatible with existing scalar string settings
  • configured commands run independently
  • hook processes receive the initiating client's terminal environment
  • two clients sharing one server retain isolated pane-local hook environments

This is required for herdrdev/herdr#2248.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions