fix(web): show Waiting for blocked chats#631
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@copilot what the code using for? |
What Changed
Show
Waitingin the sidebar when a thread is blocked on unresolved structured user input, not just permission approvals.This change:
session-logicWhy
Before this change, a thread could still appear as
Workingin the sidebar even when the agent had already stopped and was waiting for the user to answer a structured prompt.That made the sidebar status misleading and made it harder to notice that the next action was required from the user.
UI Changes
Before:
WorkingAfter:
WaitingChecklist
Note
Display a 'Waiting' status pill for blocked threads in the web Sidebar and add awaiting-response snapshot support in
ChatView.browser.tsxIntroduce
deriveThreadStatusStateto drive Sidebar pills, mapping 'awaiting-response' to 'Waiting'; refactorSidebarto use the derived status; add an awaiting-response orchestration snapshot and tests in apps/web/src/components/ChatView.browser.tsx and apps/web/src/session-logic.test.ts; implement status derivation in apps/web/src/session-logic.ts.📍Where to Start
Start with
deriveThreadStatusStatein apps/web/src/session-logic.ts, then review its use inSidebarviathreadStatusPillin apps/web/src/components/Sidebar.tsx.Macroscope summarized a5764d7.