From 59f533e560e7a5f7d4b3de714485a68a9555014a Mon Sep 17 00:00:00 2001 From: Blomios Date: Sat, 15 Aug 2026 20:01:23 +0200 Subject: [PATCH] =?UTF-8?q?chore(idea):=20bookkeeping=20#218=20QA=20verte?= =?UTF-8?q?=20+=20cl=C3=B4ture=20#217?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .ideai/tickets/217/carnet.md | 22 +++++++++++++---- .ideai/tickets/217/issue.md | 6 ++--- .ideai/tickets/218/carnet.md | 47 ++++++++++++++++++++++++++++++++++++ .ideai/tickets/218/issue.md | 17 +++++++++++++ .ideai/tickets/counter.json | 2 +- .ideai/tickets/index.json | 16 +++++++++++- 6 files changed, 100 insertions(+), 10 deletions(-) create mode 100644 .ideai/tickets/218/carnet.md create mode 100644 .ideai/tickets/218/issue.md diff --git a/.ideai/tickets/217/carnet.md b/.ideai/tickets/217/carnet.md index e26a100d..336ca981 100644 --- a/.ideai/tickets/217/carnet.md +++ b/.ideai/tickets/217/carnet.md @@ -1,8 +1,8 @@ --- issueRef: "#217" -version: 6 +version: 8 updatedBy: {"kind":"agent","agent_id":"a6c6ea12-bfc6-4bdc-8031-324102dfa34d"} -updatedAt: 1786815105743 +updatedAt: 1786815249567 --- ## Triage 2026-08-15 - Symptôme rapporté: la conversation disparaît parfois quand l'utilisateur passe de son layout agent au layout Git Graph puis revient. @@ -44,6 +44,18 @@ updatedAt: 1786815105743 - `cargo test -p application --test layout_usecases` => OK (27) - Conclusion: correction frontend, pas backend. -## QA rouge 2026-08-15 -- `npm test -- CustomAgentChatView.test.tsx` => ROUGE sur le scénario `conversationId` connu / `sessionId` nul qui déclenchait encore `launchAgentChat`. -- Ce gap a été corrigé dans l'itération frontend suivante. +## QA +- Premier passage QA: ROUGE sur le scénario `conversationId` connu / `sessionId` nul qui déclenchait encore `launchAgentChat`. +- Deuxième passage QA: VERT. +- Vérification explicite validée: + - retour de layout avec `conversationId` connu et `sessionId` nul => conversation visible restaurée + - pas de relance froide implicite + - `launchAgentChat` non appelé + - la session cachée est réattachée et le replay restaure les messages visibles + +## Git +- Commit fix: `581063c` — `fix(cli): restaure la conversation au retour de layout via cache conversationId+sessionId — #217` +- Commit bookkeeping: `33c6fc6` — `chore(idea): bookkeeping #217 QA verte + clôture #216` +- Merge local: `3d466f9` — `merge(cli): conservation conversation au switch layout Git Graph — #217 (QA verte)` +- Branche finale active: `develop` +- Aucun push effectué. diff --git a/.ideai/tickets/217/issue.md b/.ideai/tickets/217/issue.md index 28f5c603..7575bef9 100644 --- a/.ideai/tickets/217/issue.md +++ b/.ideai/tickets/217/issue.md @@ -2,7 +2,7 @@ id: "6ea02306-17ba-4085-a8fb-df9e7d061e35" number: 217 title: "Conversation disparaît parfois au switch layout agent vers Git Graph" -status: "qa" +status: "closed" priority: "high" sprint: null links: [] @@ -11,7 +11,7 @@ attachments: [] createdBy: {"kind":"agent","agent_id":"a6c6ea12-bfc6-4bdc-8031-324102dfa34d"} updatedBy: {"kind":"agent","agent_id":"a6c6ea12-bfc6-4bdc-8031-324102dfa34d"} createdAt: 1786814259134 -updatedAt: 1786815105743 -version: 6 +updatedAt: 1786815249567 +version: 8 --- Investigation et correction du cas où une conversation disparaît parfois lorsqu'on passe du layout agent au layout Git Graph, puis retour vers le layout agent. Vérifier si le problème vient de la persistance UI, de la projection layout, ou d'un problème de réattache conversation/session. \ No newline at end of file diff --git a/.ideai/tickets/218/carnet.md b/.ideai/tickets/218/carnet.md new file mode 100644 index 00000000..1ea0aa55 --- /dev/null +++ b/.ideai/tickets/218/carnet.md @@ -0,0 +1,47 @@ +--- +issueRef: "#218" +version: 4 +updatedBy: {"kind":"agent","agent_id":"a6c6ea12-bfc6-4bdc-8031-324102dfa34d"} +updatedAt: 1786816820854 +--- +## Triage 2026-08-15 +- Symptôme rapporté: le tag de version local créé avant rebuild AppImage semble absent de la vue Git Graph. +- Vérification Git factuelle: `v0.12.0` et `v0.13.0` existent bien localement, annotés, pointent sur des commits ancêtres de `develop`. +- Cadrage UX: un tag local doit apparaître sur la ligne du commit dans la colonne tags, sans dépendre d'un remote. +- Cadrage Architect: la vue sait déjà rendre les refs `tag: ...`; la cause probable est l'extraction backend Git / revwalk / peeler de tags annotés, plus qu'un bug de rendu frontend. +- Couches à inspecter d'abord: `crates/infrastructure/src/git/mod.rs`, puis DTO/transport, puis `frontend/src/features/git/GitGraphView.tsx` si nécessaire. +- Branche locale créée par Git: `fix/218-gitgraph-local-tags-display` depuis `develop` @ `3d466f9`. + +## Diagnostic DevBackend +- Bug backend confirmé dans `crates/infrastructure/src/git/mod.rs`. +- Cause précise: `log_graph` utilisait `reference.resolve().target()`. Pour un tag annoté, cet OID est celui de l'objet tag, pas celui du commit ciblé; le tag ne pouvait donc pas matcher la ligne du commit dans le revwalk. +- Correctif livré: + - ajout de `reference_commit_oid()` qui peel chaque ref vers un commit (`peel(ObjectType::Commit)`) + - `log_graph` utilise maintenant l'OID peelé pour construire `ref_map` +- Fichiers modifiés: + - `crates/infrastructure/src/git/mod.rs` + - `crates/infrastructure/tests/git_repository.rs` +- Tests DevBackend: + - `cargo fmt --package infrastructure` => OK + - `cargo test -p infrastructure --test git_repository git_graph_labels_annotated_tags_on_their_target_commit` => OK + - `cargo test -p infrastructure --test git_repository` => OK (4) + - `cargo test -p application --test git_usecases` => OK (7) + - `cargo test -p app-tauri --test dto_git` => OK (14) + +## Diagnostic DevFrontend +- Rendu frontend confirmé OK tel quel. +- `GitGraphView` affiche déjà les refs préfixées `tag:` dans la colonne tags et les exclut des branches. +- Aucun correctif frontend nécessaire. +- Test DevFrontend: + - `npm test -- gitGraphView.test.tsx` => OK (10) + +## Verdict QA +- Verdict: VERT. +- Vérification explicite validée: + - un tag annoté local est peelé vers le commit cible + - `log_graph` renvoie bien `tag: v0.13.0` dans `GraphCommit.refs` + - la vue Git Graph sait déjà afficher cette ref dans la colonne tags +- Tests QA: + - `cargo test -p infrastructure --test git_repository git_graph_labels_annotated_tags_on_their_target_commit -- --nocapture` => OK + - `cargo test -p infrastructure --test git_repository -- --nocapture` => OK + - `npm test -- gitGraphView.test.tsx` => OK diff --git a/.ideai/tickets/218/issue.md b/.ideai/tickets/218/issue.md new file mode 100644 index 00000000..f8c1d53b --- /dev/null +++ b/.ideai/tickets/218/issue.md @@ -0,0 +1,17 @@ +--- +id: "43a1c0b0-0e95-44f4-941d-4e4b5f26c88e" +number: 218 +title: "Git Graph: tag de version local non affiché après rebuild AppImage" +status: "qa" +priority: "high" +sprint: null +links: [] +agentRefs: [] +attachments: [] +createdBy: {"kind":"agent","agent_id":"a6c6ea12-bfc6-4bdc-8031-324102dfa34d"} +updatedBy: {"kind":"agent","agent_id":"a6c6ea12-bfc6-4bdc-8031-324102dfa34d"} +createdAt: 1786816423426 +updatedAt: 1786816820854 +version: 4 +--- +Investigation et correction possible du fait que le tag de version créé localement avant rebuild AppImage semble ne pas être visible dans la vue Git Graph. Vérifier si le tag existe bien côté dépôt mais n'est pas projeté/rendu dans Git Graph. \ No newline at end of file diff --git a/.ideai/tickets/counter.json b/.ideai/tickets/counter.json index c9cd9bd7..e34bf403 100644 --- a/.ideai/tickets/counter.json +++ b/.ideai/tickets/counter.json @@ -1,3 +1,3 @@ { - "nextNumber": 218 + "nextNumber": 219 } \ No newline at end of file diff --git a/.ideai/tickets/index.json b/.ideai/tickets/index.json index b163e7b3..e6730c04 100644 --- a/.ideai/tickets/index.json +++ b/.ideai/tickets/index.json @@ -2932,6 +2932,20 @@ "issueRef": "#217", "path": "217", "title": "Conversation disparaît parfois au switch layout agent vers Git Graph", + "status": "closed", + "priority": "high", + "sprint": null, + "assignedAgentIds": [], + "createdBy": { + "kind": "agent", + "agent_id": "a6c6ea12-bfc6-4bdc-8031-324102dfa34d" + }, + "updatedAt": 1786815249567 + }, + { + "issueRef": "#218", + "path": "218", + "title": "Git Graph: tag de version local non affiché après rebuild AppImage", "status": "qa", "priority": "high", "sprint": null, @@ -2940,7 +2954,7 @@ "kind": "agent", "agent_id": "a6c6ea12-bfc6-4bdc-8031-324102dfa34d" }, - "updatedAt": 1786815105743 + "updatedAt": 1786816820854 } ] } \ No newline at end of file