style: fixed formatting in merged test and session files
This commit is contained in:
@@ -552,9 +552,20 @@ describe("Cursor exec local-work tracking (issue #4593)", () => {
|
||||
},
|
||||
};
|
||||
|
||||
await handleServerMessage(serverMsg, output, stream, state, new Map(), h2Request, execHandlers, undefined, {
|
||||
sawTokenDelta: false,
|
||||
}, []);
|
||||
await handleServerMessage(
|
||||
serverMsg,
|
||||
output,
|
||||
stream,
|
||||
state,
|
||||
new Map(),
|
||||
h2Request,
|
||||
execHandlers,
|
||||
undefined,
|
||||
{
|
||||
sawTokenDelta: false,
|
||||
},
|
||||
[],
|
||||
);
|
||||
|
||||
expect(state.resolvedMcpToolCallIds.has("call-mcp-1")).toBe(true);
|
||||
});
|
||||
|
||||
@@ -6594,7 +6594,7 @@ export class AgentSession {
|
||||
*/
|
||||
beginDispose(): void {
|
||||
this.#isDisposed = true;
|
||||
this.#titleGenerationAbortController.abort();
|
||||
this.#titleGenerationAbortController.abort();
|
||||
this.#abortAutolearnCapture();
|
||||
this.#flushPendingIrcAsides();
|
||||
this.yieldQueue.clear();
|
||||
|
||||
@@ -8,10 +8,7 @@ import { CombinedAutocompleteProvider } from "@oh-my-pi/pi-tui/autocomplete";
|
||||
describe("/clear slash command alias", () => {
|
||||
it("ranks the new-session action above fuzzy description matches", async () => {
|
||||
const provider = new CombinedAutocompleteProvider(
|
||||
[
|
||||
...BUILTIN_SLASH_COMMANDS,
|
||||
{ name: "autoresearch", description: "Clear stale research results" },
|
||||
],
|
||||
[...BUILTIN_SLASH_COMMANDS, { name: "autoresearch", description: "Clear stale research results" }],
|
||||
process.cwd(),
|
||||
);
|
||||
|
||||
|
||||
@@ -52,7 +52,13 @@ describe("task label generation", () => {
|
||||
return response.promise;
|
||||
});
|
||||
|
||||
const label = generateTaskLabel("Investigate shutdown", createRegistry(model), createSettings(model), undefined, controller.signal);
|
||||
const label = generateTaskLabel(
|
||||
"Investigate shutdown",
|
||||
createRegistry(model),
|
||||
createSettings(model),
|
||||
undefined,
|
||||
controller.signal,
|
||||
);
|
||||
await started.promise;
|
||||
controller.abort();
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@ function restoreSearchApiKeyEnv(): void {
|
||||
else process.env.KIMI_SEARCH_API_KEY = originalKimiSearchApiKey;
|
||||
}
|
||||
|
||||
|
||||
async function withLocalAuthStorage<T>(run: (authStorage: AuthStorage) => Promise<T>): Promise<T> {
|
||||
const dir = await fs.mkdtemp(path.join(os.tmpdir(), "web-search-kimi-auth-"));
|
||||
const authStorage = await AuthStorage.create(path.join(dir, "auth.db"));
|
||||
|
||||
Reference in New Issue
Block a user