chore(coding-agent): minor cleanup in rpc-mode and shell utils
This commit is contained in:
@@ -262,7 +262,6 @@ export async function runRpcMode(session: AgentSession): Promise<never> {
|
|||||||
waitForIdle: () => session.agent.waitForIdle(),
|
waitForIdle: () => session.agent.waitForIdle(),
|
||||||
newSession: async (options) => {
|
newSession: async (options) => {
|
||||||
const success = await session.newSession({ parentSession: options?.parentSession });
|
const success = await session.newSession({ parentSession: options?.parentSession });
|
||||||
// Note: setup callback runs but no UI feedback in RPC mode
|
|
||||||
if (success && options?.setup) {
|
if (success && options?.setup) {
|
||||||
await options.setup(session.sessionManager);
|
await options.setup(session.sessionManager);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import { existsSync } from "node:fs";
|
import { existsSync } from "node:fs";
|
||||||
import { delimiter } from "node:path";
|
import { delimiter } from "node:path";
|
||||||
import { spawn, spawnSync } from "child_process";
|
import { spawn, spawnSync } from "child_process";
|
||||||
import { getSettingsPath } from "../config.js";
|
import { getBinDir, getSettingsPath } from "../config.js";
|
||||||
import { getBinDir } from "../config.js";
|
|
||||||
import { SettingsManager } from "../core/settings-manager.js";
|
import { SettingsManager } from "../core/settings-manager.js";
|
||||||
|
|
||||||
let cachedShellConfig: { shell: string; args: string[] } | null = null;
|
let cachedShellConfig: { shell: string; args: string[] } | null = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user