fix(config): promote hashline_edit to top-level flag

Move hashline_edit out of experimental so it is a stable top-level config with default-on runtime behavior and explicit disable support. Add migration and tests to preserve existing experimental.hashline_edit users without breaking configs.
This commit is contained in:
YeonGyu-Kim
2026-02-20 11:12:33 +09:00
parent dc32c38a51
commit f30c656ebf
8 changed files with 117 additions and 60 deletions
+14
View File
@@ -67,6 +67,20 @@ export function migrateConfigFile(
needsWrite = true
}
if (copy.experimental && typeof copy.experimental === "object") {
const experimental = copy.experimental as Record<string, unknown>
if ("hashline_edit" in experimental) {
if (copy.hashline_edit === undefined) {
copy.hashline_edit = experimental.hashline_edit
}
delete experimental.hashline_edit
if (Object.keys(experimental).length === 0) {
delete copy.experimental
}
needsWrite = true
}
}
if (copy.disabled_agents && Array.isArray(copy.disabled_agents)) {
const migrated: string[] = []
let changed = false