Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

Remove output_root override to prevent path duplication#7

Open
michaeljabbour wants to merge 2 commits intobkrabach:mainfrom
michaeljabbour:feature/recipe-improvements
Open

Remove output_root override to prevent path duplication#7
michaeljabbour wants to merge 2 commits intobkrabach:mainfrom
michaeljabbour:feature/recipe-improvements

Conversation

@michaeljabbour
Copy link

Summary

  • Removed output_root override from build_component.json to prevent path duplication

Changes

  • Removed explicit output_root setting from build_component.json
  • This allows the context's output_dir to be used consistently

Benefits

  • Prevents path duplication issues when specifying output directories
  • Ensures files are always placed in the expected location

Addressing Code Generation Concerns

This PR modifies a recipe file (build_component.json), not the generated code itself. Recipe files control how code is generated but are not themselves subject to code generation. This change helps prevent path duplication without modifying any generated code files, making it compatible with the project's code generation workflow.

- Remove output_root override from build_component.json to prevent path duplication
- This ensures the output directory is used consistently across recipe execution
"recipe_path": "recipes/codebase_generator/generate_code.json",
"context_overrides": {
"model": "openai:o3-mini",
"output_root": "output",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removing this breaks existing desired behavior, if we want to add support for overriding, please change it to accept the context value and default to the current value of output.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants