Skip to content

Replace 'none' project with 'personal' default project#69

Merged
bborn merged 1 commit intomainfrom
task/144-get-rid-of-the-none-project
Jan 9, 2026
Merged

Replace 'none' project with 'personal' default project#69
bborn merged 1 commit intomainfrom
task/144-get-rid-of-the-none-project

Conversation

@bborn
Copy link
Copy Markdown
Owner

@bborn bborn commented Jan 9, 2026

Summary

  • Eliminates the 'none' project concept where tasks had no project assignment
  • Every task now requires a project, with 'personal' as the default
  • The 'personal' project has a dedicated git-backed worktree directory for artifacts

Changes

  • Database Migration: Automatically creates 'personal' project on startup, migrates existing tasks with empty project
  • Git Repository: Initializes ~/.local/share/task/personal/ as a git repo with main branch
  • Task Creation: Defaults to 'personal' project when none specified
  • UI Form: Removes empty project option, defaults to 'personal' (can be overridden by working directory detection)
  • Executor: Enforces project requirement, no longer creates arbitrary per-task directories
  • Tests: Added TestPersonalProjectCreation to verify functionality

Test plan

  • All database tests pass including new TestPersonalProjectCreation test
  • All CLI tests pass
  • Personal project directory is created and initialized as git repo
  • Existing tasks with empty project are migrated to 'personal'
  • New tasks default to 'personal' project
  • Binary builds successfully

🤖 Generated with Claude Code

- Add database migration to ensure 'personal' project exists on startup
- Create ~/.local/share/task/personal directory and initialize as git repo
- Update CreateTask to default empty project to 'personal'
- Migrate existing tasks with empty project to 'personal'
- Update UI form to default to 'personal' and remove empty project option
- Update executor to handle all tasks with project assignment
- Add test for personal project creation and default assignment

This ensures every task has a proper project with a git-backed worktree
directory for artifacts and version control.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@bborn bborn merged commit b4b963c into main Jan 9, 2026
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