fix(openrouter): use endpoint context limits#86041
Conversation
|
Codex review: passed. Latest ClawSweeper review: 2026-05-24 13:28 UTC / May 24, 2026, 9:28 AM ET. Workflow note: Future ClawSweeper reviews update this same comment in place. How this review workflow works
PR Surface View PR surface stats
Summary Reproducibility: yes. from source and live catalog evidence rather than an authenticated inference turn. Current main reads the top-level PR rating What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. Real behavior proof Risk before merge
Maintainer options:
Next step before merge Security Review detailsBest possible solution: Land the narrow parser and cache-version fix after exact-head checks complete so the linked OpenRouter context-overflow regression can close. Do we have a high-confidence way to reproduce the issue? Yes, from source and live catalog evidence rather than an authenticated inference turn. Current main reads the top-level Is this the best way to solve the issue? Yes. Preferring the endpoint-specific limit while keeping the top-level fallback and invalidating old disk caches is the narrow provider-owned fix. Label justifications:
What I checked:
Likely related people:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 5be62e779b2e. |
|
ClawSweeper PR egg ✨ Hatched: 💎 rare Pearl Shellbean Hatch commandComment Hatchability rules:
Rarity: 💎 rare. What is this egg doing here?
|
|
🦞✅ Source: What merged:
Automerge notes:
The automerge loop is complete. Automerge progress:
|
d193cae to
76fcc36
Compare
Summary: - The branch updates OpenRouter dynamic model capability parsing to prefer `top_provider.context_length`, bump ... sk cache version, adds regression coverage and a changelog entry, and adds script helper declaration files. - Reproducibility: yes. from source and live catalog evidence rather than an authenticated inference turn. Cur ... catalog currently reports a smaller endpoint-specific `top_provider.context_length` for the reported model. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(openrouter): use endpoint context limits - PR branch already contained follow-up commit before automerge: fix(clawsweeper): address review for automerge-openclaw-openclaw-8594… Validation: - ClawSweeper review passed for head 76fcc36. - Required merge gates passed before the squash merge. Prepared head SHA: 76fcc36 Review: openclaw#86041 (comment) Co-authored-by: Andy Ye <35905412+TurboTheTurtle@users.noreply.github.com> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com> Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com> Approved-by: takhoffman Co-authored-by: takhoffman <781889+takhoffman@users.noreply.github.com>
* fix(compaction): preserve partial summary on mid-chain chunk failure (openclaw#82952) * fix(compaction): preserve partial summary on mid-chain chunk failure When summarizing multiple chunks, if a chunk fails after at least one chunk has already succeeded, return the partial summary instead of propagating the error and losing all summarization progress. Abort and timeout errors still propagate immediately. First-chunk failures still rethrow so the existing fallback path runs. Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca> * fix(compaction): use content array for assistant messages to match updated AgentMessage type * fix(compaction): use as-unknown-as-AgentMessage cast for assistant test fixtures --------- Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca> * fix(config): do not suppress recovery retry after failed backup restore (openclaw#85787) maybeRecoverSuspiciousConfigRead unconditionally recorded lastObservedSuspiciousSignature in health state even when restoredFromBackup was false (copyFile failed). The guard at resolveConfigReadRecoveryContext then prevented the same signature from ever being retried, permanently accepting the suspicious config on every subsequent launch. Only record the dedup signature when the backup restore actually succeeded. * fix(openrouter): use endpoint context limits (openclaw#86041) Summary: - The branch updates OpenRouter dynamic model capability parsing to prefer `top_provider.context_length`, bump ... sk cache version, adds regression coverage and a changelog entry, and adds script helper declaration files. - Reproducibility: yes. from source and live catalog evidence rather than an authenticated inference turn. Cur ... catalog currently reports a smaller endpoint-specific `top_provider.context_length` for the reported model. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(openrouter): use endpoint context limits - PR branch already contained follow-up commit before automerge: fix(clawsweeper): address review for automerge-openclaw-openclaw-8594… Validation: - ClawSweeper review passed for head 76fcc36. - Required merge gates passed before the squash merge. Prepared head SHA: 76fcc36 Review: openclaw#86041 (comment) Co-authored-by: Andy Ye <35905412+TurboTheTurtle@users.noreply.github.com> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com> Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com> Approved-by: takhoffman Co-authored-by: takhoffman <781889+takhoffman@users.noreply.github.com> * fix(agents): log warnings instead of swallowing subagent errors (openclaw#82943) * fix: log subagent swallowed errors in hook emission and restore paths Wire createSubsystemLogger into the two silent catch blocks that discard errors during subagent lifecycle: 1. emitSubagentEndedHookOnce (subagent-registry-completion.ts): catch { return false } -> catch (err) { log.warn(...); return false } 2. restoreSubagentRunsOnce (subagent-registry.ts): catch { /* ignore */ } -> catch (err) { log.warn(...) } Both paths now log the error message before continuing, providing a diagnostic trail when hook emission or disk restore fails silently. Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca> * test(agents): keep provider test mocks current --------- Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca> Co-authored-by: Peter Steinberger <steipete@gmail.com> * fix(agents): match runtime policy entries when session provider is empty --------- Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca> Co-authored-by: Sebastien Tardif <SebTardif@ncf.ca> Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com> Co-authored-by: Andy Ye <35905412+TurboTheTurtle@users.noreply.github.com> Co-authored-by: takhoffman <781889+takhoffman@users.noreply.github.com> Co-authored-by: Peter Steinberger <steipete@gmail.com> Co-authored-by: Brian Potter <brian@potterdigital.com>
Summary: - The branch updates OpenRouter dynamic model capability parsing to prefer `top_provider.context_length`, bump ... sk cache version, adds regression coverage and a changelog entry, and adds script helper declaration files. - Reproducibility: yes. from source and live catalog evidence rather than an authenticated inference turn. Cur ... catalog currently reports a smaller endpoint-specific `top_provider.context_length` for the reported model. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(openrouter): use endpoint context limits - PR branch already contained follow-up commit before automerge: fix(clawsweeper): address review for automerge-openclaw-openclaw-8594… Validation: - ClawSweeper review passed for head 76fcc36. - Required merge gates passed before the squash merge. Prepared head SHA: 76fcc36 Review: openclaw#86041 (comment) Co-authored-by: Andy Ye <35905412+TurboTheTurtle@users.noreply.github.com> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com> Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com> Approved-by: takhoffman Co-authored-by: takhoffman <781889+takhoffman@users.noreply.github.com>
Summary: - The branch updates OpenRouter dynamic model capability parsing to prefer `top_provider.context_length`, bump ... sk cache version, adds regression coverage and a changelog entry, and adds script helper declaration files. - Reproducibility: yes. from source and live catalog evidence rather than an authenticated inference turn. Cur ... catalog currently reports a smaller endpoint-specific `top_provider.context_length` for the reported model. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(openrouter): use endpoint context limits - PR branch already contained follow-up commit before automerge: fix(clawsweeper): address review for automerge-openclaw-openclaw-8594… Validation: - ClawSweeper review passed for head 76fcc36. - Required merge gates passed before the squash merge. Prepared head SHA: 76fcc36 Review: openclaw#86041 (comment) Co-authored-by: Andy Ye <35905412+TurboTheTurtle@users.noreply.github.com> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com> Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com> Approved-by: takhoffman Co-authored-by: takhoffman <781889+takhoffman@users.noreply.github.com>
Summary: - The branch updates OpenRouter dynamic model capability parsing to prefer `top_provider.context_length`, bump ... sk cache version, adds regression coverage and a changelog entry, and adds script helper declaration files. - Reproducibility: yes. from source and live catalog evidence rather than an authenticated inference turn. Cur ... catalog currently reports a smaller endpoint-specific `top_provider.context_length` for the reported model. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(openrouter): use endpoint context limits - PR branch already contained follow-up commit before automerge: fix(clawsweeper): address review for automerge-openclaw-openclaw-8594… Validation: - ClawSweeper review passed for head 76fcc36. - Required merge gates passed before the squash merge. Prepared head SHA: 76fcc36 Review: openclaw#86041 (comment) Co-authored-by: Andy Ye <35905412+TurboTheTurtle@users.noreply.github.com> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com> Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com> Approved-by: takhoffman Co-authored-by: takhoffman <781889+takhoffman@users.noreply.github.com>
Summary: - The branch updates OpenRouter dynamic model capability parsing to prefer `top_provider.context_length`, bump ... sk cache version, adds regression coverage and a changelog entry, and adds script helper declaration files. - Reproducibility: yes. from source and live catalog evidence rather than an authenticated inference turn. Cur ... catalog currently reports a smaller endpoint-specific `top_provider.context_length` for the reported model. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(openrouter): use endpoint context limits - PR branch already contained follow-up commit before automerge: fix(clawsweeper): address review for automerge-openclaw-openclaw-8594… Validation: - ClawSweeper review passed for head 76fcc36. - Required merge gates passed before the squash merge. Prepared head SHA: 76fcc36 Review: openclaw#86041 (comment) Co-authored-by: Andy Ye <35905412+TurboTheTurtle@users.noreply.github.com> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com> Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com> Approved-by: takhoffman Co-authored-by: takhoffman <781889+takhoffman@users.noreply.github.com>
Summary: - The branch updates OpenRouter dynamic model capability parsing to prefer `top_provider.context_length`, bump ... sk cache version, adds regression coverage and a changelog entry, and adds script helper declaration files. - Reproducibility: yes. from source and live catalog evidence rather than an authenticated inference turn. Cur ... catalog currently reports a smaller endpoint-specific `top_provider.context_length` for the reported model. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(openrouter): use endpoint context limits - PR branch already contained follow-up commit before automerge: fix(clawsweeper): address review for automerge-openclaw-openclaw-8594… Validation: - ClawSweeper review passed for head 76fcc36. - Required merge gates passed before the squash merge. Prepared head SHA: 76fcc36 Review: openclaw#86041 (comment) Co-authored-by: Andy Ye <35905412+TurboTheTurtle@users.noreply.github.com> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com> Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com> Approved-by: takhoffman Co-authored-by: takhoffman <781889+takhoffman@users.noreply.github.com>
Summary: - The branch updates OpenRouter dynamic model capability parsing to prefer `top_provider.context_length`, bump ... sk cache version, adds regression coverage and a changelog entry, and adds script helper declaration files. - Reproducibility: yes. from source and live catalog evidence rather than an authenticated inference turn. Cur ... catalog currently reports a smaller endpoint-specific `top_provider.context_length` for the reported model. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(openrouter): use endpoint context limits - PR branch already contained follow-up commit before automerge: fix(clawsweeper): address review for automerge-openclaw-openclaw-8594… Validation: - ClawSweeper review passed for head 76fcc36. - Required merge gates passed before the squash merge. Prepared head SHA: 76fcc36 Review: openclaw#86041 (comment) Co-authored-by: Andy Ye <35905412+TurboTheTurtle@users.noreply.github.com> Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com> Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com> Approved-by: takhoffman Co-authored-by: takhoffman <781889+takhoffman@users.noreply.github.com>
Makes #85949 merge-ready for the ClawSweeper automerge loop.
The edit pass should inspect the live PR diff, review comments, and failing checks; rebase if needed; keep the contributor branch credited; and stop only when validation is green or an external blocker is proven.
ClawSweeper 🐠 replacement reef notes:
Inherited issue-closing references from the source PR:
Fixes #85921
Co-author credit kept:
fish notes: model gpt-5.5, reasoning high; reviewed against d193cae.