Repository navigation
Conversation
This was referenced Nov 10, 2026
leehack
added a commit
that referenced
this pull request
Nov 10, 2026
Contributor
|
Chat app preview removed for |
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.
Summary
getContextSizenow returns the executor limit the load probe found (_reportedContextTokens) instead of the requestedModelParams.contextSize, which a fixed KV cache clamps (Qwen3 0.6B on WASM CPU: requested 65536, enforced 4096). Falls back to the requested size when no probe result exists.Production-readiness scope
engine.getContextSize()on LiteRT-LM WebwithTextHistory()loads reports the enforced limit.Completeness checklist
CHANGELOG.mdand website recent-releases) updated; no skills or support-matrix claim changes.PR type guidance
getContextSizereading the requestedModelParams.contextSizewhile the executor enforces its own clamped copy; regression test above; affected platform is LiteRT-LM Web.Test Plan
dart format --output=none --set-exit-if-changed .dart test -p chrome test/unit/backends/litert_lm/litert_lm_backend_web_test.dart(172 passed)coverage-lib: N/A, the file is Web-only and not in VM coverageMatrix Evidence
static-format-analyzeroot-chrome@litert-lm/coreenginehigh-risk-exact-head-independent-qaReview Notes
High-risk regression review
backendRuntime)_reportedContextTokens ??term fails the new test (4096 expected, 65536 returned)litert-lm-web-truncationscenario was not re-run.