mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
DingTalk keeps AI card placement tied to the original card delivery time, so a card created before a permission request can later be updated with the final answer above the permission card. Finish and drop the active stream when permission interrupts a turn so authorized output creates a new card below the prompt. Constraint: DingTalk does not reorder an existing delivered AI card when its streaming content is updated Rejected: Reuse the pre-permission AI card after approval | final answers can remain visually above the permission request Confidence: high Scope-risk: narrow Directive: Keep permission_request as a lifecycle boundary for DingTalk AI card streams Tested: cd adapters && bun test dingtalk/__tests__/stream-state.test.ts dingtalk/__tests__/ai-card.test.ts Tested: cd adapters && bunx tsc --noEmit Tested: bun run check:adapters Tested: git diff --check Not-tested: Live DingTalk account end-to-end permission approval