- Create .fixes/ directory structure for tracking repairs - Add FIX-001 to FIX-009 repair tasks based on Cursor review - Add automation scripts (start-fix.sh, complete-fix.sh) - Update HEARTBEAT.md with repair checklist - Create AUTOMATION_PLAN.md with workflow documentation Fixes address: - Remove fake initial data - Add clear chat button - Split oversized component - Optimize multi-image upload - Fix scroll behavior - Remove dead code - Extract hardcoded config
498 B
498 B
FIX-008: 提取硬编码配置
状态: 待开始
创建时间: 2026-02-28
优先级: 中
负责人: msh-agent
问题描述
botId、轮询次数(60/30)、轮询间隔(1000/2000)、最大录音 60s 等硬编码,建议提到 data 或单独 config。
修复方案
创建配置对象集中管理:
const CHAT_CONFIG = {
botId: '7591133240535449654',
maxPollAttempts: 60,
pollInterval: 1000,
maxRecordDuration: 60
}