Skip to content

Commit c9adc84

Browse files
fix(server): migration 113 touches only groups that are objects
json_type returns the string 'null' for a JSON null, so subagents whose group was already null were rewritten for nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 11a1fef commit c9adc84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/server/src/persistence/Migrations/113_RepairSubagentGroups.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ export default Effect.gen(function* () {
88
SET payload_json = json_remove(payload_json, '$.group')
99
WHERE json_valid(payload_json)
1010
AND json_extract(payload_json, '$.lineage.relationshipToParent') = 'subagent'
11-
AND json_type(payload_json, '$.group') IS NOT NULL
11+
AND json_type(payload_json, '$.group') = 'object'
1212
`;
1313
});

0 commit comments

Comments
 (0)