Merge pull request #4136 from code-yeongyu/fix/4059-blocker4-reland

fix(runtime-fallback): reland BLOCKER-4 delegated empty-history fallback (#4059)
This commit is contained in:
YeonGyu-Kim
2026-05-18 13:50:03 +09:00
committed by GitHub
5 changed files with 48 additions and 36 deletions
+1
View File
@@ -551,6 +551,7 @@ describe("runtime-fallback", () => {
expect(promptBody?.tools?.question).toBe(false)
expect(promptBody?.tools?.call_omo_agent).toBe(true)
expect(promptBody?.parts?.[0]?.text).toContain("inspect src/tools/delegate-task")
expect(getDelegatedChildSessionBootstrap(sessionID)).toBeUndefined()
})
test("should use persisted user prompt while preserving delegated bootstrap launch context", async () => {
@@ -54,8 +54,13 @@ export function getLastUserRetryPayload(
return { retryParts }
}
const bootstrapRetryParts = bootstrap?.retryParts ?? []
if (bootstrapRetryParts.length > 0) {
clearDelegatedChildSessionBootstrap(sessionID)
}
return {
retryParts: bootstrap?.retryParts ?? [],
retryParts: bootstrapRetryParts,
...(bootstrap?.system ? { system: bootstrap.system } : {}),
...(bootstrap?.tools ? { tools: bootstrap.tools } : {}),
}