Keiki swarm controls: group roster, conversation liveness, background tasks with Cancel / End all - #54
Open
devin-ai-integration[bot] wants to merge 2 commits into
Open
Conversation
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
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
Desktop counterpart of Mail-0/sms-kit#1000 (swarm observability). Depends on those platform routes being deployed; on older servers the new fields default to empty (
#[serde(default)]) and the roster/end/cancel calls fail with their HTTP error, nothing else changes.keiki-model / keiki-api — new models
ConversationLiveness,SubagentTaskSummary,AgentGroupRoster{members, totals}, and client methods:ConversationSummary/ConversationDetailgainliveness: Option<ConversationLiveness>; detail gainstasks: Vec<SubagentTaskSummary>.UI — remote-only state lives in
AppState(no engine/proto/persistence changes):keiki_liveness: chat_id -> Option<Liveness>written by both the 15 s snapshot loop and the selected-conversation detail poll; the session title bar shows aWorking/Waiting on peerbadge.KeikiConversation.tasksfrom the detail poll feeds a new right-pane Tasks surface (status pill, request, timestamps).Cancelon running/suspended tasks only whenKeikiSessionInfo::can_manage()(role owner/admin — server is still authoritative).keiki_group_rosters: group_id -> AgentGroupRoster, polled in the snapshot loop for every expanded sidebar group; the expanded set is derived fromsettings.sidebar_collapsed_groups(Shell::sync_keiki_expanded_groups) so groups already open at launch poll too. Group header showsN members · running · waiting · $cost; expanded body lists ≤25 members (running → waiting → idle → ended) with a+N morerow. End all (stop icon, manage roles, only when something is live) confirms with the live thread/task counts, callsend_agent_group, refreshes the roster, and surfaces 403/errors via notify.authorized_requestwraps the credential read + token refresh for the two new mutating calls.Verification
cargo fmt --check,cargo check -p zeron-ui,cargo test -p keiki-model(serde round-trip + defaulting for missingliveness/tasks),cargo test -p zeron-ui shell(58 passed). Not driven in the GUI against a live server.Link to Devin session: https://app.devin.ai/sessions/e39718f873d847298776b2e2fdc14fcc
Open in Devin Desktop: https://app.devin.ai/desktop/session/e39718f873d847298776b2e2fdc14fcc?variant=devin
Requested by: @MrgSub