Skip to content

Conversation

@evalstate
Copy link
Collaborator

@evalstate evalstate commented Nov 13, 2025

Tidy up SSE behaviour

Previously added dynamic_space to isGradioTool(), but this was too broad.
The dynamic_space tool has two operations:
- view_parameters: can use direct_response=true (no streaming needed)
- invoke: needs direct_response=false (requires streaming/progress)

Solution:
- Keep isGradioTool() focused on gr<number>_/grp<number>_ pattern tools
- Enhanced isGradioToolCall() to check dynamic_space arguments
- Only sets direct_response=false when operation="invoke"

This allows view_parameters to remain fast with direct JSON responses
while invoke gets proper streaming support.
@evalstate evalstate changed the title fix: only disable direct_response for dynamic_space INVOKE operation Use SSE for Invoke, JSON for view_parameters Nov 13, 2025
@evalstate evalstate merged commit 5720bfd into main Nov 13, 2025
3 checks passed
@evalstate evalstate deleted the claude/fix-dynamic-space-invoke-streaming-011CV2CCtztFce9Bxajivb3w branch November 19, 2025 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants