fix: clean up slack threading landings (#1360) (thanks @SocialNerd42069)
This commit is contained in:
1
Peekaboo
1
Peekaboo
Submodule Peekaboo deleted from 5c195f5e46
@@ -113,7 +113,7 @@ describe("subscribeEmbeddedPiSession", () => {
|
|||||||
handler?.({ type: "message_end", message: assistantMessageWithNewline });
|
handler?.({ type: "message_end", message: assistantMessageWithNewline });
|
||||||
handler?.({ type: "message_end", message: assistantMessageTrimmed });
|
handler?.({ type: "message_end", message: assistantMessageTrimmed });
|
||||||
|
|
||||||
expect(subscription.assistantTexts).toEqual(["Hello world\n"]);
|
expect(subscription.assistantTexts).toEqual(["Hello world"]);
|
||||||
});
|
});
|
||||||
it("does not duplicate assistantTexts when message_end repeats with reasoning blocks", () => {
|
it("does not duplicate assistantTexts when message_end repeats with reasoning blocks", () => {
|
||||||
let handler: SessionEventHandler | undefined;
|
let handler: SessionEventHandler | undefined;
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import {
|
|||||||
runGatewayUpdate,
|
runGatewayUpdate,
|
||||||
type UpdateRunResult,
|
type UpdateRunResult,
|
||||||
type UpdateStepInfo,
|
type UpdateStepInfo,
|
||||||
|
type UpdateStepResult,
|
||||||
type UpdateStepProgress,
|
type UpdateStepProgress,
|
||||||
type UpdateStepResult,
|
type UpdateStepResult,
|
||||||
} from "../infra/update-runner.js";
|
} from "../infra/update-runner.js";
|
||||||
|
|||||||
@@ -481,7 +481,6 @@ export async function prepareSlackMessage(params: {
|
|||||||
ParentSessionKey: threadKeys.parentSessionKey,
|
ParentSessionKey: threadKeys.parentSessionKey,
|
||||||
ThreadStarterBody: threadStarterBody,
|
ThreadStarterBody: threadStarterBody,
|
||||||
ThreadLabel: threadLabel,
|
ThreadLabel: threadLabel,
|
||||||
MessageThreadId: isThreadReply ? threadTs : undefined,
|
|
||||||
Timestamp: message.ts ? Math.round(Number(message.ts) * 1000) : undefined,
|
Timestamp: message.ts ? Math.round(Number(message.ts) * 1000) : undefined,
|
||||||
WasMentioned: isRoomish ? effectiveWasMentioned : undefined,
|
WasMentioned: isRoomish ? effectiveWasMentioned : undefined,
|
||||||
MediaPath: media?.path,
|
MediaPath: media?.path,
|
||||||
|
|||||||
Reference in New Issue
Block a user