feat: autocomplete structured commands
This commit is contained in:
@@ -340,6 +340,15 @@ describe("buildTranscriptRow: notice / unknown kinds", () => {
|
||||
expect(buildTranscriptRow(unknown)?.textContent).toBe("[future_kind]");
|
||||
});
|
||||
|
||||
it("omits command-catalog and session-info notices used only as UI state", () => {
|
||||
expect(
|
||||
buildTranscriptRow(
|
||||
row("notice", { sessionUpdate: "available_commands_update", availableCommands: [] }),
|
||||
),
|
||||
).toBeNull();
|
||||
expect(buildTranscriptRow(row("notice", { sessionUpdate: "session_info_update" }))).toBeNull();
|
||||
});
|
||||
|
||||
it("returns no transcript element for a plan row", () => {
|
||||
expect(buildTranscriptRow(row("plan", { entries: [] }))).toBeNull();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user