mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-18 13:23:33 +08:00
Goal runs spawn visible background work while the conversation is active, so the desktop should show those events at their actual transcript position instead of pinning a separate panel above the chat. The UI now renders background task records as inline message events, repairs restored task state from transcript notifications, and keeps later task updates on the original event card. Constraint: Existing transcripts only persist terminal task notifications, so the server now preserves their timestamps for deterministic restore ordering. Rejected: Keep the page-level background-agent panel | it occluded the session content and duplicated message-flow information. Confidence: high Scope-risk: moderate Directive: Background task message timestamps intentionally stay fixed after insertion; update the task content without moving the card in the transcript. Tested: cd desktop && bun run test -- src/stores/chatStore.test.ts src/pages/ActiveSession.test.tsx src/components/chat/MessageList.test.tsx Tested: cd desktop && bun run lint Tested: bun test src/server/__tests__/sessions.test.ts