Skip to content

feat(tasks): change task_config.includes resolution from overriding to additive#6636

Closed
risu729 wants to merge 2 commits intojdx:mainfrom
risu729:task-includes-fix
Closed

feat(tasks): change task_config.includes resolution from overriding to additive#6636
risu729 wants to merge 2 commits intojdx:mainfrom
risu729:task-includes-fix

Conversation

@risu729
Copy link
Copy Markdown
Contributor

@risu729 risu729 commented Oct 11, 2025

While I was reading the code of task_config.includes, I found some inconsistency in its resolution.
For global tasks, task_config.includes is added per configs, but for local tasks, only task_config.includes in the config with the least precedence is included.

I think it should at least be overridable, but it would be more intuitive and also make the implementation simple if we change the behaviour from overriding (technically not, it's not overridable) to additive.
This also resolves the inconsistency of task loading orders.

Reverts #6159

Copilot AI review requested due to automatic review settings October 11, 2025 19:27
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR changes the behavior of task_config.includes configuration from overriding to additive, allowing hierarchical task inclusion across configuration files. The change enables child configuration files to inherit and extend task includes from parent configurations rather than completely replacing them.

  • Modified task include resolution to be additive rather than override-based
  • Updated documentation to clarify the new additive behavior
  • Added comprehensive end-to-end test to verify hierarchical task inclusion

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
e2e/tasks/test_task_includes_additive New test script verifying additive behavior across config hierarchy
docs/tasks/task-configuration.md Updated documentation explaining additive includes behavior
docs/tasks/file-tasks.md Minor documentation update referencing task_config.includes

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@risu729 risu729 changed the title feat(tasks): change task_config.includes resolution from override to additive feat(tasks): change task_config.includes resolution from overriding to additive Oct 11, 2025
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.

3 participants