feat(devin): run the edit hooks on apply_patch edits
I maintainer di solito rispondono entro 1 giorno
@ryzizub ci sta già lavorando.
Dal 6/11/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Description
Under Devin, a GPT model with the Codex tools setting edits files through apply_patch rather than edit and write. DevinTranslator names apply_patch in the edit matcher, so the hook fires, but apply_patch is a freeform tool: the model emits the patch text directly instead of JSON, so the payload carries no file_path. analyze.sh and format.sh read .tool_input.file_path, find nothing and exit 0. Dart files edited that way are never analyzed or formatted, and nothing says so at runtime.
The compat script can close this the way codex_compat.dart and copilot_compat.dart already do: fan out per file. The grammar is in the Devin binary, and it is the same envelope Copilot's fan-out already parses:
begin_patch: "*** Begin Patch" LF
add_hunk: "*** Add File: " filename LF add_line+
delete_hunk: "*** Delete File: " filename LF
update_hunk: "*** Update File: " filename LF change_move? change?
change_move: "*** Move to: " filename LF
Its tool prompt also says "You MUST always use the absolute path when specifying the target file", so no working directory is needed — which matters, because a Devin hook payload carries no cwd.
Requirements
-
devinCompatScriptre-runs the hook script once per file named by an*** Add File:,*** Update File:or*** Move to:header, withtool_nameset toWritefor an added file andEditotherwise, andtool_input.file_pathset to that path - Accept the patch text whether it arrives as a bare
tool_inputstring or inside an object, since which one Devin sends has not been captured yet - Fall through to current behaviour when the payload matches neither, so a wrong guess cannot regress anything
- Tests pin both payload shapes
Additional Context
Found while verifying #81. The real-session test on #95 confirmed the edit, write and exec payloads but could not reach apply_patch: the default model has no such tool, and the GPT models that do are behind a Pro plan.
To capture the real payload, someone on Pro can run devin -p "<prompt asking for an apply_patch edit of a .dart file>" --model gpt-6-astra-low against the installed config and log the stdin of a PostToolUse hook matching .*.
- Lingua principale
- Dart
- Stelle
- 3
- Fork
- 0
- Merge medio
- 2g 4h
- PR unite (30g)
- 40
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di VeryGoodOpenSource/vgv_ai_cli
-
feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
VeryGoodOpenSource/vgv_ai_cli#142 ·
I maintainer di solito rispondono entro 1 giorno
-
feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
VeryGoodOpenSource/vgv_ai_cli#141 ·
I maintainer di solito rispondono entro 1 giorno
-
feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
VeryGoodOpenSource/vgv_ai_cli#140 ·
I maintainer di solito rispondono entro 1 giorno
-
feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
VeryGoodOpenSource/vgv_ai_cli#139 ·
I maintainer di solito rispondono entro 1 giorno
-
feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
VeryGoodOpenSource/vgv_ai_cli#138 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di VeryGoodOpenSource/vgv_ai_cli
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Vinillian/book_tracker#208 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 2 giorni
-
CI: a superseded Quality run keeps its test shards running and the new head waits behind themAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
fdittgen-png/deskilo#3753 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno