fix(crew): prevent duplicate ASK bubble for new question #84
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_shrimp!84
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_fix_crew_duplicate_ask"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes the duplicate ASK bubble shown when an operator asks a crew agent a new question via "Ask this agent". The optimistic ask placeholder was only cleared on a reply, so it lingered next to the real ask once
refresh()re-fetched it.Related Issue
Closes #72
Changes
CrewPage.tsx: clearpendingAskas soon as the real ask is present in re-fetched messages (matched by kind + trimmed text), in addition to the existing reply trigger.CrewPage.tsx:focusedThread()no longer appends the optimistic ask when the real one is already in the thread; the "working..." indicator stays until a reply lands.static/index.html,static/assets/app.D6QRCr1C.js).No backend changes — the ask is persisted exactly once.
Test Results
vite build): PASS.dad7d45ad6171226b4ae