Change global timeout to specific #243
Merged
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.
Note
Description
This PR refactors HTTP request timeout configuration in the Base44 CLI by removing the global 3-minute timeout from the base HTTP client and adding operation-specific timeouts to individual API calls. This provides better control over timeout behavior for different operations - shorter timeouts for quick operations like entity and agent syncs (1 minute), longer timeouts for site deployments (3 minutes), and no timeout for function deployments which can take indefinite time.
Related Issue
None
Type of Change
Changes Made
timeout: 180_000(3 minutes) frombase44Clientinsrc/core/clients/base44-client.tstimeout: 60_000(1 minute) to entity sync API call insrc/core/resources/entity/api.tstimeout: 60_000(1 minute) to agent push API call insrc/core/resources/agent/api.ts120_000tofalse(no timeout) insrc/core/resources/function/api.tstimeout: 180_000(3 minutes) to site deployment API call insrc/core/site/api.tstests/core/agents.spec.tsto verify timeout parametersTesting
npm test)Checklist
Additional Notes
This change improves timeout handling by:
The function deployment timeout was changed to
false(unlimited) because backend function compilation and deployment can take variable amounts of time depending on complexity and dependencies.🤖 Generated by Claude | 2026-02-12 21:45 UTC