The best way to control Claude Code, Codex and more from any computer or phone
| 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 | }); |