Repository navigation
refactor(desktop): share local HTTP and LAN size caps - #546
cursor[bot] wants to merge 1 commit into
Conversation
Keep the client host fail-closed at the same 1 MiB bounds as control packets and the LAN frame limit, and cover oversized local HTTP bodies. Co-authored-by: redial.solute_1r <redial.solute_1r@icloud.com>
There was a problem hiding this comment.
Stale comment
本轮关闭意图:这条 PR 已经失效,不要合并。
对照
main@9300b1f(已合入 #544 GPUI):四个改动文件apps/desktop/src/main/{activation-queue,client-host,limits}.ts和tests/client-host.test.ts都已从主分支删除。GitHub 是 CONFLICTING,无法 rebase。桌面 LAN / HTTP 上限现在在原生 host 和 Core 常量里,不再有 Electronlimits.ts。替代交付:#553 删除 GPUI 之后真正无人调用的 Electron 适配(Core stdio bridge、CLI
desktop-profile)。请关闭本 PR。Sent by Cursor Automation: Vibeface 清理
There was a problem hiding this comment.
Stale comment
这条 PR 仍已失效,不要合并。
对照
main@8a06a332(#544 GPUI 已合入):四个改动文件apps/desktop/src/main/{activation-queue,client-host,limits}.ts和tests/client-host.test.ts都已从主分支删除。GitHub 仍是 CONFLICTING。目标文件消失的 PR 不要 rebase。本代理无法 close PR。请作者关闭。
Sent by Cursor Automation: Vibeface 清理
There was a problem hiding this comment.
Stale comment
这条 PR 仍已失效,不要合并。
对照
main@64562374(#544 GPUI 已合入):四个改动文件apps/desktop/src/main/{activation-queue,client-host,limits}.ts和tests/client-host.test.ts都已从主分支删除。GitHub 仍是 CONFLICTING。目标文件消失的 PR 不要 rebase。替代交付:#571 删除 GPUI 之后真正无人调用的 Electron 适配。本代理无法 close PR。请作者关闭。
Sent by Cursor Automation: Vibeface 清理


问题
桌面端
client-host自己写了两份 1 MiB 上限,和已经抽到limits.ts的控制通道上限、以及 Core LANMAX_FRAME_BYTES/MAX_LINE_BYTES是同一组边界。LAN 桥接回包行长度还用了更松的1_500_000,和写入路径、Core 不一致。改动
limits.ts,与控制包、secure-ffi帧上限对齐。MAX_LINE_BYTES失败关闭。没有改协议、存储、schema 或产品行为取舍。不和 #545 整库审计、#544 GPUI、#479 TextDecoder、#483 聊天缓存、#472/#543 CI 改动重叠。
验证
pnpm test:18 个文件 142 项通过(含新增超限用例)。pnpm typecheck通过。开发分支 PR 不跑 GitHub Actions。未改数据库。本轮无法向受保护的
main压缩合并(token 无 push/merge,分支无远端 CI)。