Skip to content

[Feature]: Allow checked-in t3.json setup actions to run without per-user import #5063

Description

@husseinraoouf

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I am describing a concrete problem or use case, not just a vague idea.

Area

apps/server

Problem or use case

t3.json can define an action with runOnWorktreeCreate: true, but it does nothing until each user manually imports that action. I miss Codex's code-first setup flow, where repository setup travels with the code.

Proposed solution

Let the worktree setup runner use the checked-in action directly from t3.json. This could be gated by repository trust or a managed opt-in, with approval requested again if the command changes.

Why this matters

Teams could keep setup in one checked-in place instead of relying on every teammate to repeat UI configuration or discover that their worktree was not initialized.

Smallest useful scope

When there is no saved setup action, load the runOnWorktreeCreate action from t3.json after the repository has been trusted.

Alternatives considered

Manual import is easy to miss and can drift from the file. Agent instructions run too late, and Git hooks require separate setup; #551 also notes that their output is currently hidden.

Risks or tradeoffs

Running repository code is a trust boundary, so automatic setup should require explicit repository trust or an administrator-controlled policy.

Examples or references

Related: #551, which covers Git hook output rather than using t3.json directly.

Contribution

  • I would be open to helping implement this.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions