mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-30 22:13:28 +08:00
fix: clarify loop status empty output
This commit is contained in:
committed by
Affaan Mustafa
parent
9aace2e6fe
commit
708a8fd715
@@ -551,7 +551,9 @@ function formatText(payload) {
|
||||
if (payload.sessions.length === 0) {
|
||||
const lines = [
|
||||
`ECC loop status (${payload.generatedAt})`,
|
||||
`No Claude transcript JSONL files found under ${payload.source.transcriptRoot}.`,
|
||||
skippedLines.length > 0
|
||||
? 'No readable Claude transcript JSONL files were found.'
|
||||
: `No Claude transcript JSONL files found under ${payload.source.transcriptRoot}.`,
|
||||
];
|
||||
if (skippedLines.length > 0) {
|
||||
lines.push('Skipped transcript errors:');
|
||||
|
||||
@@ -313,6 +313,17 @@ function runTests() {
|
||||
assert.strictEqual(payload.errors[0].transcriptPath, missingTranscript);
|
||||
})) passed++; else failed++;
|
||||
|
||||
if (test('text output distinguishes explicit transcript read failures from empty discovery', () => {
|
||||
const missingTranscript = path.join(os.tmpdir(), `missing-loop-status-text-${Date.now()}.jsonl`);
|
||||
|
||||
const result = run(['--transcript', missingTranscript, '--now', NOW]);
|
||||
|
||||
assert.strictEqual(result.code, 0, result.stderr);
|
||||
assert.match(result.stdout, /No readable Claude transcript JSONL files were found/);
|
||||
assert.match(result.stdout, /Skipped transcript errors/);
|
||||
assert.ok(!result.stdout.includes('No Claude transcript JSONL files found under'));
|
||||
})) passed++; else failed++;
|
||||
|
||||
if (test('continues when one transcript directory cannot be read', () => {
|
||||
const homeDir = createTempHome();
|
||||
const blockedDir = path.join(homeDir, '.claude', 'projects', '-blocked-project');
|
||||
|
||||
Reference in New Issue
Block a user