fix(glmt): resolve thinking block signature timing race

- guard against empty content in _createSignatureDeltaEvent()

- consolidate debug flags: CCS_DEBUG_LOG, CCS_GLMT_DEBUG → CCS_DEBUG

- add 6 regression tests for signature race condition

- update docs with simplified debug flag usage
This commit is contained in:
kaitranntt committed 2025-11-11 21:47:41 -05:00
1 parent 4e3592d711
commit 513e5b693f
15 files changed
+384 -46

No files matched your search

@@ -7,7 +7,7 @@
* Simulates 3 consecutive messages to test if thinking blocks
* appear in all messages or only the first one.
*
* Usage: CCS_DEBUG_LOG=1 node test-thinking-multi-message.js
* Usage: CCS_DEBUG=1 node test-thinking-multi-message.js
*/
const { spawn } = require('child_process');
@@ -67,7 +67,7 @@ async function runMessage(messageIndex) {
stdio: ['ignore', 'pipe', 'pipe'],
env: {
...process.env,
CCS_DEBUG_LOG: '1'
CCS_DEBUG: '1'
}
});