fix(atlas): address review findings for task session reuse

This commit is contained in:
YeonGyu-Kim
2026-03-18 18:44:42 +09:00
parent 33ef4db502
commit 3c7e6a3940
5 changed files with 289 additions and 4 deletions
@@ -25,6 +25,17 @@ describe("extractSessionIdFromOutput", () => {
expect(result).toBe("ses_sync_12345")
})
test("extracts hyphenated session IDs from task metadata blocks", () => {
// given
const output = `Task completed.\n\n<task_metadata>\nsession_id: ses_auth-flow-123\n</task_metadata>`
// when
const result = extractSessionIdFromOutput(output)
// then
expect(result).toBe("ses_auth-flow-123")
})
test("returns undefined when no session id is present", () => {
// given
const output = "Task completed without metadata"