@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 14 lines 562 Bytes
Raw
1 import { describe, expect, it } from "vite-plus/test";
2
3 import { threadTitleTextFromPrompt } from "./threadTitle.ts";
4
5 describe("threadTitleTextFromPrompt", () => {
6 it("names a mentioned model by its slug, without the reference syntax", () => {
7 expect(threadTitleTextFromPrompt("Delegate to model:codex/gpt-6.1-sol and report back")).toBe(
8 "Delegate to gpt-6.1-sol and report back",
9 );
10 expect(
11 threadTitleTextFromPrompt("model:opencode/anthropic/opus, then model:codex/gpt-5.4."),
12 ).toBe("anthropic/opus, then gpt-5.4.");
13 });
14 });