mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 05:02:14 +00:00
chore(coding-agent): minor cleanup in rpc-mode and shell utils
This commit is contained in:
parent
79268f92d0
commit
b35950c5bd
2 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue