mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-29 12:59:13 +01:00
Reuse card-aware replies in continuation journeys
Dismiss the active card's composer view before typing a message, using the existing onboarding/chat driver without accepting the card. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
ec8a75bce3
commit
705093a68a
1 file changed
+3
-2
@@ -4,6 +4,7 @@ import path from "node:path";
|
||||
import { pollUntil, type RunnerApi } from "./api.js";
|
||||
import {
|
||||
chatQuestionPresentation,
|
||||
sendChatMessage,
|
||||
collectChatRunEvidence,
|
||||
type ChatRun,
|
||||
} from "./chat-flow.js";
|
||||
@@ -15,7 +16,7 @@ import {
|
||||
gradeContinuation,
|
||||
type ContinuationCheckpoint,
|
||||
} from "./continuation-scoring.js";
|
||||
import { createTaskThroughUi, submitTaskReply } from "./user-actions.js";
|
||||
import { createTaskThroughUi } from "./user-actions.js";
|
||||
import type { LiveFixtureValues } from "./live-fixtures.js";
|
||||
import type { MatrixExecution } from "./types.js";
|
||||
type Row = Record<string, any>;
|
||||
@@ -175,7 +176,7 @@ export async function runContinuationFlow(input: {
|
||||
}
|
||||
async function reply(body: string) {
|
||||
const before = new Set(runs.map((r) => r.id));
|
||||
await submitTaskReply(page, body);
|
||||
await sendChatMessage(page, body);
|
||||
await settle(before);
|
||||
}
|
||||
function assertWaiting() {
|
||||
|
||||
Reference in new issue
Block a user