chore: maintenance fixes - scheduler, AI client, dead code removal by feifeinorfly · Pull Request #82 · TNT-Likely/PanWatch · GitHub
Skip to content

chore: maintenance fixes - scheduler, AI client, dead code removal - #82

Open
feifeinorfly wants to merge 1 commit into
TNT-Likely:mainfrom
feifeinorfly:pr-chore-maintenance
Open

feifeinorfly wants to merge 1 commit into
TNT-Likely:mainfrom
feifeinorfly:pr-chore-maintenance

Conversation

@feifeinorfly

Copy link
Copy Markdown
  • 修复 auto_trigger.py:将 AgentConfig 字段名 raw_config 更改为 config
  • 在paper_trading和price_alert调度程序中添加misfire_grace_time=60
  • 在AIClient中添加TokenLimitError、令牌估计和max_tokens限制,以防止上下文溢出错误
  • 移除死代码:doctor.py(命令行界面自检,已替换为/api/health/selfcheck)
  • 简化Docker构建:使用预构建的前端,而不是在Docker内部构建(移除了node:20-alpine阶段)

- Fix auto_trigger.py: AgentConfig field name raw_config -> config
- Add misfire_grace_time=60 to paper_trading and price_alert schedulers
- Add TokenLimitError, token estimation and max_tokens clamping to AIClient
  to prevent context overflow errors
- Remove dead code: doctor.py (CLI self-check, replaced by /api/health/selfcheck)
- Simplify Docker build: use pre-built frontend instead of in-Docker build
  (removes node:20-alpine stage)
@TNT-Likely
TNT-Likely force-pushed the main branch 4 times, most recently from 2a84e94 to b53d779 Compare August 27, 2026 14:21
@github-actions github-actions Bot added the pr:needs-work PanWatch contribution policy; see docs/pr-policy.md label Oct 13, 2026
@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:needs-work PanWatch contribution policy; see docs/pr-policy.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant