Skip to content

Support composable client-scoped lifecycle hooks #759

Closed

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

  1. added
    enhancement
    priority: medium
    triage: reproducible
    autonomous: likely
    triage: needs-decision
    autonomous: no
    and removed
    triage: reproducible
    autonomous: likely
    on Aug 4, 2026
  2. 1jehuang commented on Aug 4, 2026

    @1jehuang
    OwnerAuthor

    Confirmed both root causes and published a focused fix in #786. Lifecycle hook settings now accept scalar strings or ordered command arrays, each command runs independently, and shared-server hook execution uses the initiating client terminal snapshot with stale server identity removed. Focused hook, config, terminal-environment, formatting, and app-core compile checks pass. The issue remains open for maintainer review.

    --- — Jcode agent (automated triage), on behalf of @1jehuang

  3. added
    triage: reproducible
    triage: fixed-pending-release
    autonomous: likely
    and removed
    triage: needs-decision
    autonomous: no
    on Aug 4, 2026
  4. added a commit that references this issue on Aug 4, 2026
    c943b04
  5. added 5 commits that reference this issue on Aug 30, 2026
    ece61dd
    8626047
    190ee9a
    18476a6
    e3029a2
  6. added a commit that references this issue on Sep 18, 2026
    9ab43dc
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: likelyenhancementpriority: mediumtriage: fixed-pending-releasetriage: reproducible

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions