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

feat: add native code edit event to session transcript

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

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

Chưa có ai nhận issue này.

Đá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
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
api, backend

Hướng nghiên cứu

Start with docs/session-transcript-schema.mdx and docs/conversion.mdx to understand the existing event and conversion models, then inspect the HTTP/SSE tests. Define the structured code-edit event and its sequencing, and consider the related issue #102. Done means actual file mutations produce the documented event and are covered end-to-end by HTTP/SSE tests.

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

Mô tả

Summary

Add a first-class/native code edit event in the session transcript so clients can render file edits directly without reconstructing them from tool output text.

Problem

Today, code edits are mostly inferred from tool output and post-hoc diffs. This is brittle and provider-dependent.

Proposal

Introduce a dedicated session event/item shape for code edits (or an equivalent normalized event) that includes structured edit metadata.

Suggested minimum fields:

  • file path
  • operation (create/update/delete/rename)
  • before/after hashes (if available)
  • patch/diff payload (or structured hunks)
  • tool/source attribution
  • timestamps / sequencing compatible with existing item.started -> item.delta -> item.completed model

Why

  • Makes UI rendering of edits deterministic
  • Avoids parsing free-form tool text
  • Improves parity across providers and event consumers
  • Simplifies downstream integrations that need edit timelines

Acceptance criteria

  • Session events expose a structured code-edit event for actual file mutations
  • Event shape is documented in docs/session-transcript-schema.mdx
  • Conversion docs are updated (docs/conversion.mdx)
  • HTTP/SSE tests cover the new event end-to-end

Related: #102

Ngôn ngữ chính
TypeScript
Star
1.6k
Fork
131
Merge trung bình
7 giờ 40 phút
Pull request đã merge (30 ngày)
29

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 rivet-dev/agents

Tất cả issue của rivet-dev/agents

Issue tương tự

Thêm issue về TypeScript

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.