Skip to content

fix(ci): finalize DeepSeek review retries - #321

Merged
Sun-sunshine06 merged 1 commit into
OpenCoworkAI:mainfrom
Sun-sunshine06:codex/fix-deepseek-review-finalization
Jul 31, 2026
Merged

fix(ci): finalize DeepSeek review retries#321
Sun-sunshine06 merged 1 commit into
OpenCoworkAI:mainfrom
Sun-sunshine06:codex/fix-deepseek-review-finalization

Conversation

@Sun-sunshine06

Copy link
Copy Markdown
Collaborator

Summary

  • preserve the previous DeepSeek model output when structured parsing fails
  • make retries finalize that prior analysis into JSON instead of re-sending the full PR diff
  • cover the empty-body/reasoning-content failure seen in PR feat(mcp): support 2026-07-28 protocol #318

Why

The review model repeatedly exhausted its response while analyzing a large PR. The fallback parser then found unrelated JSON examples inside the diff. Retrying the same large prompt repeated the failure. This keeps the analysis private and asks the retry only to produce the required JSON envelope.

Validation

  • npx vitest run tests/deepseek-common.test.ts tests/codex-pr-review-context.test.ts (14 tests)
  • npm run typecheck
  • npm run lint (0 errors; 8 existing warnings)

@Sun-sunshine06 Sun-sunshine06 added the bot-skip Skip automated PR review when repairing bot automation label Jul 31, 2026
@Sun-sunshine06
Sun-sunshine06 marked this pull request as ready for review July 31, 2026 03:41
@Sun-sunshine06
Sun-sunshine06 merged commit 0c5afb4 into OpenCoworkAI:main Jul 31, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot-skip Skip automated PR review when repairing bot automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant