Repository navigation
fix(qa): ignore appended prompt updates when selecting tasks - #198177
Merged
Merged
Conversation
Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]>
Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]>
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. |
Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]>
Contributor
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
Check authored history and current runtime context while permitting retained snapshots from earlier turns. Keep system text in scope and preserve the original per-channel-peer fixture and assertion arguments. Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]>
Assert each captured compaction request is defined before passing it to historyWindow, satisfying indexed-access types without weakening history checks. Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]>
Collaborator
Author
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
fuller-stack-dev
added a commit
that referenced
this pull request
Nov 13, 2026
* test(qa): find built Gateway chunks by exported bindings The Telegram model-picker replacement proof located its hashed dist chunks by whitespace-sensitive export text. #197801 (d8eca04) switched the build to compact codegen, so chunks now read `export{startGatewayServer,truncateCloseReason}` and the markers no longer match: the case failed with "Could not resolve built prepared-model-runtime- module" before starting a Gateway. Parse the candidate chunks and match the names the bootstrap script imports, so formatting, export order and unrelated exports no longer decide which module is found. Product behavior is unchanged; the case passes again with its assertions untouched. * test(qa): read the whole current turn in timeout-recovery mock The mock provider in the timeout-recovery subagent proof treated the last Responses input item as the current turn. #198100 (bf0b800) pins the system prompt on every route and appends prompt updates after the turn's input, so the completion event was no longer last. The mock answered the delivery turn as a plain retry and the reply sequence assertion failed, although the Gateway still delivered the child completion once. Read everything after the previous assistant reply, the same rule #198177 applied to the other subagent prompt tests. Assertions are unchanged.
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 14, 2026
…w#198177) * fix(qa): ignore appended prompt updates when selecting tasks Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]> * test(gateway): scope subagent prompt assertions to the current turn Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]> * style(qa): format prompt-update routing regression Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]> * test(gateway): scope account history checks to active context Check authored history and current runtime context while permitting retained snapshots from earlier turns. Keep system text in scope and preserve the original per-channel-peer fixture and assertion arguments. Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]> * test(gateway): narrow captured compaction requests before parsing Assert each captured compaction request is defined before passing it to historyWindow, satisfying indexed-access types without weakening history checks. Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]> --------- Co-authored-by: obviyus <[email protected]> Co-authored-by: steipete <[email protected]>
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 14, 2026
* test(qa): find built Gateway chunks by exported bindings The Telegram model-picker replacement proof located its hashed dist chunks by whitespace-sensitive export text. openclaw#197801 (2721e3d) switched the build to compact codegen, so chunks now read `export{startGatewayServer,truncateCloseReason}` and the markers no longer match: the case failed with "Could not resolve built prepared-model-runtime- module" before starting a Gateway. Parse the candidate chunks and match the names the bootstrap script imports, so formatting, export order and unrelated exports no longer decide which module is found. Product behavior is unchanged; the case passes again with its assertions untouched. * test(qa): read the whole current turn in timeout-recovery mock The mock provider in the timeout-recovery subagent proof treated the last Responses input item as the current turn. openclaw#198100 (709602d) pins the system prompt on every route and appends prompt updates after the turn's input, so the completion event was no longer last. The mock answered the delivery turn as a plain retry and the reply sequence assertion failed, although the Gateway still delivered the child completion once. Read everything after the previous assistant reply, the same rule openclaw#198177 applied to the other subagent prompt tests. Assertions are unchanged.
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
Two main failures in run https://github.com/openclaw/openclaw/actions/runs/43385708900 follow #198100 (
bf0b8002c2), which made appended user-role "System prompt update" messages normal:server.subagent-prompt-recent.gateway.test.tsasserted that the entire later request lacked## Active Subagents. Earlier runtime snapshots now legitimately stay in history.User Impact
None at runtime; QA mock and test changes only.
Why This Change Was Made
Neither change reverts #198100 or weakens what the scenarios assert.
Evidence
f552a0b889042c65dde5ef0bd011915caada0120, CI run 43405924002, attempt 1: all 80 jobs completed. The changed mock routing regression, both recent-subagent cases and both account-history cases pass. Test typechecks, lint andsecurity-fastpass.checks-node-changed-17fails the timeout-recovery child-completion assertion atgateway-timeout-recovery-subagent.e2e.test.ts:375:49(parent/parent instead of parent/child);checks-node-changed-8fails Telegram fixture bootstrap withCould not resolve built prepared-model-runtime- moduleatresolveBuiltModule:234:9. The aggregateopenclaw/ci-gatefails downstream; CI is not green.Worked on by
Work sessions
Linked for team reference; these sessions aren’t public.