Repository navigation
test(research): expect lifecycle-only changes to keep transcript jobs - #200245
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Contributor
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
#200099 made deep-research job views and their view token follow the transcript (session id) instead of the lifecycle revision, so an edit or rewind keeps the conversation's research visible. The Gateway routing test still expected a lifecycle-only change to retire those jobs. Assert retention there instead, and move the retired-job denial checks onto the reset that changes the session id.
jalehman
force-pushed
the
test/deep-research-lifecycle-retention
branch
from
November 16, 2026 20:40
79f4995 to
c27da2a
Compare
jalehman
enabled auto-merge (squash)
November 16, 2026 20:43
Contributor
Author
|
Merged via squash auto-merge.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 17, 2026
…openclaw#200245) openclaw#200099 made deep-research job views and their view token follow the transcript (session id) instead of the lifecycle revision, so an edit or rewind keeps the conversation's research visible. The Gateway routing test still expected a lifecycle-only change to retire those jobs. Assert retention there instead, and move the retired-job denial checks onto the reset that changes the session id.
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.
Related: #200099
What Problem This Solves
Fixes:
test/plugins/deep-research-routing.gateway.test.tsfails onmain("expected true to be false" at the lifecycle-only read) because it still expects an edit or rewind to hide a conversation's research jobs.User Impact
No user-visible change. This is test-only. It aligns the Gateway routing test with #200099 and stops this failure from showing up on unrelated PRs.
Why This Change Was Made
#200099 (edbc5bc) made deep-research job views follow the transcript instead of the lifecycle revision. It lists "Deep-research jobs disappear from the chat after an edit" among the bugs it fixes, and its commit says "Deep-research job views drop the revision compare; the job store stays per transcript".
view-state.tsno longer compareslifecycleRevision, andview-api.tshashes the view token from the session id alone. The test still asserted the old lifecycle fencing.For a lifecycle-only change that keeps the same session id, the test now asserts that the transcript's jobs stay visible:
result/statusstill work, and a repeated model start returns its existing job.The retired-job denial checks (empty list, stale-token start rejected, model-tool
result/status/resume/canceland viewresume/canceldenied) now run after the reset that changes the session id, for every earlier job. Foreign-user, role-revocation and cross-session denials are unchanged.Evidence
Red before the change: the file under CI's pinned Bun (
1.4.4-canary.1+191755ec1) fails 1 / 3 passed at the line-839 assertion. Earlier triage reproduced this 3 of 3 on maina0423637196fand964ab5223098.Green after the change: 3 of 3 runs with the CI command below (4/4 tests each, 78–83 s), plus
pnpm test test/plugins/deep-research-routing.gateway.test.ts --maxWorkers=1(4/4).oxfmt --check,oxlint,pnpm check:test-types,check:test-lines-ratchet(net +22),check:line-cap-ratchetandcheck:max-lines-ratchetpass.Independent review: no P0–P2 findings.
Note: current
main(9e66164c0ce4and later) does not compile under the test runner.src/agents/auth-profiles/oauth-refresh-peers.tsimportsresolveIdentityPathViaExistingAncestorfrominfra/boundary-path.js, but refactor(paths): keep identity lookup imports passive #200203 moved it toinfra/path-existence.js. The local runs above used a one-line uncommitted import shim for that. This PR does not change that file, so any CI failures from that break are inherited.🦞 Made with OpenClaw