refactor: streamline agent controller and remove legacy resumable handling

- Updated the AgentController to route all requests to ResumableAgentController, simplifying the logic.
- Deprecated the legacy non-resumable path, providing a clear migration path for future use.
- Adjusted setHeaders middleware to remove unnecessary checks for resumable mode.
- Cleaned up the useResumableSSE hook to eliminate redundant query parameters, enhancing clarity and performance.
This commit is contained in:
Danny Avila 2025-12-18 14:20:51 -05:00
parent 460f60665f
commit 27e5f646d7
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
3 changed files with 11 additions and 14 deletions

View file

@ -498,9 +498,7 @@ export default function useResumableSSE(
clearStepMaps();
const url = payloadData.server.includes('?')
? `${payloadData.server}&resumable=true`
: `${payloadData.server}?resumable=true`;
const url = payloadData.server;
const maxRetries = 3;
let lastError: unknown = null;