Skip to content

fix: share Retry-After cooldown across translation HTTP attempts - #906

Merged
Bistutu merged 21 commits into
FluentRead:mainfrom
ArietidsZ:fix/shared-retry-after-cooldown-20261009
Oct 14, 2026
Merged

Bistutu merged 21 commits into
FluentRead:mainfrom
ArietidsZ:fix/shared-retry-after-cooldown-20261009

Conversation

@ArietidsZ

@ArietidsZ ArietidsZ commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

构建许可判定补齐Windows路径规范化:原generateBundle的模块ID已normalizePath,resolved SVG路径未规范化,Windows会误判而省略Lobe完整许可。现仅给右侧增加同一normalizePath。新增8项真实generateBundle测试覆盖POSIX/Windows Vite正斜杠/原生反斜杠/query及含SVG/无SVG;有效旧红例3失败5对照通过,配置文件完整28/28通过。Windows端口模拟遵循锁定Vite5.4.19行为,没有声称Windows OS构建。

本次只读记录真实entry.moduleIds/entry.modules,替换旧1961932与旧lease归因图证据,并绑定最终产物SHA和源码SHA:Linux标准492模块无SVG,standalone1216模块含SVG并保留完整Lobe许可,两份产物与389a3f1逐字节一致。标准1959993(7ee7ff35d769ed383dfe1bfbf9983af1414414748fdb1a0bcaf7f940eac36ec5),standalone3797330(e174bc76a8bd80c67bcd66de323b7324f091f40b6bd504d196abb64aec584a5e)。标准原verifier、类型和审计通过;既有功能、pako/scheduler证据复用,未重复1690套件或基线。保持draft,剩余门禁不变。

Doubao wrapper用配置模型选择Seed Responses直接adapter,旧服务级isAiSdk却停用外层并发/速率,导致cap1/3出现2/4个未结束传输。broker现在按currentConfiguredModel(含override/custom model)与isDoubaoSeedTranslationModel作局部判断,同一结果决定quotaScope和外层计数;customBody.model不决定协议,普通Doubao SDK仍只计真实attempt。

连接probe的30秒abort会先拒绝SDK等待者,raw runtimeFetch若忽略abort仍继续。probe现在在schedule外层lease内构建symbol context,传入窄可选transportLease;adapter创建raw promise后立即holdUntil再await。broker不传该字段,counted attempt自行持有raw。这是新证明的实际消费者,上一批无消费者清理不作本轮probe超时已覆盖的证据。

实际registry→Doubao wrapper→adapter的cap1/3、配置/override/custom model/body-model冲突共14项;probe三桶首次raw/429后raw共6项。有效红例14失败、6普通SDK对照通过;修复后111项聚焦契约通过,取消/超时后raw仍持槽、无迟到派发或缓存写入。上一批mixed probe测试取消的是排队broker;不能把旧91项冒充已覆盖probe自身timeout。

389a3f1的57个相关文件 1690/1690通过;9个既有严格模块四维100%,含connectionTest。TypeScript、测试审计、Chrome/Firefox与标准userscript verifier通过。原有counted FIFO、typed input/fallback/image/area可信tab隐私及unknown、三个pending入口Key集合/轮换/恢复摘要保留。

标准体积最小修正:合并既有入队初始化与等价wake计算,复用已安装pako level9静态数据编码,按实际SVG模块图附带许可。已打包的Lobe许可全文保留,原SVG/图标/许可文件、锁文件、依赖、budget与固定资源均未改;不压缩可执行源码。功能修复后1961638,最终1959993,组合减少1645;基线7份gzip静态数据解压字节一致,实际嵌入base64仅减少48,不把未进入标准图的理论收益当最终收益。此前SVG压缩继续留作CW本地独立候选。

保持draft:标准门禁通过,剩余体积/固定资源门禁与独立审计仍阻塞ready。 复用同checkout/工具链已测未修改8467基线:

产物 基线字节 当前字节 新增 原上限 基线超限 当前超限
标准 1959494 1959993 499 1960000 0 0
standalone 3795702 3797330 1628 3600000 195702 197330
GreasyFork 2320196 2322749 2553 2000000 320196 322749

标准仅余7字节。standalone builder成功而verifier超限;GreasyFork Vite生成产物,外层固定数据与体积门禁失败,基线同样失败。生成data SHA与基线完全一致,固定资源已有document.pdfReading缺项;未prepare-resources或换URL。30种子重放、旧消融与187字节清理收益明确保留为10675/98e88历史记录;当前套件复验契约,无重复未变B0。

全部在CW按原资源保护器串行运行,CPU目标60%、worker1、并发1。真实模型/搜索API调用0,无新增权限/依赖/环境,Recovery所有窗口和进程未操作。真实供应商和GPU/WebGPU未测试。源码SHA、原始红/绿例、覆盖率、体积与阶段结果见报告。

@Bistutu

Bistutu commented Oct 9, 2026

Copy link
Copy Markdown
Member

感谢 @ArietidsZ 的贡献!也谢谢你补充了前后对照、回归测试和体积测量报告。我会进一步核查共享冷却、请求并发和隐私上下文的行为变化,并结合验证结果评估是否适合合并。

…vacy

Keep native-batch configuration, recovery and shared real-attempt quota contracts. Capture input sender privacy before awaiting readiness and attach control to the same request.

Preserve the original standard userscript budget with CommonJS determinism and exclusion of unavailable image/area settings; relay the existing video-state query protocol. Validate 606 distinct targeted cases, compile, audit, standard verifier, Chrome/Firefox and manifests. Standalone builds but the original 3,600,000-byte gate fails at 3,816,337 bytes.
Bind the 606 targeted cases, original standard verifier, extension builds and current size ablation to the verified source. Record five distinct gzip hypotheses, unchanged decoded bytes and limits. Retain the original standalone budget failure and historical report bytes.
…nges

Rebase tree on current main while retaining branch history. Include 24 targeted audit cases. Final affected rerun: 93 regression plus 2 fixed image assertions pass; aggregate unique evidence 598/600, with two reproduced baseline stats failures. Narrow types retains two baseline diagnostics, no added diagnostics. No browser/model acceptance or merge.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants