* fix(acp): normalize unicode flags and Telegram topic binding * feat(telegram/acp): restore topic-bound ACP and session bindings * fix(acpx): clarify permission-denied guidance * feat(telegram/acp): pin spawn bind notice in topics * docs(telegram): document ACP topic thread binding behavior * refactor(reply): share Telegram conversation-id resolver * fix(telegram/acp): preserve bound session routing semantics * fix(telegram): respect binding persistence and expiry reporting * refactor(telegram): simplify binding lifecycle persistence * fix(telegram): bind acp spawns in direct messages * fix: document telegram ACP topic binding changelog (#36683) (thanks @huntharo) --------- Co-authored-by: Onur <2453968+osolmaz@users.noreply.github.com>
23 lines
561 B
TypeScript
23 lines
561 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { parseSteerInput } from "./shared.js";
|
|
|
|
describe("parseSteerInput", () => {
|
|
it("preserves non-option instruction tokens while normalizing unicode-dash flags", () => {
|
|
const parsed = parseSteerInput([
|
|
"\u2014session",
|
|
"agent:codex:acp:s1",
|
|
"\u2014briefly",
|
|
"summarize",
|
|
"this",
|
|
]);
|
|
|
|
expect(parsed).toEqual({
|
|
ok: true,
|
|
value: {
|
|
sessionToken: "agent:codex:acp:s1",
|
|
instruction: "\u2014briefly summarize this",
|
|
},
|
|
});
|
|
});
|
|
});
|