fix(orchestration): tolerate raw control characters in model JSON
Deploy Canina / deploy (push) Successful in 36s
Deploy Canina / deploy (push) Successful in 36s
This commit is contained in:
1 parent
4c3f8de1fb
commit
bf53f2e17c
2 files changed
+5
-1
No files matched your search
@@ -35,6 +35,10 @@ class OrchestrationWorkerTests(unittest.TestCase):
|
||||
payload = parse_structured_response('```json\n{"summary":"ok","child_tasks":[]}\n```')
|
||||
self.assertEqual(payload["summary"], "ok")
|
||||
|
||||
def test_parse_json_with_raw_control_character(self):
|
||||
payload = parse_structured_response('{"summary":"line one\nline two","child_tasks":[]}')
|
||||
self.assertEqual(payload["summary"], "line one\nline two")
|
||||
|
||||
def test_child_task_codes_are_deterministic_and_include_parent(self):
|
||||
proposal = {
|
||||
"child_tasks": [
|
||||
|
||||
Reference in new issue
Block a user