Repository navigation
fix(agent): follow multiple sessions in one process - #1657
Merged
Merged
Conversation
Atchyut Preetham Pulavarthi (theonly1me)
marked this pull request as ready for review
October 9, 2026 17:25
Felipe Augusto (felipe-augusto)
approved these changes
Oct 9, 2026
Atchyut Preetham Pulavarthi (theonly1me)
merged commit Oct 9, 2026
ab1ec6f
into
main
6 checks passed
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.
Overview of Changes
Following 32 sub-sessions with separate CLI processes can exhaust the lead pod's memory. Add one command that follows those sessions in one process.
agent get --sessions <ids...> --follow, which returns the first completion, failure, cancellation or question.waitSeconds: 0, one request at a time, and keep the existing session output and exit codes.Testing
bun run typecheck bun run lint --max-warnings 0 bun run format:check bash scripts/check-naming.sh bun run knip bun run test bun run buildAll pass locally. The full suite passed 2762 tests with 0 failures. The agent tests passed 62 tests.