Repository navigation
fix(mobile): never hide a working bot behind the Bots list's Show more - #52837
Merged
orca-remote-automation[bot] merged 2 commits intoNov 30, 2026
Merged
orca-remote-automation[bot] merged 2 commits into
orca-remote-automation[bot] merged 2 commits into
Conversation
The phone's Bots cap kept bots that need you or hold the open row, but a bot at position four or later whose agents were working went behind "Show N more" with its workspaces, which Hide bot workspaces lists only under it. The cap now also keeps every bot or group with live work, and Show more counts only the rest.
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.
What changed
The phone's Bots cap from #52737 hid bots whose agents were working. It only kept the first 3 bots, bots that need you, and the open one. Bot order defaults to manual, so a busy bot at position 4 or later went behind "Show N more". With Hide bot workspaces on, that bot's workspaces only list under it, so they were hidden too.
live. It is true when the bot's own row, or any workspace it lists (nested ones included), is working or monitoring, or shows a needs-you dot (asking, failed, unconfirmed). For a group, it is true when its member-session dot is working or needs you. A bot on a computer that is down is never live: its last read isn't live work.drawnHostBotSections, so it can be tested on its own.Checked against how comparable products handle this.
Testing
pnpm check:changedpassed (18 checks).pnpm --dir mobile typecheckandtypecheck:testspass.mobile/src/bots/host-bots-cap.test.tsruns the realbuildHostBotSections. It covers:livereads only direct workers.Performance
This is reasoning over the diff; nothing here was measured.
drawHostBotEntriesnow readsgetWorktreeDotStatusfor each bot's home row and listed workspace rows. That is O(listed rows), once per build, under the same memo as before. The direct workers were already read for the bot's dot; nested lines are the only new reads.drawnHostBotSectionsdoes the same single shallow copy as before.SectionList.Risk
Low. The change only adds entries to the capped phone list. It never removes any, and the full section that drives counts and statuses is unchanged. A revert needs no migration.
Visual proof
From left: working bots kept at 390 px dark, light, 320 px dark, and 30 idle bots (unchanged).