API: Add abort/cancel turn endpoint
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
- 38/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- typescript
Hướng nghiên cứu
Start by tracing the existing POST /v1/sessions/{sessionId}/terminate endpoint and the daemon's agent integrations. Compare OpenCode's session.abort() with Claude Code's stdin cancellation, then investigate Codex and Amp support. Done means the abort endpoint cancels only the current turn, preserves the session, and defines the resulting event behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
The Sandbox Agent API needs an abort/cancel turn endpoint so that clients can stop an in-progress turn without terminating the entire session.
Currently, the only way to stop a running agent is POST /v1/sessions/{sessionId}/terminate, which destroys the session entirely. There's no way to cancel just the current turn and continue the conversation.
Proposed API
Add POST /v1/sessions/{sessionId}/abort that:
- Cancels the in-progress turn (stops the LLM request / agent subprocess work)
- Keeps the session alive so new messages can be sent
- Emits a
session.endedevent withreason: "terminated"for the current turn, or a new event type liketurn.aborted
Agent support
- OpenCode already has a native
session.abort()API that does exactly this - Claude Code supports Escape to cancel via stdin
- Codex — needs investigation
- Amp — needs investigation
The daemon would need to translate the universal abort into the appropriate agent-specific mechanism.
Related
- Gigacode ESC cancel: needs to call this endpoint once it exists (see linked gigacode issue)
🤖 Generated with Claude Code
- 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của rivet-dev/agents
-
skills add rivet-dev/skills -s sandbox-agent fails: the skill was removed from rivet-dev/skillsĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
rivet-dev/agents#319 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
rivet-dev/agents#313 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug: codex model variants are out of orderCó thể đã có người làm @c7ozkan đã nhận 207 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 58/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của rivet-dev/agents
Issue tương tự
-
fix(frontend): correct VITE_IS_DEVELPOMENT typo in shared/app.ts and align dev environment flagsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
vicharanashala/ajrasakha#1439 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add: TV5Monde AsieĐang mởapproved check:passed streams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
backnotprop/plannotator#1932 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 62/100
ibm-granite/granite.build#504 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
reproduced
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
anomalyco/opencode#55676 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày