Repository navigation
app: reject oversized scroll deltas before integer conversion - #3470
Merged
ashhart merged 2 commits intoNov 18, 2026
Merged
Conversation
AIFlowML
force-pushed
the
aiflow/fix-scroll-delta-overflow
branch
from
November 16, 2026 09:23
8795bf2 to
1cf7fbe
Compare
AIFlowML
marked this pull request as ready for review
November 16, 2026 09:27
Owner
|
Thanks @AIFlowML. Rounding first and checking against the 200-line limit before converting to Nothing more is needed from you. It's in our landing queue.
|
ashhart
force-pushed
the
aiflow/fix-scroll-delta-overflow
branch
from
November 18, 2026 17:04
1cf7fbe to
d2b5095
Compare
Owner
|
Thank you @AIFlowML. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
joshuaswarren
pushed a commit
to joshuaswarren/TensorFold
that referenced
this pull request
Nov 19, 2026
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 this changes
A scroll request with a large finite delta, such as
dx: 1e100, currently traps the native computer helper while converting the value toInt. The parser now checks the rounded floating-point value against its existing ±200-line limit before converting it, so these requests returnbad_requestand the helper stays alive. Valid values keep their existing rounding and limits.main, basee7e24243d63e232b05d4892df4fa01c9a2d6c70b; 1 contribution commit.atc overlap --json: run after the final revision; broad coverage is explicitly incomplete (PR/file/time limits). Supplemental coverage at 2026-11-16T09:22:11.895781+00:00 inspected all 416 open PRs, with complete file pagination and previous filenames for 37 large/renamed PRs. Real merge checks against current main, the other 13 contribution heads and overlapping external fix(studio): open the model picker from Planning only #3357, app: pin nested repositories and refuse unprotected worktrees in the Linux sandbox #3364 and fix(app): don't open a blank Thread view for a missing ticket thread #3393 all pass (238/238 checks across this portfolio). Our own cumulative composition passes 36/36 focused files. No known conflicts; future upstream changes require a fresh check.Checks on this head
Verified 16 November 2026, 16:25 Asia/Bangkok. Base for this PR:
e7e24243d63e232b05d4892df4fa01c9a2d6c70b. The current rebase has the byte-identical complete app tree of previously published8795bf204a37dab025abdcc20f060931fa7d675b(162f609c8ddf00f29fc4c9ccc8539591a2982799). Earlier full-suite/build/mobile receipts below remain tied to their recorded measured revisions; focused tests, types, formatting and preflight were repeated on this head. Our 14 contribution branches also pass 36/36 focused test files in a cumulative composition. This is a focused compatibility run, not a full combined-suite result.1cf7fbebac2c05ca5ff39fa8d0ae9c92a416bbe6.python3 tools/pr_check.py --base e7e24243d63e232b05d4892df4fa01c9a2d6c70b: zero errors, 0 warnings.node scripts/computer-request-parser.test.mjs: 1/1 file passes on macOS, no skips. It compiles the actual production parser into a parse-only probe; no computer input is executed. On the original source, the firstdx: 1e100case terminates with SIGTRAP and the test exits nonzero. On the fix, both axes reject huge positive/negative finite values,Int.min, out-of-bounds rounding, booleans and strings with a single JSON error reply. Positive controls cover ±200, rounding, a missing axis and zero rejection.node scripts/build-computer-helper.mjs: native arm64 helper builds; 248/248 self-checks pass. The full runner's private-data scan passes.swift test --package-path app/native/computer-use/ComputerUseCheckspasses 6/6 tests. A pinned Swift 6.2.3 Linux ARM64 parse-only probe rejects 10 oversized deltas and accepts two valid controls without crashing.npm test: 855/856 files pass, one inherited failure, no runner skips.electron/agent/sandbox-git-control.test.tsfailsgit commit still works, also reproduced on unchanged upstream. No sandbox code or test changed.npm run typecheck,npm run build,npm run verify:mobile,git diff --checkandzig fmt --check build.zig zig: pass.5fff2d38d26c1aa505e2b6efab8cc7ce0bdd2474; the final rebase has a byte-identical app tree. The focused regression, types/build/mobile and PR checker were repeated on the head above. Composition receipts use that original app tree plus app: test computer-use parsing on Linux with Swift Testing #3465 headce68d85fa67e8261a36400ae1a1d04a048e1ab67.success; App and mobile checks:success; No GPU:success. All 12 applicable upstream checks passed on this head. The two scheduled nightly jobs were skipped.Receipt
d2b37227a8b4431a71d87bf093786aadcfa35b62, head above; Apple M5 Max, 128 GB, macOS 27.2, Swift 6.4.2, Node 22.23.3/npm 10.9.8. Linux ARM64 uses official Swift 6.2.3 Noble image pinned atsha256:6dd90eb2359663a2cde8f03e9951f488b23134b3b8fce20e9dcb6cada75dd803. Zig 0.17.0 for the formatter; backend/checkpoint n/a.tools/bench_concurrent.py --alone --serialortoken_shaagainst"draft": false: n/a; no inference change.tools/bench_openai.py: n/a; no inference change.Checklist
Igor Lessio - AIFLOW LABS