fix: add log for container CLAUDE.md injection verification
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
|||||||
TIMEZONE,
|
TIMEZONE,
|
||||||
isReviewService,
|
isReviewService,
|
||||||
} from './config.js';
|
} from './config.js';
|
||||||
|
import { logger } from './logger.js';
|
||||||
import { isPairedRoomJid } from './db.js';
|
import { isPairedRoomJid } from './db.js';
|
||||||
import { readEnvFile } from './env.js';
|
import { readEnvFile } from './env.js';
|
||||||
import { getActiveCodexAuthPath } from './codex-token-rotation.js';
|
import { getActiveCodexAuthPath } from './codex-token-rotation.js';
|
||||||
@@ -565,6 +566,17 @@ export function prepareContainerSessionEnvironment(args: {
|
|||||||
const sessionClaudeMdPath = path.join(sessionDir, 'CLAUDE.md');
|
const sessionClaudeMdPath = path.join(sessionDir, 'CLAUDE.md');
|
||||||
if (sessionClaudeMd) {
|
if (sessionClaudeMd) {
|
||||||
fs.writeFileSync(sessionClaudeMdPath, sessionClaudeMd + '\n');
|
fs.writeFileSync(sessionClaudeMdPath, sessionClaudeMd + '\n');
|
||||||
|
logger.info(
|
||||||
|
{
|
||||||
|
sessionDir,
|
||||||
|
claudeMdSize: sessionClaudeMd.length,
|
||||||
|
hasPlatform: !!claudePlatformPrompt,
|
||||||
|
hasPairedRoom: !!claudePairedRoomPrompt,
|
||||||
|
hasGlobalMemory: !!globalClaudeMemory,
|
||||||
|
hasMemoryBriefing: !!memoryBriefing,
|
||||||
|
},
|
||||||
|
'Container session CLAUDE.md written',
|
||||||
|
);
|
||||||
} else if (fs.existsSync(sessionClaudeMdPath)) {
|
} else if (fs.existsSync(sessionClaudeMdPath)) {
|
||||||
fs.unlinkSync(sessionClaudeMdPath);
|
fs.unlinkSync(sessionClaudeMdPath);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user