Repository navigation
Unload terminal agents after an idle timeout - #606
Merged
Merged
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a terminal idle unload feature for multi-agent configurations, allowing idle terminal agents to be unloaded after a configurable timeout. It implements tracking for residency transitions, terminal finalizers, and pending submissions to ensure agents are not unloaded prematurely during active operations. Comprehensive unit tests are also added to verify the unloading lifecycle and its edge cases. The feedback suggests improving panic safety in async_watcher.rs by wrapping the terminal finalizer cleanup in an RAII guard to guarantee it runs even if the spawned task exits unexpectedly.
GraciousGazelles
force-pushed
the
fix/terminal-agent-idle-unload-timeout
branch
4 times, most recently
from
August 14, 2026 16:59
963e27e to
b670527
Compare
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Aug 20, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Aug 20, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Aug 20, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Aug 20, 2026
GraciousGazelles
force-pushed
the
fix/terminal-agent-idle-unload-timeout
branch
from
August 20, 2026 23:38
075dd77 to
b00ed31
Compare
GraciousGazelles
force-pushed
the
fix/terminal-agent-idle-unload-timeout
branch
from
August 21, 2026 00:56
b00ed31 to
c1853df
Compare
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
Validation
cargo fmt --all -- --checkgit diff --check