Repository navigation
Conversation
riofutab
added a commit
to riofutab/sub2api
that referenced
this pull request
Nov 21, 2026
- 带入上游安全修复:同名字段重复且取值不一致的请求体在白名单之后统一拒绝,覆盖全部网关分组链 - 同步上游 v0.2.24 新合并的 PR:联网搜索 Exa 与来源回填、alpha/search 403 不罚账号、DeepSeek thinking 续接、System One 模型映射等;Wei-Shaw#8858 取代 fork 带的 Wei-Shaw#8860 - Wei-Shaw#8868、Wei-Shaw#8870、Wei-Shaw#8979 冲突处保留 fork 的等价实现并带入上游测试;Wei-Shaw#8900 与 fork 带的 Wei-Shaw#7935 重叠,未合入 - 合入开放 PR Wei-Shaw#8994 Wei-Shaw#8987 Wei-Shaw#8990 Wei-Shaw#8997,其中 Wei-Shaw#8997 截断 Gemini 泄漏的下一轮用户消息 测试:后端全量 unit 与 golangci-lint、前端 lint/typecheck/vitest 通过,CI 含 integration 全绿
lifu834
added a commit
to lifu834/sub2api
that referenced
this pull request
Nov 21, 2026
…121) 官方 0.2.24 仍拒绝 Codex 0.171 注入的 agent.terminal_info(Wei-Shaw#8991,PR Wei-Shaw#8994 未合) 和 agent.browser_tabs(Wei-Shaw#8999)。按官方白名单方式补上这两个名字,按非空纯文本 改写成用户消息;不做命名空间通配放行,未登记的名字仍按严格校验拒绝。 预校验拒绝(missing_call_id / missing_item_reference)时,日志额外记录: - input_items:input 项数 - input_item_types:各类型项数量(最多 24 类,其余计入 (other)) - missing_call_id_outputs:缺 call_id 的输出项 type|namespace|name(最多 16 项,每段 64 字节) 不记录 output、arguments 或任何消息正文。用于看出新的注入名字、以及压缩后是否只剩上下文项。 背景:261121 生产上有 Codex Desktop 0.171.0-alpha.13 的长会话(约 45 万 token) 压缩后连续 400,新会话正常。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
HTTP
/v1/responses收到namespace=agent、name=terminal_info且没有call_id的独立文本上下文时,会在选择上游前返回 400。该输入不是模型发出的普通工具调用结果。根因
现有独立上下文归一化使用明确的名称白名单,候选扫描和文本校验均遗漏了
terminal_info。改动
terminal_info加入现有非空文本上下文白名单,沿用 user 文本归一化。验证
重叠检查与边界
基于当前 main,延续 #8769、#8929 和 #8680 中维护者选择的白名单归一化方向;提交前未检索到
terminal_info等价 PR。本次只处理报告中已明确的名称,不扩展为通用命名空间放行。归一化会把上下文表示为 user 文本,并非原生不可信上下文语义;未验证真实上游端到端会话。Fixes #8991