Repository navigation
fix(web): keep standing bots listed when a scheduled task binds them; collapsible bot tree - #199
Merged
Conversation
… thread; collapsible bot tree A fresh-session scheduled task that binds a standing bot's own thread put that thread in scheduledThreadKeys, so isSystemScheduledThread moved it to the System shelf before the bot groups saw it. CEO, CTO and CoS vanished (and the org tree went flat) once their scheduled tasks ran after app start. A thread with a standing persona now only goes to the System shelf by the sys:daemon role. Also make the bot tree collapsible: a chevron on any bot with reports folds its subtree, and each group header (My Bots, Shared Bots) folds the group. State persists in uiStateStore as botCollapsedById. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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.
Bug
Standing bots (CEO, CTO, CoS) vanished from the sidebar, which also flattened the Shared Bots tree because their children's parents were gone.
Root cause:
isSystemScheduledThread(apps/web/src/components/Sidebar.logic.ts:1492, called fromSidebar.tsx:1249andplaceSystemScheduledThreads) treated any thread inscheduledThreadKeysas a System-shelf thread. A fresh-session scheduled task can bind a standing bot's own thread, so once those tasks ran after app start the bot was removed from the founder list beforesplitStandingThreads/partitionBotGroupssaw it. Verified in the live renderer: the scheduled-key set holds exactly CEO, CTO and CoS, and not CFO or Product Designer, which still showed. It was not a shell snapshot or update problem; the shells stayed present and unchanged.Fix: a thread with a standing persona goes to the System shelf only via the
sys:daemonrole, never via scheduled-task binding.Feature
The bot tree is collapsible. A chevron on any bot with reports folds its subtree, and each group header (My Bots, Shared Bots) folds the whole group. Both are
aria-expandedbuttons, rows stay one line, and state persists inuiStateStoreasbotCollapsedById.Tests
Sidebar.logic.test.ts: standing bots stay listed after a scheduled task binds them (fails without the fix,mine: [], shared: []).botOrgTree.test.ts:visibleBotRows.uiStateStore.test.ts:setBotCollapsedand persistence.Also fixed two lint errors that already existed in
SidebarBotsGroup.tsx(needed to commit through the hook).Deploy: fleet
🤖 Generated with Claude Code