Skip to content

fix(dingtalk): stream reasoning into AI card template#232

Open
zhubby wants to merge 1 commit into
mainfrom
fix/dingtalk-reasoning-stream-issue-231
Open

fix(dingtalk): stream reasoning into AI card template#232
zhubby wants to merge 1 commit into
mainfrom
fix/dingtalk-reasoning-stream-issue-231

Conversation

@zhubby
Copy link
Copy Markdown
Owner

@zhubby zhubby commented Apr 27, 2026

Summary

  • Adds stream_reasoning_key for DingTalk AI card templates so reasoning can stream into a dedicated template variable.
  • Splits DingTalk AI card streaming state for content and reasoning while preserving legacy content card creation behavior.
  • Guards DingTalk streaming edge cases: initial empty updates, oversized payloads, incomplete markdown fences, and multi-key finalize ordering.

Closes #231

Test plan

  • cargo test -p klaw-config
  • cargo test -p klaw-channel dingtalk -- --nocapture
  • cargo test -p klaw-gui apply_dingtalk_form_preserves_stream_flag -- --nocapture
  • cargo check --workspace
  • git diff --check

Made with Cursor

Add a dedicated reasoning template key for DingTalk AI card streams while preserving the existing content stream behavior and guarding problematic streaming frames.

Closes #231

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: stream DingTalk reasoning into AI card template

1 participant