Restore SDK expectations and use the public inbox view in cleanup tests
This commit is contained in:
1 parent
9e34a5e8e8
commit
c0242b0efe
5 files changed
+7
-7
No files matched your search
@@ -604,7 +604,7 @@ it('does not resume retained inbox work when stopped during post-turn cleanup',
|
||||
await running
|
||||
expect(f.native.held).toEqual([])
|
||||
expect(f.agent.session.snapshotEvents().filter(event => event.type === 'turn/start')).toHaveLength(1)
|
||||
expect(f.agent.inbox.hasPending).toBe(true)
|
||||
expect(f.agent.inbox.nextStep).toHaveLength(1)
|
||||
})
|
||||
|
||||
it('ignores an unattached Session ending while another task holds input', async () => {
|
||||
|
||||
@@ -984,7 +984,7 @@
|
||||
"item": {
|
||||
"messageId": "{{message:1}}",
|
||||
"rating": "positive",
|
||||
"note": "Turn resources released.",
|
||||
"note": "The explanation is clear now.",
|
||||
"version": "{{feedback-version:2}}",
|
||||
"createdAt": 0,
|
||||
"updatedAt": 0
|
||||
@@ -2258,7 +2258,7 @@
|
||||
"item": {
|
||||
"messageId": "{{message:1}}",
|
||||
"rating": "positive",
|
||||
"note": "Turn resources released.",
|
||||
"note": "The explanation is clear now.",
|
||||
"version": "{{feedback-version:2}}",
|
||||
"createdAt": 0,
|
||||
"updatedAt": 0
|
||||
|
||||
@@ -45,6 +45,6 @@
|
||||
{"type":"command/done","data":{"commandId":"{{command:1}}","kind":"success","text":"Feedback recorded for session {{parent}}\nAnonymous user: {{anonymous-user}}."}}
|
||||
{"type":"feedback/record","data":{"category":"other"}}
|
||||
{"type":"feedback/message-put","data":{"sessionId":"{{parent}}","item":{"messageId":"{{message:1}}","rating":"negative","note":"Explain the result.","category":"task-result","version":"{{feedback-version:1}}","createdAt":0,"updatedAt":0}}}
|
||||
{"type":"feedback/message-put","data":{"sessionId":"{{parent}}","item":{"messageId":"{{message:1}}","rating":"positive","note":"Turn resources released.","version":"{{feedback-version:2}}","createdAt":0,"updatedAt":0}}}
|
||||
{"type":"feedback/message-put","data":{"sessionId":"{{parent}}","item":{"messageId":"{{message:1}}","rating":"positive","note":"The explanation is clear now.","version":"{{feedback-version:2}}","createdAt":0,"updatedAt":0}}}
|
||||
{"type":"feedback/message-delete","data":{"sessionId":"{{parent}}","messageId":"{{message:1}}"}}
|
||||
{"type":"turn/end","data":{"turn":1,"reason":{"kind":"completed"}}}
|
||||
@@ -1460,7 +1460,7 @@
|
||||
"item": {
|
||||
"messageId": "{{message:1}}",
|
||||
"rating": "positive",
|
||||
"note": "Turn resources released.",
|
||||
"note": "The explanation is clear now.",
|
||||
"version": "{{feedback-version:2}}",
|
||||
"createdAt": 0,
|
||||
"updatedAt": 0
|
||||
@@ -4868,7 +4868,7 @@
|
||||
"item": {
|
||||
"messageId": "{{message:1}}",
|
||||
"rating": "positive",
|
||||
"note": "Turn resources released.",
|
||||
"note": "The explanation is clear now.",
|
||||
"version": "{{feedback-version:2}}",
|
||||
"createdAt": 0,
|
||||
"updatedAt": 0
|
||||
|
||||
@@ -62,6 +62,6 @@
|
||||
{"type":"command/done","data":{"commandId":"{{command:1}}","kind":"success","text":"Feedback recorded for session {{parent}}\nAnonymous user: {{anonymous-user}}."}}
|
||||
{"type":"feedback/record","data":{"category":"other"}}
|
||||
{"type":"feedback/message-put","data":{"sessionId":"{{parent}}","item":{"messageId":"{{message:1}}","rating":"negative","note":"Explain the result.","category":"task-result","version":"{{feedback-version:1}}","createdAt":0,"updatedAt":0}}}
|
||||
{"type":"feedback/message-put","data":{"sessionId":"{{parent}}","item":{"messageId":"{{message:1}}","rating":"positive","note":"Turn resources released.","version":"{{feedback-version:2}}","createdAt":0,"updatedAt":0}}}
|
||||
{"type":"feedback/message-put","data":{"sessionId":"{{parent}}","item":{"messageId":"{{message:1}}","rating":"positive","note":"The explanation is clear now.","version":"{{feedback-version:2}}","createdAt":0,"updatedAt":0}}}
|
||||
{"type":"feedback/message-delete","data":{"sessionId":"{{parent}}","messageId":"{{message:1}}"}}
|
||||
{"type":"turn/end","data":{"turn":1,"reason":{"kind":"completed"}}}
|
||||
Reference in new issue
Block a user