Skip to content

Add user scripts feature with multi-path and directory support#41

Merged
gricha merged 1 commit intomainfrom
feat/user-scripts
Jan 8, 2026
Merged

Add user scripts feature with multi-path and directory support#41
gricha merged 1 commit intomainfrom
feat/user-scripts

Conversation

@gricha
Copy link
Copy Markdown
Owner

@gricha gricha commented Jan 8, 2026

Summary

  • Support multiple script paths (files or directories) in post_start config
  • Directories automatically execute all .sh files in sorted order (alphabetical)
  • Default config bootstraps with ~/.perry/userscripts directory
  • Scripts execute AFTER file sync (so synced resources like symlink targets are available)
  • Add configurable fail_on_error option (default: false - log warning and continue)
  • Update Scripts settings UI with list management interface

Test plan

  • Run bun run validate - all 108 tests pass
  • New integration tests for:
    • Multiple script paths execute in order
    • Directory scripts execute .sh files in sorted order
    • Scripts can access synced files (run after file sync)
  • Playwright web e2e tests pass
  • Manual test: create ~/.perry/userscripts/ with test scripts, start workspace

Documentation

  • Added new docs/docs/configuration/scripts.md page covering:
    • Configuration via config.json and Web UI
    • Single scripts vs script directories
    • Error handling options
    • Common use cases with examples

🤖 Generated with Claude Code

- Support multiple script paths (files or directories)
- Directories execute all .sh files in sorted order
- Default config bootstraps with ~/.perry/userscripts
- Scripts run after file sync (synced resources available)
- Add fail_on_error option (default: false - log warning, continue)
- Update Scripts settings UI with list management
- Add comprehensive integration tests
- Add documentation page for scripts configuration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@gricha gricha merged commit e6caf43 into main Jan 8, 2026
6 checks passed
@gricha gricha deleted the feat/user-scripts branch January 8, 2026 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant