Repository navigation
fix(server): idle agent tabs free a slot when the server's 32-tab browser limit is full #24186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
shivamhwp
wants to merge
5
commits into
pingdotgg:main
Choose a base branch
from
shivamhwp:issue-watch/24159
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+107
−28
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
1be1e16
fix(server): idle agent tabs free their slot when the server's browse…
f091bc4
fix(server): don't free a slot for an agent already at its own tab limit
8521005
test(server): await idle tab eviction cleanup
2cf523d
Merge main into issue-watch/24159
6754ad0
Merge origin/main into issue-watch/24159
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exclude desktop tabs that a person is viewing.
When the server reaches 32 tabs,
freeIdleAgentSlotcan close a desktop tab after 30 minutes without an agent request. Desktop viewing does not add an entry totab.viewers, so this check cannot protect a tab that a person is reading or editing. Wait for the native visibility signal and exclude viewed desktop tabs before enabling desktop eviction. The PR objectives identify this as the reason the branch is being held.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed at b7126b9.
idleAgentTabschecks streamed viewers and idle age, but desktop viewing does not entertab.viewers. This is the existing blocker documented at the top of the PR.#19495 is still open. Keeping this finding unresolved and the PR on hold until that visibility signal lands. Then we will exclude viewed desktop tabs and verify that a viewed tab survives while an eligible hidden tab gives up its slot, and that opening still returns
tabLimitwhen none qualify.All current checks passed. No code changed or tests reran for this acknowledgement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shivamhwp Acknowledged. The finding remains unresolved. Passing checks do not verify native desktop visibility protection.
After integrating
#19495, verify that a viewed desktop tab stays open, an eligible hidden tab frees one slot, andpreview_openreturnstabLimitwhen no tab qualifies.You are interacting with an AI system.