feat: refine codex live chat context flows
This commit is contained in:
@@ -5,6 +5,7 @@ import { readFile, rm, stat } from 'node:fs/promises';
|
||||
import path from 'node:path';
|
||||
import { promisify } from 'node:util';
|
||||
import { env } from '../config/env.js';
|
||||
import { resolveMainProjectRoot } from './main-project-root-service.js';
|
||||
import {
|
||||
getRuntimeWorkServerBuildInfo,
|
||||
readLatestWorkServerBuildInfo,
|
||||
@@ -243,7 +244,7 @@ async function findLatestSourceChangeInPath(rootPath: string, targetPath: string
|
||||
}
|
||||
|
||||
async function readLatestAppSourceChange() {
|
||||
const projectRoot = normalizePath(env.SERVER_COMMAND_MAIN_PROJECT_ROOT || env.SERVER_COMMAND_PROJECT_ROOT);
|
||||
const projectRoot = normalizePath(resolveMainProjectRoot());
|
||||
let latest: SourceChangeInfo | null = null;
|
||||
|
||||
for (const relativePath of APP_SOURCE_TARGET_PATHS) {
|
||||
@@ -575,7 +576,7 @@ async function restartViaDockerSocket(definition: ServerDefinition) {
|
||||
|
||||
function getServerDefinitions(): ServerDefinition[] {
|
||||
const projectRoot = normalizePath(env.SERVER_COMMAND_PROJECT_ROOT);
|
||||
const mainProjectRoot = normalizePath(env.SERVER_COMMAND_MAIN_PROJECT_ROOT);
|
||||
const mainProjectRoot = normalizePath(resolveMainProjectRoot());
|
||||
|
||||
return [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user