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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user