Skip to content

bogus 0 tokens -49442 toekn guard #2139

Description

@acoliver

What happened?

[API Error: Client error: Unknown error (Status: 400)]

/dumpcontext now

ℹ Immediate request context dumped to 20260623-195633-codex-e1bt7l-request.jsonNo model request was sent, so no model response dump was created.Dump directory: /Users/acoliver/.llxprt/dumps

/profile load opusthinking

ℹ Profile 'opusthinking' loaded- Cleared custom base URL for provider 'anthropic'; default endpoint restored.- Use /key to set API key if needed.- API key removed for provider 'anthropic'- Base URL updated to 'https://api.anthropic.com' for provider 'anthropic'.- Model set to 'claude-opus-4-8' for provider 'anthropic'.

continue

Responding with: opusthinking
✓ ✓Shell cat > /tmp/corrupted_files.txt <<'EOF'
packages/cli/src/ui/components/SettingsDialog.test.tsx
packages/cli/src/u…
Shell cat > /tmp/corrupted_files.txt <<'EOF'
packages/cli/src/ui/components/SettingsDialog.test.tsx
packages/cli/src/ui/c…

 23 /tmp/corrupted_files.txt
 --- checking these were only changed in working tree (not committed) ---
  M packages/cli/src/commands/mcp/remove.test.ts
  M packages/cli/src/integration-tests/loadbalancer.integration.test.ts
  M packages/cli/src/integration-tests/todo-continuation.integration.test.ts
  M packages/cli/src/runtime/__tests__/runtimeIsolation.test.ts
  M packages/cli/src/services/todo-continuation/todoContinuationService.spec.ts
  M packages/cli/src/ui/commands/__tests__/formatSessionSection.spec.ts
  M packages/cli/src/ui/commands/__tests__/profileCommand.failover.test.ts
  M packages/cli/src/ui/commands/__tests__/profileCommand.lb.test.ts
  M packages/cli/src/ui/commands/profileCommand.test.ts
  M packages/cli/src/ui/commands/test/subagentCommand.test.ts
  M packages/cli/src/ui/components/Footer.responsive.test.tsx
  M packages/cli/src/ui/components/Footer.test.tsx
  M packages/cli/src/ui/components/ProviderDialog.responsive.test.tsx
  M packages/cli/src/ui/components/SettingsDialog.test.tsx
  M packages/cli/src/ui/components/TodoPanel.responsive.test.tsx
  M packages/cli/src/ui/components/TodoPanel.semantic.test.tsx
  M packages/cli/src/ui/components/__tests__/SessionBrowserDialog.spec.tsx
  M packages/cli/src/ui/components/shared/BaseSelectionList.test.tsx
  M packages/cli/src/ui/hooks/shellCommandProcessor.test.tsx
  M packages/cli/src/ui/hooks/useTodoContinuation.spec.ts
  M packages/cli/src/ui/utils/secureInputHandler.test.ts
  M packages/cli/src/utils/__tests__/formatRelativeTime.spec.ts
  M packages/cli/src/utils/sandbox-proxy-integration.test.ts

ℹ Sending this message (0 tokens) might exceed the remaining context window limit (-49442 tokens). Please try reducing the size of your message or use the /compress command to compress the chat history

Context: 249,442/200,000 tokens in the footer

(we were in gpt but it had an error so we switched to opus which then when told to continue made one tool call and hit the guard probably because the context length was recalcuated

What did you expect to happen?

it shouldn't shoot the context value up like that without a compress and I think tis miscalcuating the ocntext when switching. It might change but it wouln't like double or tripple the ocntext wasn't that fuull

Client information

About LLxprt Code

CLI Version 0.10.0-nightly.260623.8e8f21c92
Git Commit 8e8f21c
Model anthropic:claude-opus-4-8
Provider anthropic
Base URL https://api.anthropic.com
Sandbox no sandbox
OS darwin

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Context ManagementIssues related to managing the context sent to the model.LoopbreakerIssues that break the loop and cause the model to stop and return to the prompt.claudestuff to do with claude models especially max/pro accountscodex / GPTrelated to codex auth and GPT model support.

    Type

    No fields configured for Bug.

    Projects

    Status
    Todo

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions