feat: add native code edit event to session transcript
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- typescript
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.completedmodel
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
- 主要语言
- TypeScript
- 星标
- 1.6k
- 派生
- 135
- 平均合并
- 13 小时 34 分钟
- 30 天内合并 PR
- 47
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rivet-dev/agents 的其他 Issue
-
enhancement
难度 3/5 1-2 天 新手友好度 45/100
rivet-dev/agents#371 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 68/100
rivet-dev/agents#370 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 68/100
rivet-dev/agents#319 · 2 条评论 ·
维护者通常 1 天内回复
-
High-level SDK cannot authenticate current ACP adapters with dynamic auth methods可能已有人在做 @gauravch-code 于 15 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 48/100
rivet-dev/agents#313 · 1 条评论 ·
维护者通常 1 天内回复
-
bug: codex model variants are out of order可能已有人在做 @c7ozkan 于 225 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 58/100
rivet-dev/agents#145 · 1 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
维护者通常 1 天内回复
-
needs-area
难度 2/5 1-3 小时 新手友好度 68/100
Azure/typespec-azure#5936 ·
维护者通常 1 天内回复
-
难度 2/5 半天 新手友好度 72/100
vercel-labs/scriptc#2910 ·
维护者通常 1 天内回复
-
automation missing-model model-sync provider:fireworks-ai
难度 2/5 1-3 小时 新手友好度 72/100
anomalyco/models.dev#12458 ·
维护者通常 1 天内回复