perf: expand base vitest thread lanes

This commit is contained in:
Peter Steinberger
2026-03-22 11:59:01 -07:00
parent 412a3eb1ac
commit 8e09568bc7
8 changed files with 183 additions and 10 deletions

View File

@@ -29,6 +29,7 @@ type SupportedOpenAICompatFields = Pick<
type SupportedThinkingFormat =
| NonNullable<OpenAICompletionsCompat["thinkingFormat"]>
| "openrouter"
| "qwen-chat-template";
export type ModelCompatConfig = SupportedOpenAICompatFields & {

View File

@@ -1,11 +1,11 @@
import type { Component } from "@mariozechner/pi-tui";
import {
Input,
Key,
matchesKey,
type SelectItem,
SelectList,
type SelectListTheme,
getKeybindings,
} from "@mariozechner/pi-tui";
import chalk from "chalk";
import { fuzzyFilterLower, prepareSearchItems } from "./fuzzy-filter.js";
@@ -110,8 +110,7 @@ export class FilterableSelectList implements Component {
}
// Escape: clear filter or cancel
const kb = getKeybindings();
if (kb.matches(keyData, "tui.select.cancel")) {
if (matchesKey(keyData, Key.escape) || matchesKey(keyData, Key.ctrl("c"))) {
if (this.filterText) {
this.filterText = "";
this.input.setValue("");

View File

@@ -1,7 +1,7 @@
import {
type Component,
getKeybindings,
Input,
Key,
isKeyRelease,
matchesKey,
type SelectItem,
@@ -362,8 +362,7 @@ export class SearchableSelectList implements Component {
return;
}
const kb = getKeybindings();
if (kb.matches(keyData, "tui.select.cancel")) {
if (matchesKey(keyData, Key.escape) || matchesKey(keyData, Key.ctrl("c"))) {
if (this.onCancel) {
this.onCancel();
}