There was an error while loading. Please reload this page.
1 parent 5d8c61f commit 44affdfCopy full SHA for 44affdf
1 file changed
packages/browseros-agent/apps/server/src/lib/clients/oauth/codex-fetch.ts
@@ -44,6 +44,15 @@ export function createCodexFetch(accountId?: string) {
44
if (!json.instructions) {
45
json.instructions = 'You are a helpful assistant.'
46
}
47
+ // Strip item IDs — Codex doesn't persist items when store=false,
48
+ // so referencing them in subsequent turns causes "item not found" errors
49
+ if (Array.isArray(json.input)) {
50
+ for (const item of json.input) {
51
+ if ('id' in item) {
52
+ delete item.id
53
+ }
54
55
56
body = JSON.stringify(json)
57
} catch (err) {
58
logger.warn('Failed to inject Codex-required fields into request body', {
0 commit comments