Repository navigation
feat: show every bot's status in a redesigned sidebar - #158
Open
cheetahbyte wants to merge 2 commits into
Open
cheetahbyte wants to merge 2 commits into
cheetahbyte wants to merge 2 commits into
Conversation
GET /v1/agents returns a status for each bot, and /v1/events sends bot-status events on connect and on change: blocked, question, failed, thinking, working, or idle. Request stores and jobs register what they wait for through BotNeeds. The mark_question tool flags a reply as a question that stays open until the owner's next message.
Pinned bots are portraits, three to a row, above Automations and the other bots. Avatars show the bot status from the server, also for chats that aren't open. Memory and the theme move to Settings, Activity and Settings to the header. The exclamation mark no longer means a retry.
|
React Doctor found no new issues. 🎉 Reviewed by React Doctor for commit |
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
The server reports one status per bot, bots can mark a reply as a question, and the web sidebar is rebuilt around pinned bots and that status.
Memory moves to Settings > Memory (
/memoryredirects) and the theme to Settings > General. A retrying bot shows as working: the exclamation mark now only means that the bot needs the owner or its last reply failed.Why
The web app knew a bot's state only after its chat was opened, so a bot that failed or waited for the owner looked idle in the sidebar. The sidebar also gave rarely used pages as much room as the bots.
Evidence
Dark
The scripted test model answers the
E2E-messages.bun run check(also run bypre-push): 1,299 pass, 118 skip, 0 fail.apps/docscheck passes.bot-status.test.ts(list, replay, each status on and off, account isolation),chat-question.test.ts,sidebar.dom.test.tsx. "a slow computation never overwrites a newer status" failed before computations were serialized and passes now./memoryredirect work without page errors.mark_question, and a physical phone.Risk and rollback
Reversibility: Reversible. No migration and no stored state; a question left in a transcript is an ordinary tool result.
Blast radius: every bot gets the
mark_questiontool.GET /v1/agentsand/v1/eventschange additively. Web navigation changes for all users.mark: "question", which open-bot-avatar 0.3.0 ignores, so a question shows an exclamation mark until a release supports it (proposed upstream, not released). The accessible name and tooltip tell the states apart.question, because the API still lists it and accepts an answer.