What changed
SmartHopper 2.0.0 adds a configurable timeout and improves error handling across all AI components. Users can now set per-request timeouts and cancellation behavior through the AI Settings component.
How to test
Tests
Milestone: B - SmartHopper 2.0.0
Parent: #526
Note: This test was AI-written by Devin. I apologize for any errors, and I would appreciate it if you could let me know in the comments.
What changed
SmartHopper 2.0.0 adds a configurable timeout and improves error handling across all AI components. Users can now set per-request timeouts and cancellation behavior through the AI Settings component.
How to test
Tests
Default timeout: Place an AI component and run a prompt without any custom timeout. Verify the request completes normally within a reasonable time.
Custom timeout - short: Place an "AI Settings" component. Set Timeout to 1 second. Wire to an AI component. Submit a complex prompt. Verify the request times out quickly with a clear timeout error message.
Custom timeout - long: Set Timeout to 300 seconds. Submit a prompt. Verify the request is allowed enough time and completes successfully.
Cancellation: Start an AI request, then set the Run input to
falsemid-request. Verify the request is cancelled gracefully - no crash, no hanging.Network error handling: Disconnect from the internet (or use an invalid API key). Submit a prompt. Verify the component shows a clear error message about the network/auth issue (not an unhandled exception).
Rate limit handling: If possible, trigger a rate limit by sending many rapid requests. Verify the component reports the rate limit error clearly.
Milestone: B - SmartHopper 2.0.0
Parent: #526
Note: This test was AI-written by Devin. I apologize for any errors, and I would appreciate it if you could let me know in the comments.