feat: task lane persistence + sidebar cleanup #121
@@ -135,10 +135,13 @@ export function ConcludeSessionModal({
|
||||
(err) => {
|
||||
setStreaming(false)
|
||||
setStreamError(err)
|
||||
// Try non-streaming fallback
|
||||
aiSessionsApi.getDocumentation(sessionId).then((doc) => {
|
||||
const fallback = `## Problem Summary\n${doc.problem_summary}\n\n## Steps Taken\n${doc.diagnostic_steps.map(s => `- ${s.description}`).join('\n')}\n\n## Resolution\n${doc.resolution_summary || 'See conversation'}\n\n## Next Steps\nNone`
|
||||
setSummary(fallback)
|
||||
// Fallback: use status update API which works with conversation context
|
||||
aiSessionsApi.generateStatusUpdate(sessionId, {
|
||||
audience: 'ticket_notes',
|
||||
length: 'detailed',
|
||||
context: 'resolution',
|
||||
}).then((result) => {
|
||||
setSummary(result.content)
|
||||
setStreamError(null)
|
||||
}).catch(() => {
|
||||
if (!summaryRef.current) {
|
||||
|
||||
Reference in New Issue
Block a user