Errors running remote compact task (gpt-5.1-codex-max xhigh)
Resolved 💬 6 comments Opened Nov 19, 2025 by 0xca11 Closed Nov 19, 2025
💡 Likely answer: A maintainer (etraut-openai, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
codex-cli 0.60.1
What subscription do you have?
ChatGPT Business
Which model were you using?
gpt-5.1-codex-max xhigh
What platform is your computer?
Darwin 25.1.0 arm64 arm
What issue are you seeing?
636 - >
637 - Last {currentPrice.toFixed(4)}
638 - </text>
613 </g>
■ Error running remote compact task: invalid type: null, expected a string at line 98 column 4
› try compacting again
└ $ vite build
vite v5.4.21 building for production...
… +6 lines
dist/assets/index-LW0aV3Ae.js 242.94 kB │ gzip: 72.72 kB
✓ built in 1.87s
• Edited apps/web/src/components/PerpChart.tsx (+7 -8)
572 />
573 - {/* Compact tag that expands on hover */}
573 {(() => {
575 - const baseWidth = hoverLast ? 108 : 82;
576 - const baseHeight = hoverLast ? 20 : 16;
577 - const x = dimensions.width - baseWidth - 10;
578 - const y = scaleY(currentPrice) - (hoverLast ? 20 : 18);
579 - const opacity = hoverLast ? 1 : 0.5;
574 + const baseWidth = hoverLast ? 110 : 70;
575 + const baseHeight = hoverLast ? 20 : 14;
576 + const x = dimensions.width - baseWidth - 12;
577 + const y = scaleY(currentPrice) - (hoverLast ? 22 : 16);
578 + const opacity = hoverLast ? 1 : 0.38;
604 - fontSize={hoverLast ? 11 : 10}
603 + fontSize={hoverLast ? 11 : 9}
604 fontWeight={900}
■ Error running remote compact task: unexpected status 403 Forbidden: {"detail":"User user-UohKSdccvQjUQKCPXoK4dqB2 does not have access to any accounts"}
What steps can reproduce the bug?
When using the new gpt-5.1-codex-max model with reasoning_effort set to xhigh, whenever the context left gets to approximately 5-6%, the model tries to use the new auto compacting feature and that just fails with errors like the ones in the issue description above (Error running remote compact task).
What is the expected behavior?
I would expect that the remote compact task succeeded, but it seems there's an issue with the returned response from the compacting request being malformed or invalid, and sometimes there's an authentication error.
Additional information
_No response_
6 Comments
Thanks for the bug report. Can you run
/feedbackand post the thread ID here?We're actively working on a fix for a reported problem with the remote compact feature, but we'd like to confirm that the problem you're seeing is the same underlying issue.
Thanks for the quick response! This is the thread ID: 019a9dd4-6d74-7883-9c4b-71a7aee73704
Thanks. Yeah, that looks like the same issue. A fix will be deployed shortly.
Closing as duplicate of #6935
@0xca11 do you get
does not have access to any accountserror if you manually call/compact? Does it happen every time?Can you try
/compacton an an empty session?I only got that
does not have access to any accountserror once when it was trying to automatically compact. I hadn't tried manually calling/compactbefore, but I just called it on that same session and got this same error from before:■ Error running remote compact task: invalid type: null, expected a string at line 98 column 4.When calling
/compacton an empty session it succeeded with this message: