feat(chat): Comments and review in VS Code, like the OpenChamber desktop app (#1724)

* feat(chat): render code comments as cards instead of fenced text

* fix(vscode): route Add Comment to the active session editor panel

* fix(chat): persist queued inline comments and tighten file-chip path matching

* feat(vscode): comment on code from the editor

* fix(chat): keep attached context in the message and broadcast comment removal

* fix(vscode): hold every pending comment and gate both entry points on the workspace

* fix(vscode): let only the owning surface decide its comment threads

* fix(vscode): drop a comment removed while its delivery was still in flight

* test(vscode): cover the in-flight comment removal guard

* test(vscode): cover comment removal reaching every chat surface

* fix(vscode): give up on a comment the chat never confirmed holding

* fix(vscode): retract a comment everywhere before reporting it discarded

* fix(chat): preserve queued comment cards

* fix: preserve inline comment context across send paths

* fix(chat): preserve command routing with context

* fix(chat): keep unavailable actions on normal send path

---------

Co-authored-by: Bohdan Triapitsyn <artmore@protonmail.com>
This commit is contained in:
Felipe Gené
2026-09-05 12:28:17 +03:00
committed by GitHub
co-authored by Bohdan Triapitsyn
parent d323b51a0a
commit a12b9be443
35 changed files with 2192 additions and 131 deletions
+7
View File
@@ -13,6 +13,13 @@
"OpenChamber [Improve Code]: No active editor": "OpenChamber [Améliorer le code] : aucun éditeur actif",
"OpenChamber [Improve Code]: No text selected": "OpenChamber [Améliorer le code] : aucun texte sélectionné",
"Improve the following Code:": "Améliorez le code suivant :",
"OpenChamber [Add Comment]: No active editor": "OpenChamber [Ajouter un commentaire] : aucun éditeur actif",
"OpenChamber [Add Comment]: File is outside the workspace": "OpenChamber [Ajouter un commentaire] : le fichier est en dehors de l’espace de travail",
"OpenChamber [Add Comment]: The comment never reached the chat and was discarded": "OpenChamber [Ajouter un commentaire] : le commentaire n’est jamais arrivé dans la discussion et a été abandonné",
"Comment on line {0}": "Commentaire sur la ligne {0}",
"Comment on lines {0}-{1}": "Commentaire sur les lignes {0} à {1}",
"OpenChamber": "OpenChamber",
"Not sent yet": "Pas encore envoyé",
"OpenCode CLI not found. Install it and ensure it's in PATH.": "OpenCode CLI introuvable. Installez-le et assurez-vous qu’il est dans le PATH.",
"OpenCode CLI not found. Please install it and ensure it's in PATH.": "OpenCode CLI introuvable. Veuillez l’installer et vérifier qu’il est dans le PATH.",
"More Info": "Plus d’informations",
+7
View File
@@ -13,6 +13,13 @@
"OpenChamber [Improve Code]: No active editor": "OpenChamber [Improve Code]: No active editor",
"OpenChamber [Improve Code]: No text selected": "OpenChamber [Improve Code]: No text selected",
"Improve the following Code:": "Improve the following Code:",
"OpenChamber [Add Comment]: No active editor": "OpenChamber [Add Comment]: No active editor",
"OpenChamber [Add Comment]: File is outside the workspace": "OpenChamber [Add Comment]: File is outside the workspace",
"OpenChamber [Add Comment]: The comment never reached the chat and was discarded": "OpenChamber [Add Comment]: The comment never reached the chat and was discarded",
"Comment on line {0}": "Comment on line {0}",
"Comment on lines {0}-{1}": "Comment on lines {0}-{1}",
"OpenChamber": "OpenChamber",
"Not sent yet": "Not sent yet",
"OpenCode CLI not found. Install it and ensure it's in PATH.": "OpenCode CLI not found. Install it and ensure it's in PATH.",
"OpenCode CLI not found. Please install it and ensure it's in PATH.": "OpenCode CLI not found. Please install it and ensure it's in PATH.",
"More Info": "More Info",