Repository navigation
revert: skills-used full-transcript scan on every chat history page (#196065) - #200159
Merged
Merged
Conversation
This reverts commit 3038e2d.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
November 16, 2026 15:43
Contributor
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. |
vincentkoc
added a commit
that referenced
this pull request
Nov 16, 2026
…tgres-compaction-watched-prompt-20261116 * commit '9e810f7101557b006d5ff223d955f14dc43329f0': (23 commits) chore(ui): refresh control ui locales (#200164) fix(update): stop reporting unset git config keys as failing checks (#200153) test: consolidate redundant coverage (198793, part 2) (#198936) revert: skills-used full-transcript scan on every chat history page (#200159) refactor(sessions): follow the chat by key for stored delivery references (#200099) fix(update): bridge 2026.11.5-beta.4 updaters (#200152) fix(gateway): avoid filesystem stalls during catalog refresh (#200136) fix(ci): match update refusal probe to selected candidate (#200043) fix(agents): keep read-only steering carriers when publishing suppressed user envelopes (#200156) test: consolidate suites while retaining recovery owners (#198933) test: consolidate redundant coverage (198789, part 2) (#198932) refactor(cli): consolidate camera command tests (#200144) fix(cli): avoid initializing provider runtime during cleanup (#200139) fix(ui): show mobile destinations without the drawer exit delay (#198879) chore(ui): refresh control ui locales (#200146) fix(knowledge): keep historical claims distinct and reject changed retries (#200140) fix(ui): align dropdown arrows on mobile New Session improve(sessions): archive inactive transcripts by default (#199899) refactor(agents): own background commands and yield waits by the chat (#200097) fix(models): guessed non-chat models leave the default picker instead of being refused (#200102) ...
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 17, 2026
…penclaw#200159) Reverts openclaw#196065: its first-page chat-history skills-used read scanned the full transcript on every chat open. On Team (5b26047) that held the session actor 55-60 s about once a minute on a 36k-event session, freezing transcript appends, pendingInputs mutations and subagent deliveries. Production containment, merged at pinned head 0151bc7 after local typecheck (core, UI, scripts), lint/ratchet guards, Codex review clean and 65 green / 0 failed CI checks; remaining long CI continues post-merge. Original feature by @jacobtomlinson; a bounded re-land (per-run skillsUsed facts, no full scan) follows.
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.
What Problem This Solves
Production regression on the Team Gateway right after deploying
ade42165(2026-11-16 07:36 PST). #196065 madereadChatHistoryPage(src/gateway/server-methods/chat-history-pages.ts:177) callreadChatHistorySkillLoadson every first history page (offset 0, no messageId). That runsreadSessionTranscriptSummaryAsync(scope, { kind: "skills-used" }), a single deferred read that visits and prepares visibility for every message in the session's transcript.On Team, a session with 36,428 transcript events took 55.2 s (07:38:38) and 58.9 s (07:39:46) of SQL per scan. Clients re-request first pages after a restart and on every chat open, so the scan repeated about once a minute. Each time, the session actor was held and its live transcript appends queued 48–59 s. Restart-resume for
agent:roboclaw:maintimed out (140 s) during this window.Why This Change Was Made
This is containment: a clean
git revertof #196065 (no later commits touch its files). It restores the previous history-page cost on the default chat-open path. A bounded re-land is being worked on separately: an incremental skills-used inventory recorded at append time or as a session fact, or a bounded read only when the details pane opens. Reverting first keeps the large-session write freeze off production meanwhile.User Impact
Opening chat history no longer triggers a full-transcript scan, and large sessions' writes stop freezing. The "skills used" section in conversation details goes away until the bounded version lands.
Evidence
ade42165:sessions.history.readreaderOperationsessions.history.skills-used, sqlMs 55,224 (07:38:38 PST) and 58,930 (07:39:46 PST); reservation queue waits up to 59,131 ms onsession.actor.appendTranscriptEvent.git revert 3038e2d37d79capplies cleanly onorigin/main.node scripts/check-changed.mjson the revert: see the PR checks; local run below.Original feature credit: @jacobtomlinson (#196065). The revert is not a judgment on the feature, only on the unbounded read it added to the default chat-open path.