Skip to content

[Bug]: gemini-3.8-flash 사용 시 /gsd-progress에서 502 MALFORMED_FUNCTION_CALL 지속 발생 #6876

Closed

Description

@heygoodluck

Client or integration

Claude Code

Area

Provider adapter

Summary

OpenCodex를 통해 Claude Code에서 gemini-3.8-flash를 사용할 때 /gsd-progress 실행 중 HTTP 502 MALFORMED_FUNCTION_CALL 오류가 지속적으로 발생합니다.
일시적인 서버 문제라고 안내되지만 반복 발생하여 진행 상태 확인 작업을 완료하지 못합니다. 필요한 파일 읽기 및 도구 호출을 완료하고 GSD 진행 상태를 정상적으로 출력하기를 기대합니다.

Reproduction

  1. OpenCodex를 통해 Claude Code를 실행합니다.
  2. gemini-3.8-flash 모델을 사용합니다.
  3. /gsd-progress를 실행합니다.
  4. Read ../.claude/gsd-core/references/ui-brand.md (unchanged) 출력 이후 아래 502 오류가 발생합니다.
    실제 사용 중 반복 관찰한 현상이며, 독립적인 최소 재현 테스트는 아직 수행하지 않았습니다.

Version

2.81.1

Operating system

Ubuntu 24.04.5 LTS

Provider and model

gemini-3.8-flash; 오류 메시지에 표시된 upstream: Vertex AI

Logs or error output

/gsd-progress
Read ../.claude/gsd-core/references/ui-brand.md (unchanged)

● API Error: 502 Vertex AI response truncated upstream before the turn completed (MALFORMED_FUNCTION_CALL). This is a server-side issue, usually temporary — try again in a moment. If it persists, check your inference gateway

Screenshots and supporting files

No response

Redacted configuration

Checks

  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.

Activity

  1. added
    providerProvider adapters, OpenAI-compat presets, upstream API quirks
    on Oct 10, 2026
  2. lidge-jun commented on Oct 10, 2026

    @lidge-jun
    Owner

    Fixed on dev by #6881 (squash 77512080d8). A Gemini MALFORMED_FUNCTION_CALL that ends a turn before any output or tool call is now marked replay-safe. With the opt-in emptyCompletionRetry, the proxy retries it once and merges the usage, instead of returning a 502. Default behavior is unchanged when the option is off. If you still see it with the option on, please reopen with the route and the timing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingproviderProvider adapters, OpenAI-compat presets, upstream API quirks

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions