샌드박스·세션·실시간 처리 안정성 개선
샌드박스, 세션, Realtime Agents와 핵심 모듈의 오류 처리와 상태 보존을 다듬었습니다.
교안에 영향
샌드박스 경로 처리, Realtime Agents 승인 범위, chat completions 검증, handoff 동작을 설명한 옛 안내는 일부 맞지 않을 수 있습니다.
요약
- Sandboxes에서 sandbox provider 오류 상세, 아카이브 추출 제한, git repo subpaths 검증과 루트 처리, 별칭 보존을 수정했습니다. - Tracing에서 종료 시 best-effort shutdown, exporter 오류 시 워커 유지, no-op span ID 보호를 개선했습니다. - Sessions에서 hosted tool ID 보존, 손상된 항목 무시, MongoDB 메타데이터 타임스탬프와 created_at 보존을 수정했습니다. - Realtime Agents와 Other core modules, Extensions에서 승인 범위, 출력/입력 처리, 검증, 스키마, handoff, MCP, 중복 블록 문제를 여러 건 수정했습니다.
바뀐 것
수정
- Sandboxes에서 sandbox provider 오류 상세를 포함하도록 수정했습니다.
- Sandboxes에서 #3274 sandbox archive extraction 범위를 제한하도록 수정했습니다.
- Sandboxes에서 #3273 git repo subpaths 검증을 추가했습니다.
- Sandboxes에서 빈 GitRepo subpaths를 저장소 루트로 허용하도록 수정했습니다.
- Sandboxes에서 GitRepo root subpath aliases를 보존하도록 수정했습니다.
- Tracing에서 프로세스 종료 시 tracing shutdown을 best-effort로 처리하도록 수정했습니다.
- Tracing에서 exporter 오류가 나도 BatchTraceProcessor worker가 계속 동작하도록 수정했습니다.
- Tracing에서 no-op tracing span IDs를 안전하게 처리하도록 수정했습니다.
- Sessions에서 OpenAI conversation sessions의 required hosted tool IDs를 보존하도록 수정했습니다.
- Sessions에서 pop 중 손상된 항목을 건너뛰도록 수정했습니다.
- Sessions에서 MongoDB metadata timestamps를 추적하도록 수정했습니다.
- redis-session에서 created_at이 쓰기 간 보존되도록 수정했습니다.
- MongoDBSession.pop_item에서 손상된 문서를 건너뛰도록 수정했습니다.
- Realtime Agents에서 Realtime tool approvals를 qualified key 기준으로 범위 지정하도록 수정했습니다.
- Realtime Agents에서 알 수 없는 tool calls에 대해 realtime output을 보내도록 수정했습니다.
- Realtime Agents에서 close 시 realtime event iterators를 깨우도록 수정했습니다.
- Realtime Agents에서 오래된 delta accumulator보다 기존 transcript를 우선 보존하도록 수정했습니다.
- RealtimeSessionModelSettings에 max_output_tokens를 노출하도록 수정했습니다.
- RealtimeAgent fields를 __post_init__에서 검증하도록 수정했습니다.
- Realtime에서 user input 변환 중 invalid input_text parts를 건너뛰도록 수정했습니다.
- Realtime에서 input_type에 on_handoff가 없으면 UserError를 발생시키도록 수정했습니다.
- Realtime에서 output_item events의 output_audio content parts를 보존하도록 수정했습니다.
- Realtime에서 audio.input과 audio.output의 None 값을 미설정으로 처리하도록 수정했습니다.
- voice agents에서 AudioInput.to_base64()가 호출자 버퍼를 변경하지 않도록 수정했습니다.
- chat completions response-feature validation을 선택 적용하도록 수정했습니다.