Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Fixing /sse support#12

Merged
geelen merged 4 commits intomainfrom
cf-agents-tests
Jul 1, 2025
Merged

Fixing /sse support#12
geelen merged 4 commits intomainfrom
cf-agents-tests

Conversation

@geelen
Copy link
Collaborator

@geelen geelen commented Jun 30, 2025

No description provided.

geelen added 4 commits June 30, 2025 21:57
…rt testing

- Add transport type dropdown to inspector UI (auto, HTTP, SSE) with session storage persistence
- Update test framework to support transport type selection in test scenarios
- Add comprehensive test cases covering:
  * Working /mcp endpoints with auto and HTTP transports
  * SSE endpoint with SSE transport (expected to pass)
  * SSE endpoint with auto transport (expected to fail - demonstrates current fallback issue)
- Test structure now provides clear visibility into transport-specific behavior
- All tests properly named and categorized for easy identification of failing scenarios
- Fix issue where SSE fallback was not attempted when HTTP transport failed
- Specific error types (404, 405, CORS) now correctly trigger SSE fallback
- Allow SSE fallback even when component state is 'failed' from previous attempts
- Maintain proper error handling for non-fallback HTTP errors
- All 6 transport scenarios now pass integration tests

The core issue was that failConnection() was being called for HTTP errors
before returning 'fallback', which set the component state to 'failed' and
prevented the orchestration logic from attempting SSE fallback. Now only
specific HTTP errors that should trigger fallback avoid calling failConnection
immediately, allowing the SSE transport to be attempted as expected.
@geelen geelen force-pushed the cf-agents-tests branch from eaad775 to 27e194d Compare July 1, 2025 01:50
@geelen geelen changed the title /sse still not working Fixing /sse support Jul 1, 2025
@geelen geelen merged commit fe65d50 into main Jul 1, 2025
5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant