Inkling 2 mini unable to call the `edit` tool

Offen
#66,840 6 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
25/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
TypeScript
Sterne
230k
Forks
31.3k
Ø Merge
5 Std. 32 Min.
Gemergte PRs (30 T.)
453

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus anomalyco/opencode

Alle Issues in anomalyco/opencode

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.