Skip to content

Errors running remote compact task (gpt-5.1-codex-max xhigh) #6946

@0xca11

Description

@0xca11

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions