feat(HAI-094): add includeTaskIdInCommit setting to control commit scope

- Add includeTaskIdInCommit boolean to Settings type with default true
- Refactor merger to dynamically build system prompt based on setting
- Update fallback commit message to respect the toggle
- Add checkbox to Settings UI under Merge section
- Add unit tests for merger and SettingsModal behavior
This commit is contained in:
Dustin Byrne
2026-03-26 19:29:45 -04:00
parent 121b509686
commit 30593e5f6b
5 changed files with 211 additions and 24 deletions

View File

@@ -93,6 +93,10 @@ export interface Settings {
* Defaults to `"HAI"`. Only affects new tasks — existing tasks retain
* their original IDs. */
taskPrefix?: string;
/** When true, merge commit messages include the task ID as the conventional
* commit scope (e.g. `feat(HAI-001): ...`). When false, the scope is
* omitted (e.g. `feat: ...`). Default: true. */
includeTaskIdInCommit?: boolean;
}
export const DEFAULT_SETTINGS: Settings = {
@@ -104,6 +108,7 @@ export const DEFAULT_SETTINGS: Settings = {
worktreeInitCommand: undefined,
recycleWorktrees: false,
taskPrefix: undefined,
includeTaskIdInCommit: true,
};
export interface BoardConfig {