fix: sync instructions.md to per-group Codex session dirs

This commit is contained in:
Eyejoker
2026-03-11 19:01:09 +09:00
parent 2cbaa47101
commit 03c1a67649

View File

@@ -234,10 +234,10 @@ function prepareGroupEnvironment(
const authSrc = path.join(hostCodexDir, 'auth.json');
const authDst = path.join(sessionCodexDir, 'auth.json');
if (fs.existsSync(authSrc)) fs.copyFileSync(authSrc, authDst);
for (const file of ['config.toml', 'config.json']) {
for (const file of ['config.toml', 'config.json', 'instructions.md']) {
const src = path.join(hostCodexDir, file);
const dst = path.join(sessionCodexDir, file);
if (fs.existsSync(src) && !fs.existsSync(dst)) {
if (fs.existsSync(src)) {
fs.copyFileSync(src, dst);
}
}