mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-27 15:13:37 +08:00
Group F (PR regression): drop the dead sessionGenerationBusy gate in scheduleRestartSessionWithRuntimeConfig. It only cleared on a status 'idle' event that a normal turn never emits, so any runtime restart after the first turn was parked forever and the 2nd startSession never fired. The new active-turn deferral (deferredRuntimeRestarts, drained by the turn's 'result' callback) now correctly guards mid-turn restarts. Removes now-dead pendingDeferredRuntimeRestarts / drainPendingRuntimeRestart. Group A: install ripgrep in the server-checks job so project-scoped markdown config discovery (output-styles, slash-commands, agents) works. Group B: clear inherited NVM_DIR in shell-env tests so the CI runner's real /home/runner/.nvm can't shadow the fake .zshrc value under test. Group C: pin/restore ProviderService.serverPort (process-wide static) in conversation-service and cron-scheduler tests so leaked random ports from other suites don't break the hardcoded 3456 ANTHROPIC_BASE_URL assertions. Group D: assert process.platform instead of hardcoded 'darwin' in full-flow. Group E: assert response shape (key present) not an exact empty servers array for /api/mcp + /api/plugins H5 auth checks; they run at repo root which has a tracked .mcp.json. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>