Skip to content

Commit fec1370

Browse files
committed
Fix agent assertion task fixtures
1 parent ed980ef commit fec1370

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

codex-rs/core/src/agent_identity/assertion.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ mod tests {
110110
secrets_manager,
111111
);
112112
let agent_task = RegisteredAgentTask {
113+
binding_id: "chatgpt-account-account-123".to_string(),
114+
chatgpt_account_id: "account-123".to_string(),
115+
chatgpt_user_id: Some("user-123".to_string()),
113116
agent_runtime_id: "agent-123".to_string(),
114117
task_id: "task-123".to_string(),
115118
registered_at: "2026-03-23T12:00:00Z".to_string(),
@@ -147,6 +150,9 @@ mod tests {
147150
.await
148151
.expect("seed test identity");
149152
let agent_task = RegisteredAgentTask {
153+
binding_id: "chatgpt-account-account-123".to_string(),
154+
chatgpt_account_id: "account-123".to_string(),
155+
chatgpt_user_id: Some("user-123".to_string()),
150156
agent_runtime_id: "agent-123".to_string(),
151157
task_id: "task-123".to_string(),
152158
registered_at: "2026-03-23T12:00:00Z".to_string(),

codex-rs/core/src/client_tests.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ async fn model_client_with_agent_task(
156156
.await
157157
.expect("seed test identity");
158158
let agent_task = RegisteredAgentTask {
159+
binding_id: "chatgpt-account-account-123".to_string(),
160+
chatgpt_account_id: "account-123".to_string(),
161+
chatgpt_user_id: Some("user-123".to_string()),
159162
agent_runtime_id: stored_identity.agent_runtime_id.clone(),
160163
task_id: "task-123".to_string(),
161164
registered_at: "2026-03-23T12:00:00Z".to_string(),

0 commit comments

Comments
 (0)