Skip to content

Include stable branch identity in structured hook-log entries #3699

Description

@NathanaelRea

Motivation

wt config state logs --format=json provides useful branch labels, but branch names can be reused. External tools can safely use the label for display preference, but not to associate a log with a particular worktree incarnation.

Request

Include a stable identity in each structured hook-log entry, such as the branch OID captured for the hook run and/or another Worktrunk-defined invocation identity. Preserve the human-readable branch label separately.

This would allow log viewers to prefer exact historical entries without treating a reusable branch name as identity.

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