Skip to content

Conversation

@ryanmac
Copy link
Owner

@ryanmac ryanmac commented Jul 25, 2025

Summary

This PR extends the fix from PR #73 to also create the critical [INIT] Build documentation map task during Code Conductor upgrades, not just fresh installations.

Problem

PR #73 added automatic creation of the documentation map task, but only for fresh installations. When users upgrade existing Code Conductor installations, they don't get this critical task, leaving their projects without the essential documentation map that provides context for all AI agent work.

Solution

Added a new Step 6.5 in the installer that:

  • Runs during upgrades (IS_UPGRADE=true)
  • Checks if the documentation map task already exists
  • Checks if the documentation map file already exists
  • Only creates the task if both are missing
  • Provides appropriate feedback for all scenarios

Test Plan

  • Verified bash script syntax with bash -n
  • Created and ran test script to verify logic works correctly
  • Test upgrade on existing Code Conductor project without doc map task
  • Test upgrade on project that already has doc map task
  • Test upgrade on project that already has doc map file

Related Issues

🤖 Generated with Claude Code

The installer now checks during upgrades if the critical [INIT] documentation map
task exists, and creates it if missing. This ensures existing projects that were
set up before PR #73 will get the documentation map task when they upgrade.

Changes:
- Added Step 6.5 to check for documentation map task during upgrades
- Only creates the task if it doesn't exist AND no map file exists
- Provides appropriate feedback for all scenarios
- Maintains backward compatibility with existing installations

This addresses the issue where upgrading Code Conductor doesn't create the
documentation map task that was added in PR #73 for fresh installations.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@ryanmac ryanmac merged commit 9e6b26d into main Jul 25, 2025
10 checks passed
@ryanmac ryanmac deleted the investigate-pr73-documentation-map branch July 25, 2025 18:45
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.

2 participants