Skip to content

[Bug]: GENERATION_FAILED (fp: 57d810b2) #383

Description

@rizvansgtp-rgb

Description

after adding the chatgpt api auth done but still
Generation failed
Encountered invalidated oauth token for user, failing request

Steps to reproduce

Generation failed
Encountered invalidated oauth token for user, failing request

Expected behavior

Generation failed
Encountered invalidated oauth token for user, failing request

Actual behavior

Error invoking remoGeneration failed
Encountered invalidated oauth token for user, failing requestte method 'codesign:v1:generate': CodesignError: Encountered invalidated oauth token for user, failing request

open-codesign version

0.2.0

Platform

Windows

OS version

Windows 11 (10.0.26200)

Model provider (if relevant)

OpenAI

Error code

GENERATION_FAILED

Diagnostics bundle

Bundle saved locally at ~\OneDrive - Chinese Palace Group\Downloads\open-codesign-diagnostics-2026-06-11T09-10-46.zip. Attach it to this issue after submitting.

Logs

generationId: 'mq98vk95-6n66x2',
  deltas: 0,
  tools: 1
}
[2026-06-11 12:40:01.454] [info]   (main:ipc) agent.turn_start { runId: 'mq98vk95-6n66x2', generationId: 'mq98vk95-6n66x2' }
[2026-06-11 12:40:01.457] [info]   (main:ipc) [context-prune] step=caps {
  runId: 'mq98vk95-6n66x2',
  generationId: 'mq98vk95-6n66x2',
  messages: 56,
  before: 130863,
  after: 76517,
  textLimit: 8192,
  toolInputLimit: 24576,
  toolResultLimit: 8192,
  window: 3,
  compactedBlocks: 3,
  compactedBytes: 52745,
  reason: 'tool_result_text'
}
[2026-06-11 12:40:11.524] [info]   (main:ipc) agent.turn_end {
  runId: 'mq98vk95-6n66x2',
  generationId: 'mq98vk95-6n66x2',
  deltas: 0,
  tools: 0
}
[2026-06-11 12:40:11.525] [info]   (main:ipc) agent.end { runId: 'mq98vk95-6n66x2', generationId: 'mq98vk95-6n66x2' }
[2026-06-11 12:40:11.526] [error]  (main:ipc) [generate] step=send_request.fail {
  runId: 'mq98vk95-6n66x2',
  generationId: 'mq98vk95-6n66x2',
  provider: 'chatgpt-codex',
  modelId: 'gpt-5.5',
  ms: 145570,
  stopReason: 'error'
}
[2026-06-11 12:40:11.527] [error]  (main:ipc) generate.fail {
  runId: 'mq98vk95-6n66x2',
  generationId: 'mq98vk95-6n66x2',
  ms: 155545,
  provider: 'chatgpt-codex',
  modelId: 'gpt-5.5',
  baseUrl: '[url omitted]',
  message: 'Encountered invalidated oauth token for user, failing request',
  code: 'PROVIDER_ERROR'
}
[2026-06-11 12:40:11.546] [error]  (renderer:console) [store] applyGenerateError {"generationId":"mq98vk95-6n66x2","designId":"2d460640-79f0-4079-b49e-f20db8a24518","message":"Error invoking remote method 'codesign:v1:generate': CodesignError: Encountered invalidated oauth token for user, failing request"} {}
[2026-06-11 12:40:11.634] [info]   (snapshots-ipc) snapshot.created {
  id: '49a675ee-d669-47f5-8622-b2006f5806a4',
  type: 'edit',
  designId: '2d460640-79f0-4079-b49e-f20db8a24518'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageAwaiting maintainer review

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions