Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

WebSocket turns carry only new input, so conversation-level plugins see less of a Codex session

Đang mở
#1,515 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Alan-Cha đang làm issue này rồi.

Từ ngày 27/10/2026.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
backend-api-design

Hướng nghiên cứu

Read the implementation from #1467 and trace how WebSocket turns are parsed into Extensions.Inference.Messages; compare that with the HTTPS request path and the handling of previous_response_id. Decide which of the three proposed approaches preserves the intended plugin behavior, then identify the affected relay and plugin tests. Done means conversation-level plugins receive the expected context or can reliably detect incremental input.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Follow-up to #1467, which carries Codex's Responses API WebSocket and parses each turn on it.

The limitation

Over HTTPS, every Codex turn is a POST whose body carries the whole conversation. Over the WebSocket, only the first turn on a socket does. Every later turn carries only the new input items, plus a previous_response_id naming the turn before. The server keeps the earlier context. That is part of why Codex prefers the socket.

#1467 parses each turn exactly as its body reads, so on a socket's later turns Extensions.Inference.Messages holds only the delta, not the conversation.

Who it affects

  • Unaffected: inference-parser's model, tokens, cost and tool calls (these come from the response), and tool-prune (each turn carries its own tool list).
  • Affected: any plugin that judges the conversation as a whole, for example ibac reading the user's intent across turns, context-guru, or a policy (opa, cpex) written against input.inference.messages. Over the socket such a plugin sees less than it would over HTTPS for the same session.

Codex runs on laptop installs today, where none of those are in the default pipeline. So nothing is broken for current users, but a deployment that enables them for Codex would get weaker coverage without any sign of it.

Possible fixes

  1. Rebuild the conversation per socket. The relay already sees every turn's input and every response's output items. It could keep a running transcript per socket and present plugins the full message list, as an HTTPS body would carry. Cost: memory per open socket, and reproducing what the server reconstructs from previous_response_id.
  2. Flag the turn as incremental (for example, an Incremental field on InferenceExtension), so a conversation-level plugin can tell it is seeing a delta and decide for itself.
  3. Fall back for those pipelines. When the chain contains a plugin that needs the whole conversation, decline the socket (listener.responses_websockets: decline), so Codex uses HTTPS. That is available today as a manual setting.

Refs #1467, #1365.

Assisted-By: Claude (Anthropic AI) [email protected]

Ngôn ngữ chính
Go
Star
21
Fork
43
Merge trung bình
14 giờ 25 phút
Pull request đã merge (30 ngày)
245

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của rossoctl/cortex

Tất cả issue của rossoctl/cortex

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.