chore: update plan automation and chat status UI
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user