Files
fission-ai__openspec/openspec/changes/fix-update-tool-selection/tasks.md
Tabish Bidiwale 0b1be19302 fix: update command respects existing AI tool files
The update command now only updates existing AI tool configuration
files instead of forcing CLAUDE.md creation. This allows team members
to use different AI tools without conflicts.

- Modified update.ts to check for existing files before updating
- Added comprehensive tests for the new behavior
- Updated spec and documentation to reflect team-friendly approach
- Created project README documenting the behavior
2025-08-13 23:25:53 +10:00

872 B

Implementation Tasks

1. Update Update Command

  • Remove hardcoded CLAUDE.md update from src/core/update.ts
  • Add logic to check for existing AI tool configuration files
  • Update only existing files using their appropriate configurators
  • Iterate through all registered configurators to check for existing files

2. Update Configurator Registry

  • Add method to get all configurators for update command
  • Ensure each configurator can check if its file exists

3. Add Tests

  • Test update command with only CLAUDE.md present
  • Test update command with no AI tool files present
  • Test update command with multiple AI tool files present
  • Test that update never creates new AI tool files

4. Update Documentation

  • Update README to clarify team-friendly behavior
  • Document that update only modifies existing files