feat(webui): inspect file context in a live graph sidebar (#6562)

* feat(webui): inspect file context in a live graph sidebar

* refactor(webui): place preview controls in the shared sidebar header

* fix(webui): synchronize npm lockfile for graph dependencies

* fix(webui): preserve compacted context and refine graph inspection

* fix(context): harden provenance, request usage, and drawer lifecycle

* fix(webui): align source skeleton and browser fixtures

* perf(context): reuse source analysis and capture request graphs once

* perf(webui): compact graph history and render graph motion on canvas

* fix(webui): remove redundant context sidebar header

* style(webui): clarify context replay icon

* perf(webui): pace context replay on an adaptive timeline

* feat(webui): briefly reveal labels for new context nodes

* fix(webui): reveal new labels only for loaded context files

* fix(webui): restart graph animation clock after idle

* fix(webui): reveal labels when replay reverses node exit

* refactor(context): project file-use facts without retention tracking

* refactor(context): observe file reads outside agent execution

* fix(webui): animate context sidebar closing

* refactor(context): remove unused graph and usage panel code

* refactor(context): isolate prompt observation from execution metadata

* fix(webui): clarify cache rate and show context token usage

* fix(webui): abbreviate context token counts in thousands

* fix(webui): omit token unit from context usage details

* fix(webui): restore large source preview highlighting and panel elevation

* fix(webui): distinguish modifier scrolling from keyboard focus

* fix(webui): align preview tab and panel corner radii

* fix(webui): attach file tabs to the header divider

* fix(webui): use one action to toggle file preview mode

* fix(webui): use hover hint for context replay

* fix(webui): share composer layout between graph and file sidebars

* fix(webui): align sidebar bottom with composer surface

* fix(webui): restore mobile graph drawing and touch file details

* test(webui): align legacy cache assertions with current label

* perf(context): retain source analysis and bound graph animation work

* style(webui): add light elevation to user messages

* test(webui): await lazy graph scene before replay assertions

* fix(webui): align preview skeleton and browser contracts
This commit is contained in:
chengyongru authored and GitHub committed 2026-11-05 17:09:20 +08:00
1 parent 2b44088413
commit 519ed81132
132 files changed
+4673 -1159

No files matched your search

+12 -9
View File
@@ -2064,8 +2064,6 @@
"sessionInfo": "Session details"
},
"sessionInfo": {
"title": "Session",
"untitled": "Untitled topic",
"automations": "Automations",
"count": "{{count}}",
"loading": "Loading automations...",
@@ -2117,15 +2115,21 @@
"reauthFallback": "A fallback model handled this response.",
"reauthSettings": "Open model settings",
"context": {
"loaded": "Loaded",
"unloaded": "Not loaded",
"expand": "Expand context panel",
"collapse": "Collapse context panel",
"noFiles": "No context recorded yet",
"estimatedNodeTokens": "About {{value}} tokens",
"openFile": "Open file",
"history": "Context history",
"playHistory": "Play context history",
"tooltip": "Context {{percent}}%",
"detailsLabel": "Open context usage",
"panelTitle": "Context usage",
"contextTitle": "Context",
"recentRounds": "Recent rounds",
"inputTrend": "Input tokens",
"input": "Input tokens",
"cacheHitRate": "KV cache hit rate",
"output": "Output tokens",
"cacheHitRate": "Cache hit rate",
"tokenUsage": "{{used}} / {{limit}}",
"duration": "Generation time"
},
"queued": {
@@ -2533,8 +2537,7 @@
"fileEditDiffTruncated": "Diff truncated. Open the file for the full change.",
"usage": {
"context": "Context now: {{tokens}}{{capacity}}",
"requests": "{{count}} calls this turn",
"estimated": "Includes estimated usage"
"requests": "{{count}} calls this turn"
}
},
"recovery": {
+12 -9
View File
@@ -1859,8 +1859,6 @@
"sessionInfo": "Detalles de la sesión"
},
"sessionInfo": {
"title": "Sesión",
"untitled": "Tema sin título",
"automations": "Automatizaciones",
"count": "{{count}}",
"loading": "Cargando automatizaciones...",
@@ -1912,15 +1910,21 @@
"reauthFallback": "Un modelo alternativo respondió esta vez.",
"reauthSettings": "Abrir ajustes del modelo",
"context": {
"loaded": "Cargado",
"unloaded": "Sin cargar",
"expand": "Ampliar contexto",
"collapse": "Reducir contexto",
"noFiles": "Aún no hay contexto registrado",
"estimatedNodeTokens": "Unos {{value}} tokens",
"openFile": "Abrir archivo",
"history": "Historial de contexto",
"playHistory": "Reproducir historial del contexto",
"tooltip": "Contexto {{percent}}%",
"detailsLabel": "Abrir uso del contexto",
"panelTitle": "Uso del contexto",
"contextTitle": "Contexto",
"recentRounds": "Rondas recientes",
"inputTrend": "Tokens de entrada",
"input": "Tokens de entrada",
"cacheHitRate": "Tasa de aciertos de KV Cache",
"output": "Tokens de salida",
"cacheHitRate": "Tasa de aciertos de caché",
"tokenUsage": "{{used}} / {{limit}}",
"duration": "Tiempo de generación"
},
"queued": {
@@ -2148,8 +2152,7 @@
"fileEditDiffTruncated": "Diferencias truncadas. Abre el archivo para ver el cambio completo.",
"usage": {
"context": "Contexto más reciente: {{tokens}}{{capacity}} tokens",
"requests": "{{count}} solicitudes al modelo",
"estimated": "Incluye uso estimado"
"requests": "{{count}} solicitudes al modelo"
},
"activityThinkingFor": "Pensando durante {{duration}}",
"activityThought": "Pensamiento completado",
+12 -9
View File
@@ -1858,8 +1858,6 @@
"sessionInfo": "Détails de la session"
},
"sessionInfo": {
"title": "Session",
"untitled": "Sujet sans titre",
"automations": "Automatisations",
"count": "{{count}}",
"loading": "Chargement des automatisations...",
@@ -1911,15 +1909,21 @@
"reauthFallback": "Un modèle de secours a traité cette réponse.",
"reauthSettings": "Ouvrir les paramètres du modèle",
"context": {
"loaded": "Chargé",
"unloaded": "Non chargé",
"expand": "Agrandir le contexte",
"collapse": "Réduire le contexte",
"noFiles": "Aucun contexte enregistré pour le moment",
"estimatedNodeTokens": "Environ {{value}} tokens",
"openFile": "Ouvrir le fichier",
"history": "Historique du contexte",
"playHistory": "Lire l’historique du contexte",
"tooltip": "Contexte {{percent}} %",
"detailsLabel": "Ouvrir l’utilisation du contexte",
"panelTitle": "Utilisation du contexte",
"contextTitle": "Contexte",
"recentRounds": "Tours récents",
"inputTrend": "Jetons d’entrée",
"input": "Jetons d’entrée",
"cacheHitRate": "Taux de succès du cache KV",
"output": "Jetons de sortie",
"cacheHitRate": "Taux de réussite du cache",
"tokenUsage": "{{used}} / {{limit}}",
"duration": "Temps de génération"
},
"queued": {
@@ -2147,8 +2151,7 @@
"fileEditDiffTruncated": "Différences tronquées. Ouvrez le fichier pour voir la modification complète.",
"usage": {
"context": "Dernier contexte : {{tokens}}{{capacity}} tokens",
"requests": "{{count}} requêtes au modèle",
"estimated": "Inclut une estimation de l’utilisation"
"requests": "{{count}} requêtes au modèle"
},
"activityThinkingFor": "Réflexion pendant {{duration}}",
"activityThought": "Réflexion terminée",
+12 -9
View File
@@ -1858,8 +1858,6 @@
"sessionInfo": "Detail sesi"
},
"sessionInfo": {
"title": "Sesi",
"untitled": "Topik tanpa judul",
"automations": "Otomasi",
"count": "{{count}}",
"loading": "Memuat otomasi...",
@@ -1911,15 +1909,21 @@
"reauthFallback": "Model cadangan menangani respons ini.",
"reauthSettings": "Buka pengaturan model",
"context": {
"loaded": "Dimuat",
"unloaded": "Belum dimuat",
"expand": "Perbesar konteks",
"collapse": "Perkecil konteks",
"noFiles": "Belum ada konteks yang tercatat",
"estimatedNodeTokens": "Sekitar {{value}} token",
"openFile": "Buka berkas",
"history": "Riwayat konteks",
"playHistory": "Putar riwayat konteks",
"tooltip": "Konteks {{percent}}%",
"detailsLabel": "Buka penggunaan konteks",
"panelTitle": "Penggunaan konteks",
"contextTitle": "Konteks",
"recentRounds": "Putaran terbaru",
"inputTrend": "Token masukan",
"input": "Token masukan",
"cacheHitRate": "Rasio hit KV cache",
"output": "Token keluaran",
"cacheHitRate": "Rasio cache hit",
"tokenUsage": "{{used}} / {{limit}}",
"duration": "Waktu pembuatan"
},
"queued": {
@@ -2147,8 +2151,7 @@
"fileEditDiffTruncated": "Perbedaan dipotong. Buka file untuk melihat perubahan lengkap.",
"usage": {
"context": "Konteks terbaru: {{tokens}}{{capacity}} token",
"requests": "{{count}} permintaan model",
"estimated": "Termasuk penggunaan perkiraan"
"requests": "{{count}} permintaan model"
},
"activityThinkingFor": "Berpikir selama {{duration}}",
"activityThought": "Selesai berpikir",
+12 -9
View File
@@ -1858,8 +1858,6 @@
"sessionInfo": "セッション詳細"
},
"sessionInfo": {
"title": "セッション",
"untitled": "無題のトピック",
"automations": "自動タスク",
"count": "{{count}}",
"loading": "自動タスクを読み込み中...",
@@ -1911,15 +1909,21 @@
"reauthFallback": "今回の応答には代替モデルを使用しました。",
"reauthSettings": "モデル設定を開く",
"context": {
"loaded": "読み込み済み",
"unloaded": "未読み込み",
"expand": "コンテキストを拡大",
"collapse": "コンテキストを縮小",
"noFiles": "コンテキストはまだ記録されていません",
"estimatedNodeTokens": "約 {{value}} トークン",
"openFile": "ファイルを開く",
"history": "コンテキスト履歴",
"playHistory": "コンテキストの変化を再生",
"tooltip": "コンテキスト {{percent}}%",
"detailsLabel": "コンテキスト使用量を開く",
"panelTitle": "コンテキスト使用量",
"contextTitle": "コンテキスト",
"recentRounds": "最近のラウンド",
"inputTrend": "入力トークン",
"input": "入力トークン",
"cacheHitRate": "KV キャッシュヒット率",
"output": "出力トークン",
"cacheHitRate": "キャッシュヒット率",
"tokenUsage": "{{used}} / {{limit}}",
"duration": "生成時間"
},
"queued": {
@@ -2147,8 +2151,7 @@
"fileEditDiffTruncated": "差分は切り詰められました。完全な変更はファイルを開いて確認してください。",
"usage": {
"context": "最新のコンテキスト: {{tokens}}{{capacity}} トークン",
"requests": "モデルリクエスト {{count}} 回",
"estimated": "推定使用量を含みます"
"requests": "モデルリクエスト {{count}} 回"
},
"activityThinkingFor": "{{duration}}考えています",
"activityThought": "思考しました",
+12 -9
View File
@@ -1858,8 +1858,6 @@
"sessionInfo": "세션 세부 정보"
},
"sessionInfo": {
"title": "세션",
"untitled": "제목 없는 주제",
"automations": "자동화",
"count": "{{count}}",
"loading": "자동화를 불러오는 중...",
@@ -1911,15 +1909,21 @@
"reauthFallback": "이번 응답은 대체 모델이 처리했습니다.",
"reauthSettings": "모델 설정 열기",
"context": {
"loaded": "불러옴",
"unloaded": "불러오지 않음",
"expand": "컨텍스트 확대",
"collapse": "컨텍스트 축소",
"noFiles": "아직 기록된 컨텍스트가 없습니다",
"estimatedNodeTokens": "약 {{value}} 토큰",
"openFile": "파일 열기",
"history": "컨텍스트 기록",
"playHistory": "컨텍스트 기록 재생",
"tooltip": "컨텍스트 {{percent}}%",
"detailsLabel": "컨텍스트 사용량 열기",
"panelTitle": "컨텍스트 사용량",
"contextTitle": "컨텍스트",
"recentRounds": "최근 라운드",
"inputTrend": "입력 토큰",
"input": "입력 토큰",
"cacheHitRate": "KV 캐시 적중률",
"output": "출력 토큰",
"cacheHitRate": "캐시 적중률",
"tokenUsage": "{{used}} / {{limit}}",
"duration": "생성 시간"
},
"queued": {
@@ -2147,8 +2151,7 @@
"fileEditDiffTruncated": "변경 사항의 일부만 표시됩니다. 전체 내용은 파일을 열어 확인하세요.",
"usage": {
"context": "최근 컨텍스트: {{tokens}}{{capacity}} 토큰",
"requests": "모델 요청 {{count}}회",
"estimated": "예상 사용량 포함"
"requests": "모델 요청 {{count}}회"
},
"activityThinkingFor": "{{duration}} 동안 생각 중",
"activityThought": "생각함",
+12 -9
View File
@@ -1872,8 +1872,6 @@
"sessionInfo": "Detalhes da sessão"
},
"sessionInfo": {
"title": "Sessão",
"untitled": "Tópico sem título",
"automations": "Automações",
"count": "{{count}}",
"loading": "Carregando automações...",
@@ -1925,15 +1923,21 @@
"reauthFallback": "Um modelo alternativo respondeu desta vez.",
"reauthSettings": "Abrir configurações do modelo",
"context": {
"loaded": "Carregado",
"unloaded": "Não carregado",
"expand": "Expandir contexto",
"collapse": "Recolher contexto",
"noFiles": "Nenhum contexto registrado ainda",
"estimatedNodeTokens": "Cerca de {{value}} tokens",
"openFile": "Abrir arquivo",
"history": "Histórico de contexto",
"playHistory": "Reproduzir histórico do contexto",
"tooltip": "Contexto {{percent}}%",
"detailsLabel": "Abrir uso do contexto",
"panelTitle": "Uso do contexto",
"contextTitle": "Contexto",
"recentRounds": "Rodadas recentes",
"inputTrend": "Tokens de entrada",
"input": "Tokens de entrada",
"cacheHitRate": "Taxa de acertos do cache KV",
"output": "Tokens de saída",
"cacheHitRate": "Taxa de acertos de cache",
"tokenUsage": "{{used}} / {{limit}}",
"duration": "Tempo de geração"
},
"queued": {
@@ -2341,8 +2345,7 @@
"fileEditDiffTruncated": "Diferenças truncadas. Abra o arquivo para ver a alteração completa.",
"usage": {
"context": "Contexto atual: {{tokens}}{{capacity}}",
"requests": "{{count}} chamadas nesta rodada",
"estimated": "Inclui uso estimado"
"requests": "{{count}} chamadas nesta rodada"
}
},
"recovery": {
+12 -9
View File
@@ -1858,8 +1858,6 @@
"sessionInfo": "Chi tiết phiên"
},
"sessionInfo": {
"title": "Phiên",
"untitled": "Chủ đề chưa đặt tên",
"automations": "Tự động hóa",
"count": "{{count}}",
"loading": "Đang tải tự động hóa...",
@@ -1911,15 +1909,21 @@
"reauthFallback": "Mô hình dự phòng đã xử lý phản hồi này.",
"reauthSettings": "Mở cài đặt mô hình",
"context": {
"loaded": "Đã tải",
"unloaded": "Chưa tải",
"expand": "Mở rộng ngữ cảnh",
"collapse": "Thu gọn ngữ cảnh",
"noFiles": "Chưa có ngữ cảnh được ghi nhận",
"estimatedNodeTokens": "Khoảng {{value}} token",
"openFile": "Mở tệp",
"history": "Lịch sử ngữ cảnh",
"playHistory": "Phát lịch sử ngữ cảnh",
"tooltip": "Ngữ cảnh {{percent}}%",
"detailsLabel": "Mở mức sử dụng ngữ cảnh",
"panelTitle": "Mức sử dụng ngữ cảnh",
"contextTitle": "Ngữ cảnh",
"recentRounds": "Các lượt gần đây",
"inputTrend": "Token đầu vào",
"input": "Token đầu vào",
"cacheHitRate": "Tỷ lệ hit KV cache",
"output": "Token đầu ra",
"cacheHitRate": "Tỷ lệ trúng bộ nhớ đệm",
"tokenUsage": "{{used}} / {{limit}}",
"duration": "Thời gian tạo"
},
"queued": {
@@ -2147,8 +2151,7 @@
"fileEditDiffTruncated": "Chỉ hiển thị một phần thay đổi. Mở tệp để xem nội dung đầy đủ.",
"usage": {
"context": "Ngữ cảnh gần nhất: {{tokens}}{{capacity}} token",
"requests": "{{count}} yêu cầu mô hình",
"estimated": "Bao gồm mức sử dụng ước tính"
"requests": "{{count}} yêu cầu mô hình"
},
"activityThinkingFor": "Đang suy nghĩ trong {{duration}}",
"activityThought": "Đã suy nghĩ",
+12 -9
View File
@@ -2064,8 +2064,6 @@
"sessionInfo": "会话详情"
},
"sessionInfo": {
"title": "会话",
"untitled": "未命名话题",
"automations": "自动任务",
"count": "{{count}}",
"loading": "正在加载自动任务...",
@@ -2116,15 +2114,21 @@
"reauthFallback": "本次已由备用模型继续回复。",
"reauthSettings": "打开模型设置",
"context": {
"loaded": "已加载",
"unloaded": "未加载",
"expand": "展开上下文面板",
"collapse": "收起上下文面板",
"noFiles": "暂无上下文记录",
"estimatedNodeTokens": "约 {{value}} tokens",
"openFile": "打开文件",
"history": "上下文历史",
"playHistory": "播放上下文演变",
"tooltip": "上下文 {{percent}}%",
"detailsLabel": "打开上下文用量",
"panelTitle": "上下文用量",
"contextTitle": "上下文",
"recentRounds": "最近轮次",
"inputTrend": "输入 Token",
"input": "输入 Token",
"cacheHitRate": "KV Cache 命中率",
"output": "输出 Token",
"cacheHitRate": "缓存命中率",
"tokenUsage": "{{used}} / {{limit}}",
"duration": "生成耗时"
},
"queued": {
@@ -2533,8 +2537,7 @@
"fileEditDiffTruncated": "仅显示部分差异,打开文件可查看完整内容。",
"usage": {
"context": "当前上下文:{{tokens}}{{capacity}}",
"requests": "本轮 {{count}} 次模型调用",
"estimated": "包含估算用量"
"requests": "本轮 {{count}} 次模型调用"
}
},
"recovery": {
+12 -9
View File
@@ -1858,8 +1858,6 @@
"sessionInfo": "對話詳細資料"
},
"sessionInfo": {
"title": "對話",
"untitled": "未命名話題",
"automations": "自動任務",
"count": "{{count}}",
"loading": "正在載入自動任務…",
@@ -1911,15 +1909,21 @@
"reauthFallback": "本次已由備用模型繼續回覆。",
"reauthSettings": "開啟模型設定",
"context": {
"loaded": "已載入",
"unloaded": "未載入",
"expand": "展開上下文面板",
"collapse": "收合上下文面板",
"noFiles": "暫無上下文紀錄",
"estimatedNodeTokens": "約 {{value}} tokens",
"openFile": "開啟檔案",
"history": "上下文歷史",
"playHistory": "播放上下文演變",
"tooltip": "上下文 {{percent}}%",
"detailsLabel": "開啟上下文用量",
"panelTitle": "上下文用量",
"contextTitle": "上下文",
"recentRounds": "最近輪次",
"inputTrend": "輸入 Token",
"input": "輸入 Token",
"cacheHitRate": "KV Cache 命中率",
"output": "輸出 Token",
"cacheHitRate": "快取命中率",
"tokenUsage": "{{used}} / {{limit}}",
"duration": "生成耗時"
},
"queued": {
@@ -2146,8 +2150,7 @@
"fileEditDiffTruncated": "僅顯示部分差異,請開啟檔案查看完整內容。",
"usage": {
"context": "目前上下文:{{tokens}}{{capacity}} tokens",
"requests": "{{count}} 次模型請求",
"estimated": "包含估算用量"
"requests": "{{count}} 次模型請求"
},
"activityThinkingFor": "思考中,已 {{duration}}",
"activityThought": "已思考",