Config UI: tag filters and complete schema help/labels coverage (#23796)

* Config UI: add tag filters and complete schema help/labels

* Config UI: finalize tags/help polish and unblock test suite

* Protocol: regenerate Swift gateway models
This commit is contained in:
Tak Hoffman
2026-02-22 15:17:07 -06:00
committed by GitHub
parent c539782c09
commit f8171ffcdc
28 changed files with 3409 additions and 274 deletions

View File

@@ -59,13 +59,13 @@ function createHarness(params?: {
describe("tui command handlers", () => {
it("renders the sending indicator before chat.send resolves", async () => {
let resolveSend: ((value: { runId: string }) => void) | null = null;
const sendChat = vi.fn(
() =>
new Promise<{ runId: string }>((resolve) => {
resolveSend = resolve;
}),
);
let resolveSend: (value: { runId: string }) => void = () => {
throw new Error("sendChat promise resolver was not initialized");
};
const sendPromise = new Promise<{ runId: string }>((resolve) => {
resolveSend = (value) => resolve(value);
});
const sendChat = vi.fn(() => sendPromise);
const setActivityStatus = vi.fn();
const { handleCommand, requestRender } = createHarness({
@@ -81,10 +81,7 @@ describe("tui command handlers", () => {
const renderOrders = requestRender.mock.invocationCallOrder;
expect(renderOrders.some((order) => order > sendingOrder)).toBe(true);
if (typeof resolveSend !== "function") {
throw new Error("expected sendChat to be pending");
}
(resolveSend as (value: { runId: string }) => void)({ runId: "r1" });
resolveSend({ runId: "r1" });
await pending;
expect(setActivityStatus).toHaveBeenCalledWith("waiting");
});