Skip to content

Commit 49d8d0c

Browse files
committed
codex: keep session runtime lookup scoped to callers
1 parent 42aa3e4 commit 49d8d0c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎plugins/codex/scripts/lib/codex.mjs‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ import { readJsonFile } from "./fs.mjs";
3838
import { BROKER_BUSY_RPC_CODE, BROKER_ENDPOINT_ENV, CodexAppServerClient } from "./app-server.mjs";
3939
import { loadBrokerSession } from "./broker-lifecycle.mjs";
4040
import { binaryAvailable, runCommand } from "./process.mjs";
41-
import { resolveWorkspaceRoot } from "./workspace.mjs";
4241

4342
const SERVICE_NAME = "claude_code_codex_plugin";
4443
const TASK_THREAD_PREFIX = "Codex Companion Task";
@@ -674,8 +673,7 @@ export function getCodexAvailability(cwd) {
674673
}
675674

676675
export function getSessionRuntimeStatus(env = process.env, cwd = process.cwd()) {
677-
const workspaceRoot = resolveWorkspaceRoot(cwd);
678-
const endpoint = env?.[BROKER_ENDPOINT_ENV] ?? loadBrokerSession(workspaceRoot)?.endpoint ?? null;
676+
const endpoint = env?.[BROKER_ENDPOINT_ENV] ?? loadBrokerSession(cwd)?.endpoint ?? null;
679677
if (endpoint) {
680678
return {
681679
mode: "shared",

0 commit comments

Comments
 (0)