Skip to content
This repository was archived by the owner on Jul 24, 2026. It is now read-only.

Forward image idempotency metadata - #43

Merged
leoxk merged 1 commit into
mainfrom
codex/image-bridge-reliability
Jul 21, 2026
Merged

Forward image idempotency metadata#43
leoxk merged 1 commit into
mainfrom
codex/image-bridge-reliability

Conversation

@leoxk

@leoxk leoxk commented Jul 21, 2026

Copy link
Copy Markdown
Owner

⚠️ 提交说明 / PR Notice

Important

  • 请提供人工撰写的简洁摘要,避免直接粘贴未经整理的 AI 输出。

📝 变更描述 / Description

Forward a client-provided image Idempotency-Key, or fall back to the gateway request ID, only on image generation and edit relays. Add an internal caller scope and request correlation header so the image bridge can safely coalesce duplicate work without sharing cached results between users or tokens. Text relay headers remain unchanged.

🚀 变更类型 / Type of change

  • 🐛 Bug 修复 (Bug fix) - 请关联对应 Issue,避免将设计取舍、理解偏差或预期不一致直接归类为 bug
  • ✨ 新功能 (New feature) - 重大特性建议先通过 Issue 沟通
  • ⚡ 性能优化 / 重构 (Refactor)
  • 📝 文档更新 (Documentation)

🔗 关联任务 / Related Issue

  • Closes # (如有)

✅ 提交前检查项 / Checklist

  • 人工确认: 我已亲自整理并撰写此描述,没有直接粘贴未经处理的 AI 输出。
  • 非重复提交: 我已搜索现有的 IssuesPRs,确认不是重复提交。
  • Bug fix 说明: 若此 PR 标记为 Bug fix,我已提交或关联对应 Issue,且不会将设计取舍、预期不一致或理解偏差直接归类为 bug。
  • 变更理解: 我已理解这些更改的工作原理及可能影响。
  • 范围聚焦: 本 PR 未包含任何与当前任务无关的代码改动。
  • 本地验证: 已在本地运行并通过测试或手动验证,维护者可以据此复核结果。
  • 安全合规: 代码中无敏感凭据,且符合项目代码规范。

📸 运行证明 / Proof of Work

  • go test ./relay/channel/openai passed with Go 1.25.1.
  • Tests cover client idempotency keys, gateway request ID fallback, caller scoping, and unchanged text request behavior.

@leoxk
leoxk merged commit 8195b89 into main Jul 21, 2026
5 checks passed
@leoxk
leoxk deleted the codex/image-bridge-reliability branch July 21, 2026 03:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant