fix: remove unused props from FlowPilotSession after action bar removal

canResolve, canEscalate, onResolve, onEscalate, onPause, onAbandon are
now handled at the page level in FlowPilotSessionPage header. Remove
from component interface to fix TS6133 build errors.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-23 12:45:20 +00:00
parent 0ec59276c7
commit 483653f5fc
2 changed files with 0 additions and 23 deletions

View File

@@ -4,8 +4,6 @@ import type {
AISessionDetail, AISessionDetail,
AISessionStepResponse, AISessionStepResponse,
StepResponseRequest, StepResponseRequest,
ResolveSessionRequest,
EscalateSessionRequest,
SessionDocumentation, SessionDocumentation,
StatusUpdateAudience, StatusUpdateAudience,
StatusUpdateLength, StatusUpdateLength,
@@ -29,18 +27,12 @@ interface FlowPilotSessionProps {
allSteps: AISessionStepResponse[] allSteps: AISessionStepResponse[]
currentStep: AISessionStepResponse | null currentStep: AISessionStepResponse | null
isProcessing: boolean isProcessing: boolean
canResolve: boolean
canEscalate: boolean
documentation: SessionDocumentation | null documentation: SessionDocumentation | null
psaPushStatus?: string | null psaPushStatus?: string | null
psaPushError?: string | null psaPushError?: string | null
memberMappingWarning?: string | null memberMappingWarning?: string | null
onRespond: (response: StepResponseRequest) => void onRespond: (response: StepResponseRequest) => void
onResolve: (data: ResolveSessionRequest) => Promise<SessionDocumentation>
onEscalate: (data: EscalateSessionRequest) => Promise<SessionDocumentation>
onPause?: () => Promise<void>
onResume?: () => Promise<void> onResume?: () => Promise<void>
onAbandon?: () => Promise<void>
onRate: (rating: number) => void onRate: (rating: number) => void
onReloadSession?: () => Promise<void> onReloadSession?: () => Promise<void>
onGenerateStatusUpdate?: (audience: StatusUpdateAudience, length: StatusUpdateLength, context: StatusUpdateContext) => Promise<StatusUpdateResponse> onGenerateStatusUpdate?: (audience: StatusUpdateAudience, length: StatusUpdateLength, context: StatusUpdateContext) => Promise<StatusUpdateResponse>
@@ -51,18 +43,12 @@ export function FlowPilotSession({
allSteps, allSteps,
currentStep, currentStep,
isProcessing, isProcessing,
canResolve,
canEscalate,
documentation, documentation,
psaPushStatus, psaPushStatus,
psaPushError, psaPushError,
memberMappingWarning, memberMappingWarning,
onRespond, onRespond,
onResolve,
onEscalate,
onPause,
onResume, onResume,
onAbandon,
onRate, onRate,
onReloadSession, onReloadSession,
onGenerateStatusUpdate, onGenerateStatusUpdate,

View File

@@ -366,21 +366,12 @@ export default function FlowPilotSessionPage() {
allSteps={fp.allSteps} allSteps={fp.allSteps}
currentStep={fp.currentStep} currentStep={fp.currentStep}
isProcessing={fp.isProcessing} isProcessing={fp.isProcessing}
canResolve={fp.canResolve}
canEscalate={fp.canEscalate}
documentation={fp.documentation} documentation={fp.documentation}
psaPushStatus={fp.psaPushStatus} psaPushStatus={fp.psaPushStatus}
psaPushError={fp.psaPushError} psaPushError={fp.psaPushError}
memberMappingWarning={fp.memberMappingWarning} memberMappingWarning={fp.memberMappingWarning}
onRespond={fp.respondToStep} onRespond={fp.respondToStep}
onResolve={fp.resolveSession}
onEscalate={fp.escalateSession}
onPause={fp.pauseSession}
onResume={fp.resumeOwnSession} onResume={fp.resumeOwnSession}
onAbandon={async () => {
await fp.abandonSession()
navigate('/sessions')
}}
onRate={fp.rateSession} onRate={fp.rateSession}
onReloadSession={() => fp.loadSession(fp.session!.id)} onReloadSession={() => fp.loadSession(fp.session!.id)}
onGenerateStatusUpdate={(audience, length, context) => fp.generateStatusUpdate({ audience, length, context })} onGenerateStatusUpdate={(audience, length, context) => fp.generateStatusUpdate({ audience, length, context })}