Skip to content
Merged
Changes from 1 commit
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
10 changes: 9 additions & 1 deletion cmuxTests/FeedCoordinatorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -662,12 +662,20 @@ struct FeedCoordinatorTests {
requestId: "codex-zero-wait-permission-request"
)
let done = DispatchSemaphore(value: 0)
let accepted = DispatchSemaphore(value: 0)
DispatchQueue.global(qos: .userInitiated).async {
_ = FeedCoordinator.shared.ingestBlocking(event: event, waitTimeout: 0)
_ = FeedCoordinator.shared.ingestBlocking(
event: event,
waitTimeout: 0,
onAccepted: { _ in accepted.signal() }
)
done.signal()
}

#expect(done.wait(timeout: .now() + 2) == .success)
// Zero-wait ingress acknowledges before its asynchronous acceptance,
// so wait for the accepted delivery before reading the attention hook.
#expect(accepted.wait(timeout: .now() + 2) == .success)
#expect(
attention.events.count == 1,
"Codex TUI approvals must surface needs-input attention even without a Feed waiter"
Expand Down
Loading