Commit 5438f8a
committed
fix(codex): clear stale context-engine projection after overflow retry
When a resumed Codex thread with a thread_bootstrap context-engine
binding overflows during turn/start, the retry creates a fresh thread
but preserved the old projection epoch in the saved binding. The fresh
thread never received the projected context, creating a false binding
invariant that makes future runs skip re-projection.
After restartContextEngineCodexThread() creates the fresh retry thread,
read the saved binding, detect the stale projection, clear it, and log
the previous epoch for observability.
Closes #88355
Signed-off-by: Sebastien Tardif <[email protected]>1 parent 63621ee commit 5438f8a
2 files changed
Lines changed: 33 additions & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1233 | 1233 | | |
1234 | 1234 | | |
1235 | 1235 | | |
1236 | | - | |
| 1236 | + | |
1237 | 1237 | | |
1238 | 1238 | | |
1239 | 1239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1873 | 1873 | | |
1874 | 1874 | | |
1875 | 1875 | | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
1876 | 1908 | | |
1877 | 1909 | | |
1878 | 1910 | | |
| |||
0 commit comments