Conversation
…y support - Extract workspace repo selection into _select_from_workspace_repos helper - Add _prompt_investigation_location with 4 options: cwd, temp dir, custom path, workspace - Add create_empty_temp_directory utility for ephemeral investigation workspaces - Update investigate command to use new location prompt when no path specified - Add integration and unit tests for temp directory and location prompt flows 🤖 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.
Now I have all the context. Here's the filled template:
Jira Issue:
Description
Makes project/repo selection optional for the
daf investigatecommand by adding an interactive location prompt when no--pathor--projectsflag is specified.Previously,
daf investigatewithout explicit flags would automatically fall back to the current directory without giving users control over where they want to work. Now users are presented with clear options:os.getcwd()as-isKey changes:
_prompt_for_investigation_location()helper ininvestigate_command.pywith context-aware options (temp clone only shown in git repos)devflow/utils/temp_directory.py--pathand--projects/--workspaceflags bypass all promptsAssisted-by: Claude
Testing
Steps to test
daf investigate --goal "Test"from inside a git repository — verify all 5 options appear including "Clone to temp directory"daf investigate --goal "Test"from a non-git directory (e.g.,~/Documents) — verify 4 options appear (no temp clone option)daf investigate --goal "Test" --path /tmp— verify prompts are skipped and/tmpis used directlydaf investigate --goal "Test" --projects "repo1" --workspace default— verify multi-project mode still works without promptsDAF_MOCK_MODE=1 daf investigate --goal "Test" --json— verify no interactive prompts in JSON modepytest tests/test_investigate_command.pyto confirm unit tests passbash integration-tests/test_investigation.shto confirm integration tests passScenarios tested
--pathflag (backward compatibility)--projects+--workspace(backward compatibility)Deployment considerations