Commit Graph

3 Commits

Author SHA1 Message Date
hupenglong1 5b708d2996 fix: use custom event for training panel toggle, no more poll inference
SkillInsertDialog dispatches SKILL_TOGGLED_EVENT on user click.
AssistantWorkspace listens for that event to set applied state.
Completely eliminates poll-based state inference that caused flash.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-25 17:46:51 +08:00
hupenglong1 2acbd0b509 fix: eliminate training panel flash on page load
- Don't restore applied state from localStorage on mount (was causing
  first-frame flash when skill was already enabled)
- Always start with applied=false; only set true on user click

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-25 17:41:35 +08:00
hupenglong1 1a94cec822 修改 2026-05-20 15:04:19 +08:00