feat(chat): work-status panel, and MCP auth and settings fixes (#2776)

Adds a work-status panel beside the transcript. Context fill, model and
cost, todos, running subagents and the permission requests blocking
them, branch and working-tree state, MCP servers, pinned messages and
context sources were scattered across the header, the composer and the
context panel — a blocked subagent was reported nowhere at all. The
panel reads them from live channels rather than persisted history, and
becomes an overlay where the chat is too narrow to seat a column.

It is on by default, including for existing installs. Because it now
carries these readouts, the desktop header and composer drop the ones it
duplicates: todo and changed-files chips, usage and MCP tabs. VS Code
and mobile keep theirs — neither hosts the panel.

Fixes MCP authorization, which was broken from the panel, invalidated by
a directory switch through a redirect URI that encoded the working
directory, and left the desktop app in the background because browsers
will not follow a custom-protocol link without a user gesture. The
settings page no longer asks the user to understand the MCP spec before
adding a server: one field takes the command or the link, with the kind
inferred and a visible override, and client-registration fields appear
only when a server actually asks for its own credentials.

Also: skills load from the panel instead of only when the composer's
slash autocomplete opens; the header button names the current instance
rather than falling through to the word "Instance" for relay hosts.

Three new optional UI settings keys, all migrated. No change to stored
MCP server configuration.
This commit is contained in:
Bohdan Triapitsyn
2026-08-09 19:30:25 +03:00
parent 493a618efc
commit f4743ea060
69 changed files with 5777 additions and 894 deletions
+89 -3
View File
@@ -1364,8 +1364,6 @@ export const dict = {
'header.github.accountSource.cli': 'CLI',
'header.services.openWithCurrent': 'Instance ouverte, utilisation et MCP (actuel : {current})',
'header.services.open': 'Services ouverts, utilisation et MCP',
'header.services.tooltip.currentInstanceWithShortcuts': 'Instance actuelle : {current} ({toggle} ; onglet suivant {nextTab})',
'header.services.tooltip.servicesWithShortcuts': 'Services ({toggle} ; onglet suivant {nextTab})',
'header.services.title': 'Services',
'header.services.viewAria': 'Voir les prestations',
'header.services.closeAria': 'Fermer les prestations',
@@ -1376,7 +1374,6 @@ export const dict = {
'header.services.used': 'Utilisé',
'header.services.remaining': 'Restant',
'header.services.modelFamily.other': 'Autre',
'header.services.shutdownDev': 'Arrêter OpenChamber',
'header.actions.openPlanAria': 'Plan ouvert',
"header.actions.toggleChangesPanel": "Panneau des changements",
"header.actions.toggleChangesPanelAria": "Basculer le panneau des changements",
@@ -2940,6 +2937,95 @@ export const dict = {
'vscodeLayout.actions.archiveAllSuccess': '{count} session(s) archivée(s)',
'vscodeLayout.actions.archiveAllError': 'Impossible d’archiver {count} session(s)',
'vscodeLayout.actions.cancel': 'Annuler',
'chat.workStatus.ariaLabel': 'État du travail',
'chat.workStatus.context.label': 'Contexte',
'chat.workStatus.git.changedFileSingle': '{count} fichier modifié',
'chat.workStatus.git.changedFilePlural': '{count} fichiers modifiés',
'chat.workStatus.pr.untitled': 'Pull request sans titre',
'chat.workStatus.pr.draft': 'Brouillon',
'chat.workStatus.pr.checks': 'Vérifications',
'chat.workStatus.pr.checksFailed': '{count} en échec',
'chat.workStatus.pr.checksPending': '{count} en cours',
'chat.workStatus.pr.checksPassed': '{count} réussies',
'chat.workStatus.attention.merge': 'Fusion en cours',
'chat.workStatus.attention.rebase': 'Rebase en cours',
'chat.workStatus.attention.cherryPick': 'Cherry-pick en cours',
'chat.workStatus.attention.revert': 'Revert en cours',
'chat.workStatus.attention.bisect': 'Bisect en cours',
'chat.workStatus.subagent.done': 'Terminé',
'chat.workStatus.subagent.untitled': 'Sous-agent',
'chat.workStatus.mcp.toggle': 'Basculer {name}',
'chat.workStatus.mcp.needsAuth': 'Se connecter',
'chat.workStatus.mcp.failed': 'Échec',
'chat.workStatus.pinned.unavailable': 'Message épinglé',
'chat.workStatus.section.session': 'Session',
'chat.workStatus.section.repository': 'Dépôt',
'chat.workStatus.section.subagents': 'Sous-agents',
'chat.workStatus.section.mcp': 'MCP',
'chat.workStatus.section.pinned': 'Messages épinglés',
'chat.workStatus.section.tasks': 'Tâches',
'chat.workStatus.subagent.working': 'travaille',
'chat.workStatus.subagent.needsPermission': 'demande une autorisation',
'chat.workStatus.subagent.askedQuestion': 'a posé une question',
'chat.workStatus.section.contextBreakdown': 'Sources de contexte',
'chat.workStatus.breakdown.skills': 'Compétences',
'chat.workStatus.breakdown.mcp': 'Serveurs MCP',
'chat.workStatus.action.openChanges': 'Ouvrir les modifications',
'chat.workStatus.action.openGit': 'Ouvrir le panneau Git',
'chat.workStatus.action.openPr': 'Ouvrir la pull request',
'chat.workStatus.action.openSubagent': 'Ouvrir {name}',
'chat.workStatus.section.usage': 'Utilisation',
'chat.workStatus.goal.open': 'Gérer l’objectif',
'chat.workStatus.goal.pause': 'Mettre en pause',
'chat.workStatus.goal.resume': 'Reprendre',
'chat.workStatus.goal.updateFailed': 'Impossible de mettre à jour l’objectif',
'chat.workStatus.pinned.unpin': 'Détacher le message',
'chat.workStatus.pinned.reveal': 'Aller au message',
'chat.workStatus.pinned.unpinFailed': 'Impossible de détacher le message',
'chat.workStatus.action.openContext': 'Ouvrir le panneau de contexte',
'chat.workStatus.section.linkedIssues': 'Liés',
'chat.workStatus.linkedIssues.open': 'Ouvrir #{number} sur GitHub',
'chat.workStatus.linkedIssues.unlink': 'Retirer le lien',
'chat.workStatus.linkedIssues.unlinkFailed': 'Impossible de retirer le lien',
'chat.workStatus.linkedIssues.link': 'Lier à la session',
'chat.workStatus.linkedIssues.linkFailed': 'Impossible de lier',
'chat.workStatus.breakdown.issueCountSingle': '{count} ticket',
'chat.workStatus.breakdown.issueCountPlural': '{count} tickets',
'chat.workStatus.breakdown.prCountSingle': '{count} PR',
'chat.workStatus.breakdown.prCountPlural': '{count} PR',
'chat.workStatus.breakdown.skillCountSingle': '{count} compétence',
'chat.workStatus.breakdown.skillCountPlural': '{count} compétences',
'chat.workStatus.breakdown.mcpCountSingle': '{count} MCP',
'chat.workStatus.breakdown.mcpCountPlural': '{count} MCP',
'chat.workStatus.sections.open': 'Choisir les sections',
'chat.workStatus.sections.dialogTitle': 'Sections du panneau',
'chat.workStatus.sections.dialogDescription': 'Choisis ce qu\'affiche le panneau d\'état. Les sections masquées conservent leurs données, elles sont seulement absentes du panneau.',
'header.workStatusPanel.toggleAria': 'Basculer le panneau d\'état',
'header.workStatusPanel.hide': 'Masquer l\'état du travail',
'header.workStatusPanel.show': 'Afficher l\'état du travail',
'chat.workStatus.mcp.authorizeOpenFailed': 'Impossible d\'ouvrir la page d\'autorisation',
'chat.workStatus.mcp.authorizeFailed': 'Échec de l\'autorisation',
'mcpDropdown.toast.authorizeOpenFailed': 'Impossible d\'ouvrir la page d\'autorisation',
'mcpDropdown.toast.authorizeFailed': 'Échec de l\'autorisation',
'header.services.tooltip.currentInstance': 'Instance actuelle : {current} ({toggle})',
'header.workStatusPanel.showOverlay': 'Afficher l\'état par-dessus le chat',
'settings.mcp.page.connection.title': 'Comment le joindre',
'settings.mcp.page.connection.description': 'Colle la commande qui le démarre, ou le lien vers un serveur hébergé.',
'settings.mcp.page.registration.title': 'Ce serveur exige sa propre app',
'settings.mcp.page.registration.description': 'Il ne fournit pas d’identifiants automatiquement. Crée une app dans les réglages du service, colle ses informations ici, puis connecte-toi.',
'settings.mcp.page.registration.callbackLabel': 'Donne cette adresse au service',
'settings.mcp.page.registration.clientId': 'ID de l’app',
'settings.mcp.page.registration.clientSecret': 'Secret de l’app',
'settings.mcp.page.registration.afterSaving': 'Enregistre, puis appuie sur Autoriser.',
'settings.mcp.page.toast.copiedCallbackUrl': 'Adresse copiée',
'settings.mcp.page.toast.clipboardWriteFailed': 'Impossible de copier dans le presse-papiers',
'settings.mcp.page.scope.everywhere': 'Disponible dans tous les projets',
'settings.mcp.page.scope.thisProject': 'Seulement dans ce projet',
'settings.mcp.page.env.description': 'Valeurs dont le serveur a besoin, par exemple une clé d’API.',
'settings.mcp.page.connection.kindCommand': 'Commande',
'settings.mcp.page.connection.kindLink': 'Lien',
'settings.mcp.page.connection.hintCommand': 'S’exécute sur cette machine. Collez une commande entière : elle est découpée en un argument par ligne.',
'settings.mcp.page.connection.hintLink': 'Se connecte à un serveur hébergé par quelqu’un d’autre. Collez son adresse https.',
} as const;
export type I18nKey = keyof typeof dict;