Commit 4f71fa4
committed
fix: preserve prompt-cache prefix for side conversation forks
Move the side-conversation boundary from the system prompt into the first
fork-owned user turn, route OpenAI promptCacheKey through the parent session
id, and add a runtime-host regression test that compares parent and fork
provider request bodies.
Fixes #4540
Generated-by: Cursor1 parent 5935375 commit 4f71fa4
2 files changed
Lines changed: 482 additions & 4 deletions
File tree
- packages
- core/src
- runtime-host/src/__tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
96 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
97 | 100 | | |
98 | 101 | | |
99 | 102 | | |
| |||
0 commit comments