Skip to main content

Synopsis

DEPRECATED: The sync command has been removed. Thread sync is now handled automatically via the orphan branch worktree.

Status

This command is no longer available in current versions of Watercooler.

Migration

Thread synchronization now happens automatically:
  • Automatic commits: Thread changes are committed automatically
  • Orphan branch worktree: Uses git worktree for clean separation
  • Background sync: No manual intervention required

Previous Functionality

In earlier versions, this command was used to:
# Check sync queue status
watercooler sync --status

# Force immediate push
watercooler sync --now

Current Behavior

Running the command displays:
watercooler sync
Output:
The 'sync' command has been removed.
Thread sync is now handled automatically via the orphan branch worktree.
Exit code: 0

Alternative Commands

Check git status

To verify thread synchronization:
# Check git status in threads directory
cd $(watercooler config show --json | jq -r '.paths.threads_dir')
git status

Manual push (if needed)

In rare cases where you need to manually push:
# Navigate to threads directory
cd watercooler  # or your threads directory

# Check status
git status

# Push if needed
git push origin threads  # or your branch name

Verify sync health

# Check overall system health
watercooler health

Automatic Sync Behavior

When sync happens

  1. After thread operations:
    • init-thread
    • say
    • ack
    • handoff
    • set-status
    • set-ball
  2. Commit creation:
    • Automatic git commit after each operation
    • Descriptive commit messages
    • No user intervention required
  3. Push behavior (if configured):
    • Can be automatic or manual depending on configuration
    • Check config: watercooler config show

Verify automatic sync

# Make a change
watercooler say test-thread --title "Test" --body "Testing sync"

# Check git log
cd watercooler
git log -1
# Should show automatic commit

Configuration

Sync behavior can be configured in config.toml:
[git]
auto_commit = true    # Default: true
auto_push = false     # Default: false (manual push)
branch = "threads"    # Branch name for threads
View current config:
watercooler config show

Troubleshooting

Sync not working

  1. Check git status:
    cd watercooler
    git status
    
  2. Verify git config:
    git config --list
    
  3. Check remote:
    git remote -v
    
  4. Run health check:
    watercooler health
    

Manual sync recovery

If automatic sync fails:
# Navigate to threads
cd watercooler

# Check for uncommitted changes
git status

# Commit if needed
git add .
git commit -m "Manual sync"

# Push
git push origin threads

Migration from Old Version

If upgrading from a version with sync command:
  1. Verify orphan branch setup:
    cd watercooler
    git branch
    # Should show orphan branch for threads
    
  2. Check worktree:
    git worktree list
    
  3. Test automatic sync:
    watercooler say test --title "Test" --body "Testing new sync"
    cd watercooler
    git log -1
    # Should show automatic commit
    

Build docs developers (and LLMs) love