mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-10 19:33:37 +08:00
fix: raise observer turn budget
This commit is contained in:
@@ -170,17 +170,17 @@ Rules:
|
|||||||
PROMPT
|
PROMPT
|
||||||
|
|
||||||
timeout_seconds="${ECC_OBSERVER_TIMEOUT_SECONDS:-120}"
|
timeout_seconds="${ECC_OBSERVER_TIMEOUT_SECONDS:-120}"
|
||||||
max_turns="${ECC_OBSERVER_MAX_TURNS:-10}"
|
max_turns="${ECC_OBSERVER_MAX_TURNS:-20}"
|
||||||
exit_code=0
|
exit_code=0
|
||||||
|
|
||||||
case "$max_turns" in
|
case "$max_turns" in
|
||||||
''|*[!0-9]*)
|
''|*[!0-9]*)
|
||||||
max_turns=10
|
max_turns=20
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "$max_turns" -lt 4 ]; then
|
if [ "$max_turns" -lt 4 ]; then
|
||||||
max_turns=10
|
max_turns=20
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Ensure CWD is PROJECT_DIR so the relative analysis_relpath resolves correctly
|
# Ensure CWD is PROJECT_DIR so the relative analysis_relpath resolves correctly
|
||||||
|
|||||||
@@ -2461,7 +2461,7 @@ async function runTests() {
|
|||||||
const observerLoopSource = fs.readFileSync(path.join(__dirname, '..', '..', 'skills', 'continuous-learning-v2', 'agents', 'observer-loop.sh'), 'utf8');
|
const observerLoopSource = fs.readFileSync(path.join(__dirname, '..', '..', 'skills', 'continuous-learning-v2', 'agents', 'observer-loop.sh'), 'utf8');
|
||||||
|
|
||||||
assert.ok(observerLoopSource.includes('ECC_OBSERVER_MAX_TURNS'), 'observer-loop should allow max-turn overrides');
|
assert.ok(observerLoopSource.includes('ECC_OBSERVER_MAX_TURNS'), 'observer-loop should allow max-turn overrides');
|
||||||
assert.ok(observerLoopSource.includes('max_turns="${ECC_OBSERVER_MAX_TURNS:-10}"'), 'observer-loop should default to 10 turns');
|
assert.ok(observerLoopSource.includes('max_turns="${ECC_OBSERVER_MAX_TURNS:-20}"'), 'observer-loop should default to 20 turns');
|
||||||
assert.ok(!observerLoopSource.includes('--max-turns 3'), 'observer-loop should not hardcode a 3-turn limit');
|
assert.ok(!observerLoopSource.includes('--max-turns 3'), 'observer-loop should not hardcode a 3-turn limit');
|
||||||
assert.ok(observerLoopSource.includes('ECC_SKIP_OBSERVE=1'), 'observer-loop should suppress observe.sh for automated sessions');
|
assert.ok(observerLoopSource.includes('ECC_SKIP_OBSERVE=1'), 'observer-loop should suppress observe.sh for automated sessions');
|
||||||
assert.ok(observerLoopSource.includes('ECC_HOOK_PROFILE=minimal'), 'observer-loop should run automated analysis with the minimal hook profile');
|
assert.ok(observerLoopSource.includes('ECC_HOOK_PROFILE=minimal'), 'observer-loop should run automated analysis with the minimal hook profile');
|
||||||
|
|||||||
Reference in New Issue
Block a user