feat(ai): add progress feedback to eliminate waiting anxiety#90
Merged
Conversation
Add React and related dependencies to optimizeDeps.include to prevent runtime issues where React hooks may be unavailable due to module loading order problems. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add ai.chat.user_message log to help diagnose issue where messages are silently swallowed after previous block is done. Related to #4 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Root cause: When AmazingParrot's plan sets needs_direct_answer=true (with no memo_search/schedule_query/etc), the retrievalResults map is empty. This caused buildSynthesisPrompt to generate a synthesis prompt with an empty context placeholder, which could cause the LLM to hang or produce unexpected behavior. Changes: - Add fallback casual chat prompt when no retrieval results exist - Add extensive debug logging to track synthesis flow - Add chunk counting and channel close logging for better visibility This fixes the bug where messages are "swallowed" after a block completes with status=done. Related: Task #4 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add immediate feedback events to eliminate 5-10 second "dead silence" after user sends message. Implements 200ms psychological threshold principle for user experience. Backend changes: - Add "received" event sent immediately after message receipt - Add "routing_start" event before intent classification - Add "routing_end" event with agent info and duration - Apply events consistently across Normal/Geek/Evolution modes Refs #89 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Fix gofmt alignment issues detected by CI golangci-lint. Refs #90 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
实现 AI 聊天进度反馈功能,消除用户发送消息后 5-10 秒的「死寂期」,通过即时反馈改善用户体验。
核心原则
基于 200ms 心理阈值:用户发送消息后,200ms 内必须有视觉反馈,否则会产生焦虑感。
变更内容
后端事件
前端组件
关联 Issue
Resolves #89
测试计划
make check-all通过截图/演示
待前端集成后补充
检查清单
Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com