Commit 2638d35
committed
fix: skip previousResponseId for GPT-5 after subtask completion
- When a subtask completes and returns to the parent task, the conversation continuity
for GPT-5 responses API was broken because the previous_response_id was still being used
- Added logic to set skipPrevResponseIdOnce flag when resuming from a subtask with GPT-5
- This ensures the next API call after subtask completion uses full conversation history
- Added comprehensive tests to verify the fix works for GPT-5 and doesn't affect other models
Fixes #72511 parent c608392 commit 2638d35
2 files changed
+215
-1654
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1107 | 1107 | | |
1108 | 1108 | | |
1109 | 1109 | | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
1110 | 1121 | | |
1111 | 1122 | | |
1112 | 1123 | | |
| |||
0 commit comments