mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 22:03:48 +00:00
* Restore foundry onboarding stack * Consolidate foundry rename * Create foundry tasks without prompts * Rename Foundry handoffs to tasks
16 lines
754 B
TypeScript
16 lines
754 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { shouldMarkSessionUnreadForStatus } from "../src/actors/task/workbench.js";
|
|
|
|
describe("workbench unread status transitions", () => {
|
|
it("marks unread when a running session first becomes idle", () => {
|
|
expect(shouldMarkSessionUnreadForStatus({ thinkingSinceMs: Date.now() - 1_000 }, "idle")).toBe(true);
|
|
});
|
|
|
|
it("does not re-mark unread on repeated idle polls after thinking has cleared", () => {
|
|
expect(shouldMarkSessionUnreadForStatus({ thinkingSinceMs: null }, "idle")).toBe(false);
|
|
});
|
|
|
|
it("does not mark unread while the session is still running", () => {
|
|
expect(shouldMarkSessionUnreadForStatus({ thinkingSinceMs: Date.now() - 1_000 }, "running")).toBe(false);
|
|
});
|
|
});
|