[FEATURE]: Render custom file changes as inline TUI diffs
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 8/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- cli
Línea de trabajo
The payload names no source files, so the first step is to find out whether the public plugin API already offers a tool-call-scoped renderer or diff metadata. Read the related issues #15451, #33302, #21018 and #46268 to see what has been decided or rejected. This needs a maintainer decision on the renderer hook and diff schema before any code is written, so there is no clear done state yet.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I maintain opencode-fs-plugin, whose namespaced tools (such as fs_write, fs_cp, and fs_rm) create, modify, and delete files. Their results currently appear as generic tool output. Returning unified-diff text or file-change metadata does not make the TUI show the native expandable diff beneath the tool call.
Please provide a supported way for a custom tool to attach structured file changes to its own call and have the TUI render them inline using the native-style diff view. The change data needs to identify the path, patch, additions/deletions, and status (added/modified/deleted); it should support multiple files and define safe limits for binary or very large files. A documented renderer API or tool-call-scoped TUI extension point would also work.
If this is not planned for release, please clarify whether this can be achieved with the current public plugin APIs. If so, what renderer hook and diff metadata should a plugin provide? If not, please say that there is currently no supported way; a side panel is not equivalent to showing the diff under the originating tool call.
Related requests: #15451 (typed diff rendering for custom tools), #33302 and #21018 (extensible TUI tool rendering), and #46268 (per-assistant-message footer slot, not tool-call diff).
- Lenguaje dominante
- TypeScript
- Estrellas
- 230k
- Forks
- 31.3k
- Merge medio
- 5 h 32 min
- PR fusionados (30 d)
- 453
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de anomalyco/opencode
-
area/desktop platform/macos status/repro-plausible type/bug version/v2
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
anomalyco/opencode#67064 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 Medio día Aptitud para principiantes 82/100
anomalyco/opencode#67009 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
area/web type/feature version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
anomalyco/opencode#67001 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
skills: a Claude-compatible SKILL.md that fails to parse is dropped without any logPosiblemente ocupada @liwenjie200543 la tomó hace 2 días. Abiertoarea/plugins platform/linux reproduced type/bug version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
anomalyco/opencode#66970 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
tui: Mermaid renderer displays <b>/<strong> tags literally and ignores \n line breaksPosiblemente ocupada @argszero la tomó hace 2 días. Abiertoarea/tui platform/wsl status/repro-simulated type/bug version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
anomalyco/opencode#66773 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de anomalyco/opencode
Issues similares
-
enhancement feature/signals self-driving team/self-driving
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
PostHog/posthog#144208 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug good first issue web
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
triage: not actionable
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
oxc-project/oxc#30518 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug Claude useability
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
wazuh/wazuh-dashboard-plugins#9751 ·
Los mantenedores suelen responder en 1 día