Repository navigation
Conversation
|
@mosco98 is attempting to deploy a commit to the Evidence Team on Vercel. A member of the Team first needs to authorize it. |
mosco98
force-pushed
the
fix/html-query-timeout
branch
from
November 19, 2026 20:35
c3afc68 to
37d9508
Compare
This branch has not been deployed
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.
Fixes #3367
Problem
evidence.query(name)in an{% html %}block fails withsandbox request "query" timed out after 10000mswhen the query takes longer than 10 seconds. Native components reading the same query keep waiting and paint when the response arrives.As the issue suspected, the SDK calls
host.requestwithout a timeout, so queries inherit the sandbox RPC's default. That default is the oldcapture-pngceiling, and it's the only limit on query duration here: the 4s inwait-for-query.tsonly covers finding the query by name.Fix
SandboxRpc.requestacceptstimeoutMs: null, which sets no timer. Other requests keep the 10s default.evidence.querypasses it inevidence-sdk.ts.map-evidence-sdk.tsgets the same change, ascustom_mapmakes the same call.Pending requests aren't left behind when a block goes away, because
dispose()still rejects them.Behaviour change
If a query never gets a response, the block now keeps waiting rather than showing an error after 10s. It shows no loading state during that time, which is what #3362 covers.
Testing
Chromium with a throwaway project containing an inline
{% html %}block, withPOST /api/querymocked to respond after 12s:sandbox request "query" timed out after 10000mspnpm testpasses, including 2 new tests inrequest-response.test.ts:nullwaits past the default, anddispose()rejects a request with no timeout.custom_mapis covered by a unit test on the request options only. Neither it nor custom components were checked in a browser.pnpm check:coreis clean.clireports one error locally, a missing generated file (./docs-bundle.generated) imported bysrc/lib/docs/index.ts, which this PR doesn't touch.cli/src/routes/layout.css, which doesn't exist here.