删除失效的Direct重试单测
移除已删除helper的测试导入。 删除已废弃的user-only自动重发用例。
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
import {
|
||||
isDirectCodexTurnAlreadyRunningError,
|
||||
unansweredDirectCodexConversationTurn,
|
||||
} from '../../src/App';
|
||||
import { isDirectCodexTurnAlreadyRunningError } from '../../src/App';
|
||||
import {
|
||||
act,
|
||||
agentRuntimeUserInputRequest,
|
||||
@@ -26,66 +23,6 @@ import {
|
||||
} from './harness';
|
||||
|
||||
export function registerProjectConversationTests() {
|
||||
it('replays only the latest unanswered Direct Codex turn with its original stable identity', () => {
|
||||
expect(
|
||||
unansweredDirectCodexConversationTurn([
|
||||
{
|
||||
role: 'user',
|
||||
text: '请重新生成美术',
|
||||
messageId: 'direct-codex:stable-turn-001:user',
|
||||
},
|
||||
]),
|
||||
).toEqual({
|
||||
prompt: '请重新生成美术',
|
||||
turnId: 'stable-turn-001',
|
||||
});
|
||||
expect(
|
||||
unansweredDirectCodexConversationTurn([
|
||||
{
|
||||
role: 'user',
|
||||
text: '请重新生成美术',
|
||||
messageId: 'direct-codex:stable-turn-001:user',
|
||||
},
|
||||
{
|
||||
role: 'assistant',
|
||||
text: '已完成',
|
||||
messageId: 'direct-codex:stable-turn-001:assistant',
|
||||
},
|
||||
]),
|
||||
).toBeNull();
|
||||
expect(
|
||||
unansweredDirectCodexConversationTurn([
|
||||
{
|
||||
role: 'user',
|
||||
text: '恢复较早的未回答回合',
|
||||
messageId: 'direct-codex:stable-turn-older:user',
|
||||
},
|
||||
{
|
||||
role: 'user',
|
||||
text: '较新的已回答回合',
|
||||
messageId: 'direct-codex:stable-turn-newer:user',
|
||||
},
|
||||
{
|
||||
role: 'assistant',
|
||||
text: '较新的回复',
|
||||
messageId: 'direct-codex:stable-turn-newer:assistant',
|
||||
},
|
||||
]),
|
||||
).toEqual({
|
||||
prompt: '恢复较早的未回答回合',
|
||||
turnId: 'stable-turn-older',
|
||||
});
|
||||
expect(
|
||||
unansweredDirectCodexConversationTurn([
|
||||
{
|
||||
role: 'user',
|
||||
text: '伪造回合',
|
||||
messageId: 'direct-codex:../unsafe:user',
|
||||
},
|
||||
]),
|
||||
).toBeNull();
|
||||
});
|
||||
|
||||
it('filters only the stable same-turn in-progress rejection from terminal Direct Codex failures', () => {
|
||||
expect(
|
||||
isDirectCodexTurnAlreadyRunningError(
|
||||
|
||||
Reference in New Issue
Block a user