Skip to content

feat: awaiting-approval pill for blocked sidebar chats#675

Merged
Mng-dev-ai merged 1 commit into
mainfrom
feat/sidebar-awaiting-approval-pill
Jun 26, 2026
Merged

feat: awaiting-approval pill for blocked sidebar chats#675
Mng-dev-ai merged 1 commit into
mainfrom
feat/sidebar-awaiting-approval-pill

Conversation

@Mng-dev-ai

Copy link
Copy Markdown
Owner

Summary

  • Add an "Awaiting approval" pill to sidebar chat rows and sub-threads when a chat has a pending plan/question/permission request (the agent is blocked on the user).
  • Derive blocked state from usePermissionStore's pendingRequests keys; empty queues are deleted from the store, so every remaining key has an outstanding request.
  • The pill replaces the running pulse and relative timestamp for that chat; right padding widens so long titles truncate before reaching it.
  • Thread the blockedChatIdSet through SidebarSidebarChatGroupSubThreadListSidebarChatItem, mirroring the existing streamingChatIdSet plumbing.

Test plan

  • Trigger a permission/plan/question prompt in a chat and confirm the sidebar row shows the "Awaiting approval" pill instead of the pulse/timestamp.
  • Confirm the pill clears once the request is approved/denied.
  • Verify sub-threads show the pill correctly and long titles truncate without overlapping it.
  • Check light and dark mode rendering.

Surface chats waiting on a pending plan/question/permission request so
users can spot agents blocked on them without opening each chat. The
pill replaces the running pulse and relative timestamp for that chat.
@Mng-dev-ai Mng-dev-ai marked this pull request as ready for review June 26, 2026 00:22
@Mng-dev-ai Mng-dev-ai merged commit 975f6f0 into main Jun 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant