fix(ui): replace workspace divergence toast with persistent banner #70
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!70
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_workspace_divergence_banner"
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
WorkspaceDivergenceBannerattached to the assistant messagerequested_workspace_pathto themessage.sendRPC response so the UI has a server-authoritative signal for divergence detectionMsgtype withworkspaceDivergence?: { wanted, got }so banner state survives re-rendersWorkspaceDivergenceBannercomponent: persistent red-bordered panel with both paths, explanation, and a "Fix workspace" buttonRelated Issue
Closes #41
Changes
crates/hero_shrimp_server/src/rpc/methods/session.rs— emitrequested_workspace_pathalongsideworkspace_pathin theinclude_workspace_in_responseblockcrates/hero_shrimp_web/ui/src/store.ts— addworkspaceDivergencefield toMsg; replacetoast()withsetMessagesattachment; prefer server-supplied field with client-side heuristic fallbackcrates/hero_shrimp_web/ui/src/components/WorkspaceDivergenceBanner.tsx(new) — persistent banner component followingStallBanner.tsxpatterncrates/hero_shrimp_web/ui/src/components/ChatThread.tsx— render banner after incomplete-turn affordance, before job panelTest Results
153/163 tests passed. All 10 failures are pre-existing environment issues unrelated to this PR (bubblewrap detection, missing
sh/python3in sandbox, malformed YAML in 5 SKILL.md files).b744a5dbc4d38dbd32c2e22720bd32afe2c5a7a2ca1508415d5358759e9a