fix(cli): a link to a nested agent lands on the wrong file in Kilo and OpenCode builds

Aperta Adatta ai principianti
#1,163 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
83/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
cli, testing

Direzione di ricerca

Inizia dai risolutori dei collegamenti degli agenti in cli/src/contexts/tools/domain/profiles/kilo/build.ts e cli/src/contexts/tools/domain/profiles/opencode/build.ts, quindi confronta la gestione dei percorsi con flatAgentPath della strategia flat generica. Aggiungi un test fallimentare per un agente annidato in ciascuno strumento, poi aggiorna i risolutori affinché seguano la regola dei percorsi flat. Il lavoro è concluso quando entrambi i test confermano che i collegamenti puntano ai file degli agenti appiattiti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Description

In Kilo and OpenCode builds, a link from one agent's text to an agent nested under agents/<folder>/ resolves to a path that keeps the folder, while the agent file itself is written flattened. The link lands on a file that does not exist.

Affected file(s)

cli/src/contexts/tools/domain/profiles/kilo/build.ts, cli/src/contexts/tools/domain/profiles/opencode/build.ts (their own agent link resolvers)

Expected behaviour

A link to a nested agent resolves to the file the build writes, through the same rule as the generic flat strategy's flatAgentPath.

Observed behaviour

The generic flat strategy was aligned in #1158 (agent writer, command naming an agent, markdown link). The Kilo and OpenCode agent transforms still resolve links through their own resolvers, which do not drop the folder.

AI tool

Other: Kilo, OpenCode.

OS

macOS, Linux, Windows.

Additional context

No shipped plugin nests agents today, so no user is affected yet. The fix is a test with a nested agent on each of the two tools, red first.

Lingua principale
TypeScript
Stelle
481
Fork
45
Merge medio
23h 18m
PR unite (30g)
106

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ai-driven-dev/framework

Tutte le issue di ai-driven-dev/framework

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.