Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/codex/codex-structured-question-order.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ beforeEach(async () => {
now: () => (clock += 1)
})
expect((await host.attach(CALLER, hostTestAttachParams(null))).ok).toBe(true)
const page = host.history({ sessionId: SESSION, direction: 'tail' })
const page = await host.history({ sessionId: SESSION, direction: 'tail' })
if (!page.ok) {
throw new Error('no history page')
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,9 @@ describe('a start the chat needed and did not get', () => {
acquire.mockRejectedValueOnce(new Error('spawn codex ENOENT'))
const first = await accept('first')
const second = await accept('second')
await eventually(() => expect(submission(second)?.dispatchState).toBe('rejected'))
await eventually(async () => expect((await submission(second))?.dispatchState).toBe('rejected'))

const snapshot = host.journalSnapshot(SESSION)
const snapshot = await host.journalSnapshot(SESSION)
const errorRow = snapshot.items.find(
(item) => item.body.kind === 'status' && item.body.tone === 'error'
)?.itemId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ describe('a send into a published session whose child ended before startup', ()
expect.stringMatching(/stopped before it finished starting: .*not signed in/)
])
// Accepted before the restart it needed, so the chat draws it above the row naming the cause.
const snapshot = host.journalSnapshot(SESSION)
const snapshot = await host.journalSnapshot(SESSION)
const causeRow = snapshot.items.findLast((item) => item.body.kind === 'status')?.itemId
const shown = [agentJournalSubmissionKey(held), causeRow]
expect(
Expand Down
Loading