feat(devin): run the edit hooks on apply_patch edits
Les mainteneurs répondent en général sous 1 jour
@ryzizub y travaille déjà.
Depuis le 6/11/2026.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
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 .*.
- Langage dominant
- Dart
- Étoiles
- 3
- Forks
- 0
- Merge moyen
- 2 j 4 h
- PR mergées (30 j)
- 40
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de VeryGoodOpenSource/vgv_ai_cli
-
feature
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
VeryGoodOpenSource/vgv_ai_cli#142 ·
Les mainteneurs répondent en général sous 1 jour
-
feature
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
VeryGoodOpenSource/vgv_ai_cli#141 ·
Les mainteneurs répondent en général sous 1 jour
-
feature
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
VeryGoodOpenSource/vgv_ai_cli#140 ·
Les mainteneurs répondent en général sous 1 jour
-
feature
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
VeryGoodOpenSource/vgv_ai_cli#139 ·
Les mainteneurs répondent en général sous 1 jour
-
feature
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
VeryGoodOpenSource/vgv_ai_cli#138 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de VeryGoodOpenSource/vgv_ai_cli
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Vinillian/book_tracker#208 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 64/100
-
Difficulté 1/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 2 jours
-
CI: a superseded Quality run keeps its test shards running and the new head waits behind themOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
fdittgen-png/deskilo#3753 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement good first issue help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 1 jour