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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    autonomous: likelyProbably hands-off: clearly worth fixing, agent can do it, minor judgment needed.enhancementNew feature or requestpriority: mediumP2 - normal prioritytriage: fixed-pending-releaseFixed in code/committed; will close automatically on next releasetriage: reproducibleClear repro + clear fix path

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions