Skip to content

Merge pull request #171 from CJackHwang/codex/fix-issue-#170-in-ds2api Enable env-backed config writeback and bootstrap missing config file#174

Merged
CJackHwang merged 8 commits intomainfrom
dev
Mar 30, 2026
Merged

Merge pull request #171 from CJackHwang/codex/fix-issue-#170-in-ds2api Enable env-backed config writeback and bootstrap missing config file#174
CJackHwang merged 8 commits intomainfrom
dev

Conversation

@CJackHwang
Copy link
Copy Markdown
Owner

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • 📝 docs
  • 🔨 chore

🔀 变更说明 | Description of Change

流截断残余数据过滤
环境变量配置模式优化等

📝 补充信息 | Additional Information

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ds2api Ready Ready Preview, Comment Mar 31, 2026 4:10pm

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: efebe9ebad

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +25 to +29
idx := strings.Index(strings.ToUpper(text), "CONTENT_FILTER")
if idx < 0 {
return text
}
return strings.TrimRight(text[:idx], " \t\r\n")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restrict CONTENT_FILTER trimming to true leak patterns

This truncates output at the first CONTENT_FILTER substring anywhere in the chunk, so legitimate responses that mention that token (for example, explanations of moderation behavior) are silently cut or dropped. Because the filter runs on every parsed part, it can corrupt normal user-visible content; the trim should be gated to a stricter leak signature instead of an unconditional first-match.

Useful? React with 👍 / 👎.

…nfig-on-json-parse-failure-u32uz8

修复写回模式回退逻辑并从 CONTENT_FILTER 起截断流输出
@CJackHwang CJackHwang merged commit 0635996 into main Mar 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant