Repository navigation
perf(hub): 聊天页轮询 ETag/304 + >256KB 正文 gzip 1 级 - #3801
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
Author
|
按你的三条改完(commit 1. 114KB(30 条)四级实测2. 三档按大小,不再区分带不带键改动点在 3. 「很少变」的调用方显式要高压缩 + 进缓存 —— 我选这种,理由如下关于「16MB 上限会不会被挤掉」:旧实现在「带键」下所有条件响应都会进缓存,聊天每来一条消息就换新键(≈114KB 一份)⇒ 十几份就能把需求表顶出去;现在缓存准入改成显式 opt-in,这个问题从根上不存在了(不是靠调大上限)。 测试没变(同一套 conditional-poll-etag-http) |
vansin
force-pushed
the
feat/tasks-conditional-poll
branch
from
November 23, 2026 04:57
d4dfd7f to
5c77a2e
Compare
vansin
added a commit
that referenced
this pull request
Nov 24, 2026
…h current code (#3860) * fix(tests): bring the #5402 B-group suites back in line with current code - test697: pin the exact non-Codex runtime set (antigravity-acp joined in #3670) - test635: the preread mutation targeted ensureGlobalAnetConfig, removed on purpose in #3627; guard the removal instead. Writer mutation: match the failing test by name (count moved 3 -> 2) - test638: image lacked agent-node/package.json + deps and docs/rest-route-table.json read by three server tests - test519: proxy forwarded Content-Encoding: gzip with an already decompressed body (ZlibError) once the Hub gzips /api/nodes (#3801) - test2123: node-permissions schema check is dialect-aware on PostgreSQL; agent-teams byte-identity check now names the body that changed Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(tests): test638 copies the tracked package-lock.json; test635 guard ignores comments - test638: agent-node/bun.lock is not tracked, so the image build failed ("/agent-node/bun.lock: not found"); use the tracked package-lock.json. - test635: the global-config guard matched the comment that explains the removal; match calls only, skipping comment lines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(agent-teams): put the changed keys on the error's first line The PostgreSQL ladder (test2123) prints only the first line of an error, so "node config changed after team operations" came without the diff. The first line now lists each changed top-level key as before -> after. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(agent-teams): report the node config error instead of diffing two errors On PostgreSQL (test2123) both node-config reads were error bodies differing only in the random error_id, so GET /api/nodes/:id/config fails there. The test now fails with that error's text on its first line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: ANet负责人 <agent@anet.sh> 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.
聊天页三条轮询的条件请求 + 大正文压缩降级(PR-B,接 #3800 之后)。文中所有数字都是单次测量(线上库只读单条查询 / 本地合成表),不是压测;上线后以 stall 归因的线上数为准。
改动
ETag = 响应体 sha256 的前 27 位(
conditionalJson既有实现),所以任何会改变正文的状态都必变:task 的 status/result/late_replies、user_inbox 的 acked、created_at 等。测试:
server/src/conditional-poll-etag-http.test.ts(真 HTTP)gzip 级别实测(单次测量,供你定阈值)
字段占比(30 条一页,仅报数据不改字段)
预期效果