Inkling 2 mini unable to call the `edit` tool

Đang mở
#66,840 6 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
developer-experience

Hướng nghiên cứu

The failure concerns how the model is prompted to pick the edit tool over shell, so start with the system prompt and tool descriptions that OpenCode sends to the model, and the edit tool's implementation. Reproducing needs the Inkling 2 mini model, which a newcomer may not have. Done means the model reliably calls edit on a simple file change without looping on shell calls, which likely needs maintainer input on the prompt design.

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

Mô tả

area/model-behavior platform/linux type/feature version/v2
Description

For some reason, Inkling 2 mini cannot call OpenCode's edit tool.
It will always result in looping endlessly. I don't know if anything can/must be done on OpenCode's side, maybe a system prompt adjustment?
The model will keep calling shell instead of edit like this:

===== [85] seq 847 | shell | call call_b9ec76ab6cd98882 | status completed | exit 0 =====
INPUT: {"command": "true"}
OUTPUT:
(no output)

===== [86] seq 857 | shell | call call_e7212e738fa58cf8 | status completed | exit 0 =====
INPUT: {"command": "true"}
OUTPUT:
(no output)
Plugins

none

OpenCode version

2.4.2

Steps to reproduce

Load up Inkling-2-mini, tell it to edit any file, it will resort to python3 heredoc substitution or sed, if you tell it to use only edit and nothing else, it will fail and loop "echo " or "true" shell calls.

Screenshot
loop1 loop2 loop3
Operating System

Linux

Terminal

Konsole

Ngôn ngữ chính
TypeScript
Star
230k
Fork
31.3k
Merge trung bình
5 giờ 32 phút
Pull request đã merge (30 ngày)
453

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 anomalyco/opencode

Tất cả issue của anomalyco/opencode

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.