ai_co_discuss 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -11,6 +11,13 @@
|
|
|
11
11
|
import { spawn } from 'node:child_process';
|
|
12
12
|
import { createInterface } from 'node:readline';
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* The under-development `context_management` feature lets the model call `new_context`, which drops the history without a
|
|
16
|
+
* summary and relies on `notes`/`history` tools to recover it; when those tools fail ("The backend request failed" on
|
|
17
|
+
* every call, 0.163, 2026-11), the turn forgets the room task and ends without answering. Room turns keep Codex's
|
|
18
|
+
* summarizing compaction instead.
|
|
19
|
+
*/
|
|
20
|
+
const CONTEXT_OVERRIDES = ['-c', 'features.context_management=false'];
|
|
14
21
|
const [executable, ...server_args] = process.argv.slice(2);
|
|
15
22
|
const pending = new Map();
|
|
16
23
|
let next_id = 0;
|
|
@@ -19,7 +26,7 @@ let turn_id = '';
|
|
|
19
26
|
let finished = false;
|
|
20
27
|
const queued_steers = [];
|
|
21
28
|
|
|
22
|
-
const server = spawn(executable, ['app-server', ...server_args], { windowsHide: true, shell: false, stdio: ['pipe', 'pipe', 'pipe'] });
|
|
29
|
+
const server = spawn(executable, ['app-server', ...CONTEXT_OVERRIDES, ...server_args], { windowsHide: true, shell: false, stdio: ['pipe', 'pipe', 'pipe'] });
|
|
23
30
|
server.stderr.pipe(process.stderr);
|
|
24
31
|
server.once('error', error => fail(error.message));
|
|
25
32
|
server.once('close', code => { if (!finished) fail(`Codex app-server 意外退出(${code})`); });
|