chore(coding-agent): minor cleanup in rpc-mode and shell utils

This commit is contained in:
Mario Zechner 2026-01-22 14:37:17 +01:00
parent 79268f92d0
commit b35950c5bd
2 changed files with 1 additions and 3 deletions

View file

@ -262,7 +262,6 @@ export async function runRpcMode(session: AgentSession): Promise<never> {
waitForIdle: () => session.agent.waitForIdle(),
newSession: async (options) => {
const success = await session.newSession({ parentSession: options?.parentSession });
// Note: setup callback runs but no UI feedback in RPC mode
if (success && options?.setup) {
await options.setup(session.sessionManager);
}

View file

@ -1,8 +1,7 @@
import { existsSync } from "node:fs";
import { delimiter } from "node:path";
import { spawn, spawnSync } from "child_process";
import { getSettingsPath } from "../config.js";
import { getBinDir } from "../config.js";
import { getBinDir, getSettingsPath } from "../config.js";
import { SettingsManager } from "../core/settings-manager.js";
let cachedShellConfig: { shell: string; args: string[] } | null = null;