Repository navigation
fix: recover proxy completions sessions when output budget is exhausted - #157673
Conversation
|
🦞👀 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. |
|
The isolated Gateway before/after proof and focused tests pass. Landing is paused because required CI run https://github.com/openclaw/openclaw/actions/runs/36071138464 fails in unchanged src/infra/package-update-npm-pack.ts:7: TS2459, UpdateStepResult is declared locally in update-runner-types.js but not exported. The build-artifacts and check-test-types-core-5 jobs both report this error. No merge will be attempted while required CI is red. |
|
Codex review: needs maintainer review before merge. Reviewed September 25, 2026, 1:12 AM ET / 05:12 UTC (Revision 5). ClawSweeper reviewWhat this changesThe branch makes exhausted thinking-enabled proxy completions enter context-overflow recovery and adds tests for short-budget behavior with thinking on and off. Regression provenancePossible regression — suspected (failure trace). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Current main still sends one-token requests in the reported reasoning-proxy case. The latest branch addresses the prior short-request warning finding, and the recorded Gateway runs support recovery. The maintainer with repository maintain permission accepted the conservative budget threshold. Priority: P1 Review scores
Verification
How this fits togetherThe OpenAI-compatible completions transport turns session history and model settings into a provider request. Its output-budget decision determines whether the agent sends that request or enters the runtime's compaction recovery. flowchart LR
A[Session history and model settings] --> B[Completion request builder]
B --> C{Useful output budget?}
C -- Too small with thinking --> D[Overflow recovery and compaction]
D --> B
C -- Otherwise --> E[Proxy provider]
E --> F[Agent reply]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +9, Tests +98. Total +107 across 3 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep budget sizing in the transport and bounded compaction in the agent runtime, with the existing short-reply and warning behavior protected for nonthinking requests. Do we have a high-confidence way to reproduce the issue? Yes. The captured PR evidence describes repeated baseline Gateway failures on the current one-token path and recovery on the candidate with the same stored session. Is this the best way to solve the issue? Yes. The shared request builder detects the unusable budget before provider I/O, while the existing agent runtime owns compaction and retry. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 8a62a6763531. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
@clawsweeper re-review Narrowed the guard per the compatibility finding: model.reasoning uses the existing sub-16 floor; non-reasoning models preserve all positive short budgets; genuinely exhausted budgets reject for both. Repeated the isolated Gateway red/green after merging repaired main, and the non-reasoning near-cap control returned OK at max_tokens=15 before and after, without compaction. All 62 focused tests pass. Updated evidence is in the PR body. |
|
🦞👀 Re-review progress:
|
|
Addressed the thinking-disabled finding in acd244c by reusing the existing resolved request thinkingEnabled value before budget clamping. A real Gateway turn with a reasoning-capable Qwen-compatible model and thinking off sent enable_thinking=false with max_tokens=15 and returned OK. The existing Qwen policy test now covers thinking-off short replies versus thinking-on overflow for a fixed near-cap system prompt. All 82 focused parameter, reasoning-policy, and recovery tests pass. |
|
@clawsweeper re-review Narrowed to the reported thinking-enabled stall only. Non-reasoning and thinking-off requests now retain main’s existing positive short budgets AND one-token fallback for zero/negative estimates. The broader estimated-budget policy is not part of this fix. Added regression coverage for both fallback cases. Repeated the real Gateway red/green with thinking explicitly enabled: baseline six one-token requests across two failed turns; final candidate compacted the same session and returned NORMAL_REPLY at budget 2048 on recovery and the following turn. All 82 focused tests pass. Updated body documents the final scope. |
|
🦞👀 Re-review progress:
|
|
Final reasoning-only fix and all 82 focused tests pass, including the repeated real Gateway recovery. Landing is paused on fresh CI run https://github.com/openclaw/openclaw/actions/runs/36086261461: check-additional-runtime-topology-architecture reports two Madge cycles outside this diff, one across state database/user-profile modules and one across gateway/server-startup-config-helpers.ts, server-startup-config.ts, and server-startup-secret-diagnostics.ts. No merge or deterministic-failure rerun was attempted. |
|
@clawsweeper re-review Restored the ordinary insufficient_output_budget warning for nonthrowing short requests, with coverage for non-reasoning and thinking-off paths. All 84 focused tests pass after merging repaired main. Maintainer decision (also in the PR body): thinking-enabled requests below the existing 16-token floor enter bounded overflow recovery. The conservative estimate can compact a request the provider tokenizer might have fit; if the prompt cannot be compacted, the turn fails visibly instead of silently looping on one-token reasoning-only replies. This tradeoff is accepted for the reported bug. Non-reasoning and thinking-off behavior, including warnings and one-token fallback, is unchanged. |
|
🦞👀 Re-review progress:
|
|
Merged as 63944b8. Thinking-enabled proxy requests with an exhausted output budget now enter existing bounded compaction recovery instead of looping on one-token reasoning-only replies; non-thinking fallbacks and warnings are preserved. The isolated Gateway reproduced six one-token baseline requests across two failed turns, then recovered with normal 2048-token budgets on the repaired turn and the next turn. All 84 focused tests and required CI passed, with hosted review ready on the merged head. Thanks @name5566 for reporting this. |
Ayaan Zaidi's upstream fix for openclaw#157307, merged to main 2026-09-25, after the 9.6 tag. For an explicit proxy-like openai-completions endpoint, a request whose estimated input left fewer than 16 output tokens was clamped to max(1, ...) and sent anyway; a server with a larger real window prefilled the whole prompt and returned a one-token reasoning-only reply that overflow recovery could not see, so the session stalled at the cap. For a reasoning-capable model with thinking not disabled, the builder now throws a context_length_exceeded error before provider I/O, only when context pressure lowered the requested budget, and the existing bounded overflow recovery compacts and retries. Non-reasoning and thinking-off requests keep the warning and the one-token fallback upstream; the next commit changes that for the fork. Applied with cherry-pick -x. The three files were at the same blobs on this branch and at v2026.9.6 as at the commit's parent (params.ts ff4d379), so it applied clean and each file now equals upstream's blob. Tests ALONE on the branch: openai-completions-params 20/20, params.reasoning 20/20, transport.requests 4/4, run.overflow-context-recovery 45/45. (cherry picked from commit 63944b8)
Fork delta on upstream openclaw#157673 (the previous commit), re-expressed from the fork's c1c8e83bbf4. Upstream refuses a proxy-like openai-completions request whose output budget was clamped below 16 tokens only for a reasoning model with thinking not disabled; non-reasoning and thinking-off requests are still sent, down to max_completion_tokens=1. The bots run qwen3.8-27b with thinking off often, and Alex chose all-models coverage: a sub-floor reply at the cap is a stalled turn in every mode, and only compaction frees room for the next one. The guard now throws upstream's context_length_exceeded error in every mode; the insufficient_output_budget warning went with the only path that reached it. A request that was not clamped (a requested budget that fits) is unchanged. Upstream tests pinned to the fork decision, each with a FORK DIVERGENCE comment: "preserves non-reasoning short budgets..." and "warns when a short non-thinking request proceeds" in openai-completions-params.test.ts, and the thinking-off near-cap lines of the qwen enable_thinking test in params.reasoning.test.ts. From c1c8e83bbf4: its intentionally-short case (15 left, 8 requested, sent as 8) is folded into the pinned non-reasoning test; its other two params cases duplicate upstream's. Its transport and recovery tests are kept and moved to thinking off, the mode upstream still sends. The transport test asserts no request reaches the server and the terminal carries context_length_exceeded. The recovery test builds the candidate with projectProviderError, as the transport assigns it, and passes its text as assistantErrorText, as attempt-recovery does. Found on the way: upstream's refusal text ("Context window exceeded: ...") is matched only by isLikelyContextOverflowError. isContextOverflow and classifyFailoverSignal return false and null for it, and nothing reads the context_length_exceeded code, so recovery depends on attempt-recovery passing the candidate's errorMessage as assistantErrorText, which it does. c1c8e83bbf4's "Context overflow: ..." wording matched all three; upstream's wording is kept here so the delta stays minimal. Tests ALONE: params 20/20, params.reasoning 20/20, transport.requests 5/5, run.overflow-context-recovery 46/46. With the previous commit's params.ts the six fork-behaviour tests fail (3, 1, 1, 1), and the transport test records upstream sending max_completion_tokens=1.
…d the OTel carry A new dated section for the three commits added on top of the deployed 16e061d: what each changes, how it was applied, which upstream tests are pinned to the fork decision, the refusal-text finding (upstream's wording is recognised only by the text heuristic), and the validation run on this tree.
|
Thanks for landing this - it covers every exhausted request our two gateways logged on 09-23 and 09-24 (37, all thinking-enabled skill-review runs). Two follow-ups, filed as #158159 with a PR in #158161:
|
…ed (openclaw#157673) Closes openclaw#157307 ## What Problem This Solves Fixes sessions getting stuck without a useful reply when an OpenAI-compatible proxy prompt consumes its configured context budget. ## User Impact Exhausted thinking-enabled requests enter existing bounded compaction recovery instead of repeatedly sending a one-token output limit. Normal budgets and deliberately short completions that fit remain unchanged. No configuration or migration is required. ## Why This Change Was Made Replace the insufficient-budget warning with a context-overflow error before provider I/O, using the existing 16-token useful-output floor for reasoning-capable models with thinking not disabled, only when context pressure reduces the requested budget. Non-reasoning and thinking-off requests retain the existing clamping and one-token fallback exactly, including when the estimate leaves zero or negative space. This preserves useful short replies while recovering reasoning-only stalls, using existing model.reasoning metadata and the already-resolved request thinking mode rather than a new heuristic. Any broader estimated-budget policy is outside this fix and remains a separate follow-up. Keep the context cap and the payload-aware clamping introduced by openclaw#85889; reuse the diagnostic floor from openclaw#140902. Recovery remains owned by the existing runtime, with its existing attempt limits. Maintainer decision: thinking-enabled requests reduced below the existing 16-token floor enter bounded overflow recovery. The conservative estimate can compact a request the provider tokenizer might have fit; if the prompt cannot be compacted, the turn fails visibly rather than silently looping on one-token reasoning-only replies. Non-reasoning and thinking-off behavior, including the ordinary insufficient-budget warning and one-token fallback, is unchanged. ## Evidence - Real isolated Gateway against a scripted loopback OpenAI-compatible reasoning provider, configured with contextTokens=16384 and maxTokens=2048, with thinking explicitly enabled for the final red/green. Synthetic history filled the session through normal agent turns. - Before: normal requests used max_tokens=2048; the next two turns sent six requests with max_tokens=1, received reasoning-only output, and failed without compaction. - After: the same stored session invoked compaction (summary budgets 1638 and 1024), retried with max_tokens=2048, and returned NORMAL_REPLY. The following turn also returned NORMAL_REPLY at 2048. No one-token request was sent after the fix. - The fixture initially emitted an invalid compaction summary, correctly rejected by the existing quality guard; after matching its required headings and pending ask, recovery completed without editing session state or changing configuration. - Regression cases for exhausted and sub-floor thinking-enabled budgets fail against the original producer (3 failures) and pass with the fix. The useful-floor boundary and an intentional one-token request are preserved. - After merging repaired main, repeated the real Gateway red/green with the narrowed guard: the baseline again sent six one-token requests across two failed turns; the candidate compacted and returned normal 2048-budget replies on recovery and the following turn. - Non-reasoning Gateway control: the same near-cap prompt returned OK with max_tokens=15 on both baseline and candidate, with no compaction. Focused tests also preserve the 1-token boundary. - Thinking-disabled Gateway control: a reasoning-capable Qwen-compatible model with --thinking off sent enable_thinking=false, retained max_tokens=15, and returned OK. The existing Qwen reasoning test now exercises a fixed near-cap system prompt with thinking off versus on. - Focused tests after the final refinement: 20 parameter tests, 20 reasoning-policy tests, and 44 overflow-recovery tests passed (40.57s wall combined after merging repaired main). Full suites were not run locally. Co-authored-by: Ayaan Zaidi <[email protected]>
…imate margin The openai-completions request builder estimates input as chars/4 with a 1.25 safety margin. Against a real tokenizer (Qwen3) that estimate is 1.4-1.6x the true count for prose, code, tool schemas and CJK text, so a fixed prompt that really fills about 65-73% of the context was refused before provider I/O, with nothing for compaction to recover. When the margined estimate leaves no room and thinking is off (or the model is non-reasoning), budget from the unmargined chars/4 estimate instead and refuse only when that also leaves no room. If the unmargined estimate undercounts, the provider's own context-length rejection enters the same overflow recovery. Thinking-enabled requests keep the margined estimate and the 16-token floor from openclaw#157673. The runtime's required-maintenance test now passes unchanged: its foreground requests go out with roughly 700 and 4,400 output tokens instead of triggering an extra overflow compaction. The refusal fixtures move to estimates of at least 1.25x the context, and an explicit one-token request at an exhausted estimate is still sent.
…mates The unmargined fallback only fired once the margined estimate left no room at all, so a non-thinking request whose margined room was 1-15 tokens was still sent with that cap (down to 1, the original one-token defect), and the cap then jumped back up once the margin was fully exhausted. For requests without thinking, budget from the unmargined estimate as soon as the margined estimate leaves fewer than 16 output tokens, and refuse with context_length_exceeded when the unmargined room is also under 16. Every cap that context pressure reduces is now at least 16 tokens, caps fall steadily within each estimate, and refusal is terminal as the prompt grows. Thinking-enabled requests keep the margined estimate and the 16-token floor from openclaw#157673 unchanged. A caller's own maxTokens that fits the room (1, 2, 16) is still sent as requested; only budgets that context pressure cuts are held to the floor. The refusal now says which estimate it used and how many of the 16 tokens remain, instead of "leaves only 1 output tokens" for an exhausted prompt. The margin drop is logged as keep_max_tokens when a caller's cap is honored without clamping, and the insufficient_output_budget warning is removed because no reduced cap under the floor is sent any more.
…an over-long prompt (#158161) * fix(ai): reject exhausted proxy completions budgets in every thinking mode When the estimated input leaves no room for output, the openai-completions request builder falls back to max_completion_tokens=1 and still sends the request. #157673 turned that into a context overflow for thinking-enabled reasoning models; non-reasoning models and thinking-off requests still send the one-token request, which cannot hold a useful reply and comes back cut off by length. Throw the same context_length_exceeded error for those requests when the estimate leaves zero or negative output space, so the existing overflow recovery compacts instead. Positive short budgets (1-15 tokens that fit the estimate) and their insufficient_output_budget warning are unchanged for non-reasoning and thinking-off requests, and deliberately short requested budgets are untouched. Refs #157307 * fix(ai): budget exhausted non-thinking proxy requests without the estimate margin The openai-completions request builder estimates input as chars/4 with a 1.25 safety margin. Against a real tokenizer (Qwen3) that estimate is 1.4-1.6x the true count for prose, code, tool schemas and CJK text, so a fixed prompt that really fills about 65-73% of the context was refused before provider I/O, with nothing for compaction to recover. When the margined estimate leaves no room and thinking is off (or the model is non-reasoning), budget from the unmargined chars/4 estimate instead and refuse only when that also leaves no room. If the unmargined estimate undercounts, the provider's own context-length rejection enters the same overflow recovery. Thinking-enabled requests keep the margined estimate and the 16-token floor from #157673. The runtime's required-maintenance test now passes unchanged: its foreground requests go out with roughly 700 and 4,400 output tokens instead of triggering an extra overflow compaction. The refusal fixtures move to estimates of at least 1.25x the context, and an explicit one-token request at an exhausted estimate is still sent. * fix(ai): hold proxy completions caps to the useful floor on both estimates The unmargined fallback only fired once the margined estimate left no room at all, so a non-thinking request whose margined room was 1-15 tokens was still sent with that cap (down to 1, the original one-token defect), and the cap then jumped back up once the margin was fully exhausted. For requests without thinking, budget from the unmargined estimate as soon as the margined estimate leaves fewer than 16 output tokens, and refuse with context_length_exceeded when the unmargined room is also under 16. Every cap that context pressure reduces is now at least 16 tokens, caps fall steadily within each estimate, and refusal is terminal as the prompt grows. Thinking-enabled requests keep the margined estimate and the 16-token floor from #157673 unchanged. A caller's own maxTokens that fits the room (1, 2, 16) is still sent as requested; only budgets that context pressure cuts are held to the floor. The refusal now says which estimate it used and how many of the 16 tokens remain, instead of "leaves only 1 output tokens" for an exhausted prompt. The margin drop is logged as keep_max_tokens when a caller's cap is honored without clamping, and the insufficient_output_budget warning is removed because no reduced cap under the floor is sent any more. * fix(ai): warn when proxy completions fall back to the unmargined estimate Budgets taken from the unmargined estimate were logged only at debug level, so the warn-level signal operators used to spot prompts at the context cap (the insufficient_output_budget lines) disappeared by default. Log those clamp_max_tokens and keep_max_tokens lines at warn level, with the margined estimate alongside, since the provider may still reject the request. Ordinary clamping stays at debug level. Document the requested-cap rule exactly: the room never counts below one token, so a requested cap of 1 is sent in every mode even when the estimate already exceeds the context, and a prompt that really does is rejected by the provider and enters overflow recovery. Any other requested cap within the room is sent as is, and a cap that context pressure cuts below 16 tokens is refused. Pin the fallback threshold (3,145 characters -> 16 tokens, 3,146 -> 212 at a 1,000-token context), the refusal threshold (3,932 -> 16, 3,933 refused), the refusal wording for both estimates, and the one-token request with thinking enabled. * fix(ai): recover from TGI context rejections through compaction Budgeting from the unmargined estimate lets an undercounted prompt reach the provider, so recovery depends on its rejection reading as an overflow. Hugging Face TGI rejects with HTTP 422 `Input validation error:` and one of two wordings from router/src/validation.rs: "`inputs` tokens + `max_new_tokens` must be <= N" and "`inputs` must have less than N tokens". classifyFailoverSignal returned `format` for both, which stops the runner's compaction, and isContextOverflow matched neither. Both wordings join the assistant and strict failover overflow tables. classifyFailoverSignal, isContextOverflowError and isContextOverflow now return overflow for both; a `max_new_tokens` limit on its own still does not. The corpus rows, the assistant-message rows and the predicate test fail without the table entries (2, 2 and 1 tests).
…an over-long prompt (openclaw#158161) * fix(ai): reject exhausted proxy completions budgets in every thinking mode When the estimated input leaves no room for output, the openai-completions request builder falls back to max_completion_tokens=1 and still sends the request. openclaw#157673 turned that into a context overflow for thinking-enabled reasoning models; non-reasoning models and thinking-off requests still send the one-token request, which cannot hold a useful reply and comes back cut off by length. Throw the same context_length_exceeded error for those requests when the estimate leaves zero or negative output space, so the existing overflow recovery compacts instead. Positive short budgets (1-15 tokens that fit the estimate) and their insufficient_output_budget warning are unchanged for non-reasoning and thinking-off requests, and deliberately short requested budgets are untouched. Refs openclaw#157307 * fix(ai): budget exhausted non-thinking proxy requests without the estimate margin The openai-completions request builder estimates input as chars/4 with a 1.25 safety margin. Against a real tokenizer (Qwen3) that estimate is 1.4-1.6x the true count for prose, code, tool schemas and CJK text, so a fixed prompt that really fills about 65-73% of the context was refused before provider I/O, with nothing for compaction to recover. When the margined estimate leaves no room and thinking is off (or the model is non-reasoning), budget from the unmargined chars/4 estimate instead and refuse only when that also leaves no room. If the unmargined estimate undercounts, the provider's own context-length rejection enters the same overflow recovery. Thinking-enabled requests keep the margined estimate and the 16-token floor from openclaw#157673. The runtime's required-maintenance test now passes unchanged: its foreground requests go out with roughly 700 and 4,400 output tokens instead of triggering an extra overflow compaction. The refusal fixtures move to estimates of at least 1.25x the context, and an explicit one-token request at an exhausted estimate is still sent. * fix(ai): hold proxy completions caps to the useful floor on both estimates The unmargined fallback only fired once the margined estimate left no room at all, so a non-thinking request whose margined room was 1-15 tokens was still sent with that cap (down to 1, the original one-token defect), and the cap then jumped back up once the margin was fully exhausted. For requests without thinking, budget from the unmargined estimate as soon as the margined estimate leaves fewer than 16 output tokens, and refuse with context_length_exceeded when the unmargined room is also under 16. Every cap that context pressure reduces is now at least 16 tokens, caps fall steadily within each estimate, and refusal is terminal as the prompt grows. Thinking-enabled requests keep the margined estimate and the 16-token floor from openclaw#157673 unchanged. A caller's own maxTokens that fits the room (1, 2, 16) is still sent as requested; only budgets that context pressure cuts are held to the floor. The refusal now says which estimate it used and how many of the 16 tokens remain, instead of "leaves only 1 output tokens" for an exhausted prompt. The margin drop is logged as keep_max_tokens when a caller's cap is honored without clamping, and the insufficient_output_budget warning is removed because no reduced cap under the floor is sent any more. * fix(ai): warn when proxy completions fall back to the unmargined estimate Budgets taken from the unmargined estimate were logged only at debug level, so the warn-level signal operators used to spot prompts at the context cap (the insufficient_output_budget lines) disappeared by default. Log those clamp_max_tokens and keep_max_tokens lines at warn level, with the margined estimate alongside, since the provider may still reject the request. Ordinary clamping stays at debug level. Document the requested-cap rule exactly: the room never counts below one token, so a requested cap of 1 is sent in every mode even when the estimate already exceeds the context, and a prompt that really does is rejected by the provider and enters overflow recovery. Any other requested cap within the room is sent as is, and a cap that context pressure cuts below 16 tokens is refused. Pin the fallback threshold (3,145 characters -> 16 tokens, 3,146 -> 212 at a 1,000-token context), the refusal threshold (3,932 -> 16, 3,933 refused), the refusal wording for both estimates, and the one-token request with thinking enabled. * fix(ai): recover from TGI context rejections through compaction Budgeting from the unmargined estimate lets an undercounted prompt reach the provider, so recovery depends on its rejection reading as an overflow. Hugging Face TGI rejects with HTTP 422 `Input validation error:` and one of two wordings from router/src/validation.rs: "`inputs` tokens + `max_new_tokens` must be <= N" and "`inputs` must have less than N tokens". classifyFailoverSignal returned `format` for both, which stops the runner's compaction, and isContextOverflow matched neither. Both wordings join the assistant and strict failover overflow tables. classifyFailoverSignal, isContextOverflowError and isContextOverflow now return overflow for both; a `max_new_tokens` limit on its own still does not. The corpus rows, the assistant-message rows and the predicate test fail without the table entries (2, 2 and 1 tests).
Closes #157307
What Problem This Solves
Fixes sessions getting stuck without a useful reply when an OpenAI-compatible proxy prompt consumes its configured context budget.
User Impact
Exhausted thinking-enabled requests enter existing bounded compaction recovery instead of repeatedly sending a one-token output limit. Normal budgets and deliberately short completions that fit remain unchanged. No configuration or migration is required.
Why This Change Was Made
Replace the insufficient-budget warning with a context-overflow error before provider I/O, using the existing 16-token useful-output floor for reasoning-capable models with thinking not disabled, only when context pressure reduces the requested budget. Non-reasoning and thinking-off requests retain the existing clamping and one-token fallback exactly, including when the estimate leaves zero or negative space. This preserves useful short replies while recovering reasoning-only stalls, using existing model.reasoning metadata and the already-resolved request thinking mode rather than a new heuristic. Any broader estimated-budget policy is outside this fix and remains a separate follow-up. Keep the context cap and the payload-aware clamping introduced by #85889; reuse the diagnostic floor from #140902. Recovery remains owned by the existing runtime, with its existing attempt limits.
Maintainer decision: thinking-enabled requests reduced below the existing 16-token floor enter bounded overflow recovery. The conservative estimate can compact a request the provider tokenizer might have fit; if the prompt cannot be compacted, the turn fails visibly rather than silently looping on one-token reasoning-only replies. Non-reasoning and thinking-off behavior, including the ordinary insufficient-budget warning and one-token fallback, is unchanged.
Evidence