chore: update plan automation and chat status UI

This commit is contained in:
2026-04-23 20:27:40 +09:00
parent 6e863feafd
commit 346d4c2208
26 changed files with 317 additions and 74 deletions

View File

@@ -3,7 +3,7 @@ import assert from 'node:assert/strict';
import { buildPlanNotificationData } from './plan-notification-service.js';
import { shouldNotifyPlanRestart } from './plan-notification-policy.js';
import { shouldTriggerRetryFromActionNote } from './plan-retry-policy.js';
import { issueActionSchema } from './plan-service.js';
import { issueActionSchema, shouldUseLocalMainPlanMode } from './plan-service.js';
test('shouldTriggerRetryFromActionNote detects missing-fix and verification follow-up requests', () => {
assert.equal(shouldTriggerRetryFromActionNote('누락된 거 다시 고쳐서 테스트해 줘'), true);
@@ -52,3 +52,9 @@ test('buildPlanNotificationData uses stable task key per plan', () => {
notificationKey: 'plan:17',
});
});
test('shouldUseLocalMainPlanMode keeps auto_worker on branch workflow', () => {
process.env.PLAN_LOCAL_MAIN_MODE = 'true';
assert.equal(shouldUseLocalMainPlanMode('auto_worker'), false);
assert.equal(shouldUseLocalMainPlanMode('none'), true);
});