fix(flowpilot): fix 4 Phase 2 escalation bugs + update Tailwind version in CLAUDE.md

- Fix escalation status mismatch: hook set 'escalated' but backend returns
  'requesting_escalation'
- Fix list_sessions to include sessions picked up by Engineer B via
  escalation_package->>'picked_up_by' JSONB query
- Fix sidebar escalation icon color: was Tailwind class 'text-amber-400'
  passed to style={{color}}, now hex '#fbbf24'
- Replace window.location.reload() after ticket linking with
  onReloadSession callback to preserve session state
- Update CLAUDE.md: Tailwind CSS v3 → v4 (@tailwindcss/vite, CSS-only config)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-19 03:10:11 +00:00
parent bbe590bfec
commit ce118b51d8
6 changed files with 21 additions and 10 deletions

View File

@@ -35,6 +35,7 @@ interface FlowPilotSessionProps {
onPause?: () => Promise<void>
onResume?: () => Promise<void>
onRate: (rating: number) => void
onReloadSession?: () => Promise<void>
}
export function FlowPilotSession({
@@ -54,6 +55,7 @@ export function FlowPilotSession({
onPause,
onResume,
onRate,
onReloadSession,
}: FlowPilotSessionProps) {
const scrollRef = useRef<HTMLDivElement>(null)
const [showTicketPicker, setShowTicketPicker] = useState(false)
@@ -87,7 +89,9 @@ export function FlowPilotSession({
})
toast.success(`Linked to ticket #${ticketId}`)
// Reload session to get updated ticket_data
window.location.reload()
if (onReloadSession) {
await onReloadSession()
}
} catch {
toast.error('Failed to link ticket')
} finally {