Skip to content

pdd fix modifies prompt files but does not regenerate corresponding code #356

@jamesdlevine

Description

@jamesdlevine

Description

When pdd fix (agentic mode) modifies a .prompt file to fix an issue, it does not subsequently regenerate the code from that updated prompt. This violates PDD's core principle that prompts are the source of truth and code is a regenerable artifact.

Steps to Reproduce

  1. Run pdd fix https://github.com/promptdriven/pdd/issues/350
  2. Observe that pdd/prompts/agentic_bug_step10_pr_LLM.prompt is modified
  3. Note that the corresponding code file is not regenerated from the updated prompt

Expected Behavior

After modifying a prompt file, pdd fix should:

  1. Detect that the prompt changed
  2. Run pdd generate (or equivalent) to regenerate the code from the updated prompt
  3. Re-run tests to verify the regenerated code works correctly

Actual Behavior

The prompt file is modified but the code file remains unchanged. The fix is incomplete because only half of the prompt→code relationship is updated.

Context

This occurred in the same session as issue #355, where pdd fix also failed to report the file changes. The prompt agentic_bug_step10_pr_LLM.prompt was modified to remove references to a non-existent log file parameter, but no code regeneration followed.

Impact

  • Prompt and code become out of sync
  • The fix may appear complete (tests pass) but the generated code doesn't reflect the prompt changes
  • Future pdd generate runs could produce different results, causing confusion

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions