rm aliases

This commit is contained in:
Julius Marminge committed 2026-03-31 14:30:06 -07:00
1 parent c5472479b6
commit 9b3394c1d6
2 files changed
+5 -17

No files matched your search

+3 -11
View File
@@ -31,7 +31,8 @@ import {
resolveCodexModelForAccount,
type CodexAccountSnapshot,
} from "./provider/codexAccount";
import { buildCodexInitializeParams, killCodexChildProcess } from "./provider/codexAppServer";
import { buildCodexInitializeParams } from "./provider/codexAppServer";
import { killChildProcessTree } from "./process/killTree";
export { buildCodexInitializeParams } from "./provider/codexAppServer";
export { readCodexAccountSnapshot, resolveCodexModelForAccount } from "./provider/codexAccount";
@@ -306,15 +307,6 @@ function mapCodexRuntimeMode(runtimeMode: RuntimeMode): {
};
}
/**
* On Windows with `shell: true`, `child.kill()` only terminates the `cmd.exe`
* wrapper, leaving the actual command running. Use `taskkill /T` to kill the
* entire process tree instead.
*/
function killChildTree(child: ChildProcessWithoutNullStreams): void {
killCodexChildProcess(child);
}
export function normalizeCodexModelSlug(
model: string | undefined | null,
preferredId?: string,
@@ -908,7 +900,7 @@ export class CodexAppServerManager extends EventEmitter<CodexAppServerManagerEve
context.output.close();
if (!context.child.killed) {
killChildTree(context.child);
killChildProcessTree(context.child);
}
this.updateSession(context, {
+2 -6
View File
@@ -1,4 +1,4 @@
import { spawn, type ChildProcessWithoutNullStreams } from "node:child_process";
import { spawn } from "node:child_process";
import readline from "node:readline";
import { readCodexAccountSnapshot, type CodexAccountSnapshot } from "./codexAccount";
import { killChildProcessTree } from "../process/killTree";
@@ -28,10 +28,6 @@ export function buildCodexInitializeParams() {
} as const;
}
export function killCodexChildProcess(child: ChildProcessWithoutNullStreams): void {
killChildProcessTree(child);
}
export async function probeCodexAccount(input: {
readonly binaryPath: string;
readonly homePath?: string;
@@ -55,7 +51,7 @@ export async function probeCodexAccount(input: {
output.close();
child.removeAllListeners();
if (!child.killed) {
killCodexChildProcess(child);
killChildProcessTree(child);
}
};