Inkling 2 mini unable to call the `edit` tool

Aberta
#66,840 6 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
25/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
typescript

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
TypeScript
Estrelas
230k
Forks
31.3k
Merge médio
5h 32min
PRs com merge (30d)
453

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de anomalyco/opencode

Todas as issues de anomalyco/opencode

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.