itdove/devaiflow#343: daf sync fails with 'Session already exists' when non-development session exists for same issue#356
Merged
Conversation
- Add session type detection before creating new development sessions - Convert ticket_creation sessions to development when names match during sync - Skip investigation sessions with clear warning message - Update session metadata and tracking when converting sessions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jira Issue: #343
Description
Fixes an issue where
daf syncfails with "Session already exists" error when a non-development session (specifically aticket_creationsession) exists for the same issue.The fix automatically converts
ticket_creationsessions todevelopmentsessions during the sync operation, allowing users to seamlessly transition from ticket creation workflows to development workflows without manual session cleanup.Technical changes:
sync_command.pyto detect existingticket_creationsessions and auto-convert them todevelopmenttypedocs/reference/commands.mdto reflect the new behaviortests/test_sync_command.pyfor the auto-conversion scenarioAGENTS.mdwith relevant workflow informationAssisted-by: Claude
Testing
Steps to test
daf start --session-type ticket_creation --issue PROJ-123daf sync PROJ-123daf statusto confirm the session type is nowdevelopmentScenarios tested
ticket_creationsession successfully converts todevelopmentdevelopmentsession continues to work as expecteddevelopmentsessionDeployment considerations