Route web agent runs through Trigger.dev for all tiers#455
Merged
Conversation
Web users on agent mode now use the agent-long Trigger.dev endpoint regardless of subscription. Desktop keeps the prior behavior where only free users hit Trigger.dev. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughThe PR updates ChangesAgent-long transport environment gating
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
6 tasks
ross0x01
added a commit
that referenced
this pull request
May 15, 2026
* Show loading dots while agent run is being kicked off Trigger.dev cold starts can leave the UI blank for several seconds between submit and the first streamed chunk. Treat "submitted" the same as "streaming" for the dots indicator so users get immediate feedback that work started. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * Make agent-long Stop close the stream instantly The custom SSE stream in agent-long-transport ignored init.signal, so useChat.stop() couldn't break out of the trigger.dev subscription's for-await loop until the next chunk arrived (5-10s when the LLM was mid-step). Thread the signal through and race iter.next() against an abort promise so the local stream flushes, releases the iterator, and sends the abort frame in one tick. Also expand the /api/agent-long/cancel call to every trigger.dev-routed run (web non-Tauri or Tauri free), matching the routing rule introduced in #455, and fire it in parallel with stopActiveStream so the cancel RPC overlaps the Convex cancel/save round-trip. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
agent-longTrigger.dev endpoint for both free and paid tiers (previously only free)./api/agentdirectly.isFreeAgenttouseTriggerAgentto reflect the new combined tier + environment condition.Test plan
/api/agent-longand resumes via/api/agent-long/resume./api/agent-longand resumes via/api/agent-long/resume./api/agent-long./api/agentand standard reconnect URL.agent-longchats still resume correctly via the storedactive_trigger_run_id.🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes
Bug Fixes
Chores