Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

test(web): cover an interrupted Run with an unconfirmed follow-up

Kilynda08511e9a47
diff --git a/apps/web/src/features/rooms/chat/message-timeline-card.test.tsx b/apps/web/src/features/rooms/chat/message-timeline-card.test.tsx
index 85e652a5..c9bf825c 100644
--- a/apps/web/src/features/rooms/chat/message-timeline-card.test.tsx
+++ b/apps/web/src/features/rooms/chat/message-timeline-card.test.tsx
@@ -2121,6 +2121,36 @@ describe("Room Message timeline cards", () => {
expect(shownStatus()).not.toMatch(/Run failed/);
});
+ it("tells an interrupted Run with an unconfirmed follow-up to resend it", () => {
+ render(
+ <QueryClientProvider client={new QueryClient()}>
+ <MemoryRouter>
+ <AgentStreamingStatusDock
+ runStatuses={[runStatus({ status: "aborted" })]}
+ runtimePresentationEventsByRunStatusId={{
+ "run-status-1": [
+ {
+ ...runtimeTerminalStatusRecord("2", "failed"),
+ event: {
+ type: "status.changed",
+ status: "stopped",
+ outcome: "failed",
+ failure: { code: "interrupted" },
+ unconfirmed_input_ids: ["follow-up"],
+ },
+ },
+ ],
+ }}
+ />
+ </MemoryRouter>
+ </QueryClientProvider>,
+ );
+ expect(shownStatus()).toMatch(
+ /^Codex: The Run stopped before it finished .* Follow-up delivery unconfirmed\. Resend it if the Agent did not answer\.$/,
+ );
+ expect(shownStatus()).not.toMatch(/Run failed/);
+ });
+
it("shows the latest failure below the composer and clears it after success", () => {
const failed = runStatus({ id: "failed", status: "aborted" });
const { rerender } = render(