mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-01 00:10:21 +00:00
perf: expand base vitest thread lanes
This commit is contained in:
@@ -29,6 +29,7 @@ type SupportedOpenAICompatFields = Pick<
|
||||
|
||||
type SupportedThinkingFormat =
|
||||
| NonNullable<OpenAICompletionsCompat["thinkingFormat"]>
|
||||
| "openrouter"
|
||||
| "qwen-chat-template";
|
||||
|
||||
export type ModelCompatConfig = SupportedOpenAICompatFields & {
|
||||
|
||||
@@ -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("");
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user