





















@@ -17,8 +17,6 @@ import {
1717resolveMattermostEffectiveReplyToId,
1818resolveMattermostReplyRootId,
1919resolveMattermostThreadSessionContext,
20-shouldFinalizeMattermostPreviewAfterDispatch,
21-shouldClearMattermostDraftPreview,
2220shouldSuppressMattermostDefaultToolProgressMessages,
2321shouldUpdateMattermostDraftToolProgress,
2422type MattermostMentionGateInput,
@@ -369,35 +367,6 @@ describe("shouldSuppressMattermostDefaultToolProgressMessages", () => {
369367});
370368});
371369372-describe("shouldClearMattermostDraftPreview", () => {
373-it("deletes the preview after successful normal final delivery", () => {
374-expect(
375-shouldClearMattermostDraftPreview({
376-finalizedViaPreviewPost: false,
377-finalReplyDelivered: true,
378-}),
379-).toBe(true);
380-});
381-382-it("keeps the preview when final delivery failed", () => {
383-expect(
384-shouldClearMattermostDraftPreview({
385-finalizedViaPreviewPost: false,
386-finalReplyDelivered: false,
387-}),
388-).toBe(false);
389-});
390-391-it("keeps the preview when it already became the final reply", () => {
392-expect(
393-shouldClearMattermostDraftPreview({
394-finalizedViaPreviewPost: true,
395-finalReplyDelivered: true,
396-}),
397-).toBe(false);
398-});
399-});
400-401370describe("deliverMattermostReplyWithDraftPreview", () => {
402371it("suppresses reasoning-prefixed finals before preview finalization", async () => {
403372const draftStream = createDraftStreamMock();
@@ -732,35 +701,6 @@ describe("formatMattermostFinalDeliveryOutcomeLog", () => {
732701});
733702});
734703735-describe("shouldFinalizeMattermostPreviewAfterDispatch", () => {
736-it("reuses the preview only for a single eligible final payload", () => {
737-expect(
738-shouldFinalizeMattermostPreviewAfterDispatch({
739-finalCount: 1,
740-canFinalizeInPlace: true,
741-}),
742-).toBe(true);
743-});
744-745-it("falls back to normal sends for multi-payload finals", () => {
746-expect(
747-shouldFinalizeMattermostPreviewAfterDispatch({
748-finalCount: 2,
749-canFinalizeInPlace: true,
750-}),
751-).toBe(false);
752-});
753-754-it("falls back to normal sends when the final cannot be edited into the preview", () => {
755-expect(
756-shouldFinalizeMattermostPreviewAfterDispatch({
757-finalCount: 1,
758-canFinalizeInPlace: false,
759-}),
760-).toBe(false);
761-});
762-});
763-764704describe("resolveMattermostEffectiveReplyToId", () => {
765705it("keeps an existing thread root", () => {
766706expect(
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。