Skip to content

Conversation

@rabanspiegel
Copy link
Contributor

@rabanspiegel rabanspiegel commented Jan 30, 2026

Closes #693

Adds setup scripts that run automatically when you create a task.

Config

Add to your .emdash.json:

{
  "scripts": {
    "setup": "npm install && npm run dev"
  }
}

The setup script runs in the task's terminal as soon as the worktree is ready.

Testing

  • Add "scripts": { "setup": "echo hello" } to a project's .emdash.json
  • Create a task → should see echo hello run in the bottom-right terminal
  • Delete task and create another → setup should run again
  • Project with no .emdash.json → no errors, just works normally
  • Invalid JSON in .emdash.json → should warn in logs, not crash
@vercel
Copy link

vercel bot commented Jan 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Jan 31, 2026 0:11am

Request Review

- Use projectPath instead of worktreePath as cwd (worktree may be deleted during execution)
- Add error handler for spawn to prevent crash if sh not found (Windows)
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@rabanspiegel rabanspiegel merged commit db9f2b2 into main Feb 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants