codex-copilot-dx 1.4.9 → 1.4.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/REFERENCE.md CHANGED
@@ -259,7 +259,7 @@ For an identified conversation, hovering a point in the input-history chart show
259
259
 
260
260
  In **Settings → Advanced: request limits**, **Shared request-body limit** sets the shared gateway reservation to 32–128 MiB (default 32 MiB). It applies at the next CCDX start. `ccdx config limits` shows the saved and running values. `CCDX_MAX_INFLIGHT_BODY_BYTES` still overrides the saved value. This control does not change per-request size limits, the decompressed-body or response-history pools, Claude's separate Messages queue, or provider concurrency. Increasing this limit does not fix a provider timeout. Antigravity control GETs without a framed body do not enter the upload queue. Allowlisted read-only control POSTs with a known, uncompressed body of at most 8 KiB use four independent slots and an eight-request waiting limit. Other requests still use the shared body queue. `ccdx status --json` reports the short queue under `gemini.activity.short_control_queue`.
261
261
 
262
- `ccdx status` shows the longest admitted wait in the gateway's local request-body queue. `status --json` retains the longest sample and up to 16 recent waits, including cancellations and timeouts. Samples record a route, request ID, wait reason and byte counts in memory; no request body or credential is retained. The existing request details distinguish local waiting from waiting for the selected source. Local waiting ends before the body is read, and source waiting ends before sending upstream. For Antigravity Copilot Chat, `ccdx status --json` reports how many body bytes were passed to the socket (`attempts[].body_written_bytes`), when the local send finished (`body_sent_ms`, measured from request receipt), the outbound client correlation ID (`client_request_id`), and any observed transport error (`transport_error`). The WebUI shows total duration, sending time, response-header wait and first usable output when available. Copy details keeps the local ID, outbound ID and upstream response ID distinct. Valid upstream retry guidance is preserved on 429 and 503; neither response triggers an automatic resend. A local timeout is not a recorded connection error. None of these markers prove the source received or processed the body.
262
+ `ccdx status` shows the longest admitted wait in the gateway's local request-body queue. `status --json` retains the longest sample and up to 16 recent waits, including cancellations and timeouts. Samples record a route, request ID, wait reason and byte counts in memory; no request body or credential is retained. The request table shows the total time. Its details keep source, input usage, and the separate phases. An open request detail in view retains its place as new records arrive. If its disclosure held keyboard focus, that focus is restored. In **Checks → Service requests**, the error category table separates generation, capability and access, request method, request path, and other errors. These classify the same errors shown in the 4xx/5xx totals. The existing request details distinguish local waiting from waiting for the selected source. Local waiting ends before the body is read, and source waiting ends before sending upstream. For Antigravity Copilot Chat, `ccdx status --json` reports how many body bytes were passed to the socket (`attempts[].body_written_bytes`), when the local send finished (`body_sent_ms`, measured from request receipt), the outbound client correlation ID (`client_request_id`), and any observed transport error (`transport_error`). The WebUI shows total duration, sending time, response-header wait and first usable output when available. Copy details keeps the local ID, outbound ID and upstream response ID distinct. Valid upstream retry guidance is preserved on 429 and 503; neither response triggers an automatic resend. A local timeout is not a recorded connection error. None of these markers prove the source received or processed the body.
263
263
 
264
264
  All three Apps share admission for the same configured source and account. A slot spans the real upstream response body through completion, cancellation or error. Request-body memory is tracked separately; uploads of unknown length start with a minimal reservation and grow it by bytes read, before retaining the data for parsing. If there is not enough room, reading pauses until existing requests release memory. Only one such reader per pool may grow at a time; a reader waiting for more memory takes priority over new admissions. Once upload is complete, another reader can start while the earlier request retains its actual body reservation. Requests larger than the pool still run exclusively at the pool ceiling, subject to the existing per-request limits. Growth waits share the existing upload deadline and can appear in the body-read time; the entry queue is recorded separately. Recovery and internal summaries acquire fresh slots after the rejected response releases its slot.
265
265
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codex-copilot-dx",
3
- "version": "1.4.9",
3
+ "version": "1.4.10",
4
4
  "description": "Local gateway for Codex, Claude and Gemini Antigravity with Copilot, Microsoft 365 and custom APIs",
5
5
  "author": "Dale Xiao",
6
6
  "type": "module",
@@ -0,0 +1,72 @@
1
+ const object = value => value !== null && typeof value === "object" && !Array.isArray(value);
2
+ const schemaMaps = new Set(["properties", "patternProperties", "$defs", "definitions", "dependentSchemas"]);
3
+ const schemaLists = new Set(["allOf", "anyOf", "oneOf", "prefixItems"]);
4
+ const schemaValues = new Set(["additionalProperties", "unevaluatedProperties", "additionalItems",
5
+ "unevaluatedItems", "contains", "propertyNames", "not", "if", "then", "else", "contentSchema"]);
6
+ const references = ["$ref", "$dynamicRef", "$recursiveRef"];
7
+
8
+ function mapChanged(value, map) {
9
+ const entries = Object.entries(value).map(([key, item]) => [key, map(item, key)]);
10
+ return entries.every(([key, item]) => item === value[key]) ? value : Object.fromEntries(entries);
11
+ }
12
+ const requiredList = value => value === undefined
13
+ || Array.isArray(value) && value.every(item => typeof item === "string") && new Set(value).size === value.length;
14
+
15
+ // Carbon rejects object-union schemas whose type/required sit next to anyOf
16
+ // while the properties are declared inside its branches. Distribute these two
17
+ // conjunctive assertions into every branch: T & (A | B) == (T & A) | (T & B).
18
+ // Keep nullable types, const discriminators and all branch-specific constraints.
19
+ export function normalizeCarbonToolSchema(schema, depth = 0) {
20
+ if (!object(schema) || depth > 128) return schema;
21
+ const recurse = child => normalizeCarbonToolSchema(child, depth + 1);
22
+ const result = mapChanged(schema, (value, key) => {
23
+ if (schemaMaps.has(key) && object(value)) return mapChanged(value, recurse);
24
+ if ((schemaLists.has(key) || key === "items") && Array.isArray(value)) {
25
+ const next = value.map(recurse);
26
+ return next.every((item, index) => item === value[index]) ? value : next;
27
+ }
28
+ if (schemaValues.has(key) || key === "items") return recurse(value);
29
+ if (key === "dependencies" && object(value)) {
30
+ return mapChanged(value, item => Array.isArray(item) ? item : recurse(item));
31
+ }
32
+ // Literal values under const/enum/default/examples are data, not schemas.
33
+ return value;
34
+ });
35
+ return distributeAssertions(result, depth);
36
+ }
37
+
38
+ function distributeAssertions(schema, depth) {
39
+ if (depth > 128) return schema;
40
+ let result = schema;
41
+ const { anyOf, type, required } = result;
42
+ const validType = type === undefined || typeof type === "string"
43
+ || Array.isArray(type) && type.length > 0 && type.every(item => typeof item === "string");
44
+ if (!Array.isArray(anyOf) || !anyOf.length || result.properties !== undefined
45
+ || type === undefined && required === undefined || !validType || !requiredList(required)
46
+ || references.some(key => Object.hasOwn(result, key))
47
+ || !anyOf.every(branch => object(branch) && !references.some(key => Object.hasOwn(branch, key))
48
+ && (type === undefined || branch.type === undefined || JSON.stringify(type) === JSON.stringify(branch.type))
49
+ && requiredList(branch.required))) return result;
50
+
51
+ result = { ...result, anyOf: anyOf.map(branch => distributeAssertions({ ...branch,
52
+ ...(type === undefined ? {} : { type }),
53
+ ...(required === undefined ? {} : { required: [...new Set([...(branch.required || []), ...required])] }),
54
+ }, depth + 1))};
55
+ delete result.type;
56
+ delete result.required;
57
+ return result;
58
+ }
59
+
60
+ // Operate only on outbound tool parameters, after the Carbon namespace/deferred
61
+ // tool bridge. Canonical request/history objects and non-Carbon routes stay intact.
62
+ export function normalizeCarbonToolSchemas(body) {
63
+ if (!Array.isArray(body?.tools)) return body;
64
+ const tools = body.tools.map(tool => {
65
+ if (tool?.type !== "function") return tool;
66
+ const owner = object(tool.function) ? tool.function : tool;
67
+ const parameters = normalizeCarbonToolSchema(owner.parameters);
68
+ if (parameters === owner.parameters) return tool;
69
+ return owner === tool ? { ...tool, parameters } : { ...tool, function: { ...owner, parameters } };
70
+ });
71
+ return tools.every((tool, index) => tool === body.tools[index]) ? body : { ...body, tools };
72
+ }
@@ -241,7 +241,10 @@
241
241
  function showCapabilities() {
242
242
  const values = resolved(model, protocol.value), fresh = model.metadata?.deployment === source(editing)?.deployment_revision;
243
243
  words(status, fresh ? "cap_catalog_" + (model.metadata.state || "reported") : "cap_unknown");
244
- if (fresh && model.metadata.checked_at) status.append(" · ", new Date(model.metadata.checked_at).toLocaleString());
244
+ if (fresh && model.metadata.checked_at) {
245
+ const checkedAt = document.createElement("time");checkedAt.className = "metadata-check-time";
246
+ checkedAt.textContent = new Date(model.metadata.checked_at).toLocaleString();status.append(checkedAt);
247
+ }
245
248
  body.replaceChildren();
246
249
  for (const key of ["context_window", "max_input_tokens", "max_output_tokens", "max_tool_definitions", "supported_parameters", "reasoning_efforts", "reasoning_adaptive", "tools", "input_modalities", "web_search"]) {
247
250
  const row = node("tr"), label = node("th");words(label, ({ reasoning_efforts: "cap_reasoning", input_modalities: "cap_input_types", web_search: "cap_search" })[key] || "cap_field_" + key);
@@ -455,7 +458,7 @@
455
458
  if (editingClient === "codex" && memoryMatches(item)) { const badge = node("span", undefined, "memory-model-badge");words(badge, "memory_extract_role");name.append(badge); }
456
459
  const action = button(bindingDefault === routeId(item) && bindingSelection.has(key) ? "cap_default" : "cap_set_default", () => { bindingDirty = true;bindingSelection.add(key);bindingDefault = routeId(item);rememberDraft();bindingRows({ kind: "default", key }); });
457
460
  action.setAttribute("aria-pressed", String(bindingDefault === routeId(item) && bindingSelection.has(key)));
458
- action.dataset.binding = key;action.disabled = Boolean(item.unavailable);action.setAttribute("aria-label", item.id + " · " + format(bindingDefault === routeId(item) ? "cap_default" : "cap_set_default"));
461
+ action.dataset.binding = key;action.disabled = Boolean(item.unavailable);action.setAttribute("aria-label", format("model_action_label", { name: item.id, action: format(bindingDefault === routeId(item) ? "cap_default" : "cap_set_default") }));
459
462
  if (item.unavailable) { const warning = node("span", undefined, "hint binding-unavailable");words(warning, item.reason ? "visibility_" + item.reason : "cap_model_unavailable");name.append(warning); }
460
463
  const cell = node("td");cell.append(action);
461
464
  const details = [node("td", source(item.source)?.name || item.source), node("td", count(capability.context_window)), node("td", reasoningText(capability))];
@@ -465,7 +468,7 @@
465
468
  const saved = bindingEfforts.get(key);
466
469
  if (saved && !levels.includes(saved)) { const option = node("option");option.value = saved;option.disabled = true;words(option, "cap_effort_unavailable", { effort: saved });select.append(option); }
467
470
  for (const effort of levels) { const option = node("option", effort);option.value = effort;select.append(option); }
468
- select.value = saved || "";select.dataset.effortBinding = key;select.setAttribute("aria-label", (item.display_name || item.id) + " · " + format("cap_reasoning"));
471
+ select.value = saved || "";select.dataset.effortBinding = key;select.setAttribute("aria-label", format("model_action_label", { name: item.display_name || item.id, action: format("cap_reasoning") }));
469
472
  select.disabled = busy || Boolean(item.unavailable) || !bindingSelection.has(key);
470
473
  select.addEventListener("change", () => { if (select.value) bindingEfforts.set(key, select.value);else bindingEfforts.delete(key);bindingDirty = true;rememberDraft();bindingRows({ kind: "effort", key }); });
471
474
  details[2].replaceChildren(select);effortControls++;
@@ -13,9 +13,9 @@
13
13
  const node = el(`client-version-${client}`);if (!node) continue;
14
14
  const rows = Array.isArray(value?.[client]) ? value[client] : [];
15
15
  if (!rows.length) { node.removeAttribute("data-i18n");node.textContent = "—";node.title = "";continue; }
16
- const version = rows.map(row => `${rows.length > 1 ? `${row.name} ` : ""}${row.version}${row.build && row.build !== row.version ? ` (${row.build})` : ""}${row.cli_version ? ` · CLI ${row.cli_version}` : ""}`).join(" / ");
16
+ const version = rows.map(row => `${rows.length > 1 ? `${row.name} ` : ""}${row.version}${row.build && row.build !== row.version ? ` (${row.build})` : ""}${row.cli_version ? ` (CLI ${row.cli_version})` : ""}`).join(" / ");
17
17
  label(node, rows.some(row => row.changed_at) ? "client_version_changed" : "client_version_observed", { version });
18
- node.title = rows.filter(row => row.changed_at).map(row => `${row.previous?.version || "—"} → ${row.version} · ${time(row.changed_at, { date: true })}`).join(" / ");
18
+ node.title = rows.filter(row => row.changed_at).map(row => `${row.previous?.version || "—"} → ${row.version} (${time(row.changed_at, { date: true })})`).join(" / ");
19
19
  }
20
20
  }
21
21
  globalThis.ccdxClientVersions = { render: renderClientVersions };
@@ -93,7 +93,7 @@
93
93
  let tr = detailRows.get(id);
94
94
  if (!tr) { tr = entry("tr");for (let i = 0; i < 6; i++) tr.append(entry("td"));detailRows.set(id, tr); }
95
95
  const values = [appName(row.application), sourceName(row.provider, awaitingMetadata(row)), modelName(row.model, awaitingMetadata(row)), format(fresh ? status(row) : "flow_last_observed"), `${((row.elapsed_ms + Math.max(0, Date.now() - sampledAt)) / 1000).toFixed(1)} s`, row.upstream_attempts.toLocaleString()];
96
- if (row.previous_request) values[3] += " · " + format("flow_previous_result", { reason: row.previous_request.stop_reason || row.previous_request.outcome || "—", seconds: (row.previous_request.elapsed_ms / 1000).toFixed(1) });
96
+ if (row.previous_request) values[3] += " (" + format("flow_previous_result", { reason: row.previous_request.stop_reason || row.previous_request.outcome || "—", seconds: (row.previous_request.elapsed_ms / 1000).toFixed(1) }) + ")";
97
97
  tr.title = row.session_id ? format("flow_session_previous", { session: row.session_id, reason: row.previous_request?.stop_reason || row.previous_request?.outcome || "—", seconds: row.previous_request ? (row.previous_request.elapsed_ms / 1000).toFixed(1) : "—" }) : format("flow_session_unknown");
98
98
  values.forEach((value, i) => { if (tr.children[i].textContent !== value) tr.children[i].textContent = value; });
99
99
  if (body.children[index] !== tr) body.insertBefore(tr, body.children[index] || null);
@@ -59,7 +59,7 @@
59
59
  const isDefault=ids.includes(currentDefault())&&chosen.has(currentDefault());
60
60
  button.type='button';button.value=model.id;button.disabled=busy||sharedPending;
61
61
  const title=isDefault?'cap_default':'cap_set_default';language.set(button,title);
62
- button.setAttribute('aria-pressed',String(isDefault));button.setAttribute('aria-label',model.name+' · '+language.format(title));
62
+ button.setAttribute('aria-pressed',String(isDefault));button.setAttribute('aria-label',language.format('model_action_label',{name:model.name,action:language.format(title)}));
63
63
  button.addEventListener('click',()=>{
64
64
  if(isDefault)return;
65
65
  const saved=ids.filter(id=>selected().includes(id)),visible=model.efforts.filter(item=>chosen.has(item.id));
@@ -9,7 +9,7 @@
9
9
  <script src="/theme.js"></script>
10
10
  <link rel="stylesheet" href="/ui.css">
11
11
  <script src="/dashboard.js" defer></script>
12
- <title data-i18n="ccdx_local_dashboard">CCDX · Dashboard</title>
12
+ <title data-i18n="ccdx_local_dashboard">CCDX Dashboard</title>
13
13
  </head>
14
14
  <body>
15
15
  <div class="shell">
@@ -31,7 +31,7 @@
31
31
 
32
32
  <header class="topbar">
33
33
  <div class="brand">CCDX </div>
34
- <div class="topbar-actions"><span id="connection" class="badge neutral" role="status" data-i18n="reading">READING</span><button id="theme-toggle" class="icon-button" type="button" aria-label="Switch to light mode" title="Switch to light mode"><svg class="icon-sun" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" aria-hidden="true" focusable="false"><circle cx="12" cy="12" r="4"/><path d="M12 2v2m0 16v2M4.93 4.93l1.42 1.42m11.3 11.3 1.42 1.42M2 12h2m16 0h2M4.93 19.07l1.42-1.42m11.3-11.3 1.42-1.42"/></svg><svg class="icon-moon" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" focusable="false"><path d="M12 3A9 9 0 1 0 21 12 7 7 0 0 1 12 3Z"/></svg></button><button id="language-toggle" class="icon-button language-button" type="button" aria-label="Switch to Chinese" title="Switch to Chinese">中文</button><button id="auto-refresh" type="button" aria-pressed="true" data-i18n-title="activity_updates_live" title="Activity updates live. Catalogs and retained usage refresh on demand or every 30 minutes while open."><span class="auto-refresh-measure" aria-hidden="true" data-i18n="auto_refresh_off">Auto refresh · OFF</span><span id="auto-refresh-label" data-i18n="auto_refresh_on">Auto refresh · ON</span></button><button id="refresh" type="button" data-i18n="refresh">Refresh</button></div>
34
+ <div class="topbar-actions"><span id="connection" class="badge neutral" role="status" data-i18n="reading">READING</span><button id="theme-toggle" class="icon-button" type="button" aria-label="Switch to light mode" title="Switch to light mode"><svg class="icon-sun" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" aria-hidden="true" focusable="false"><circle cx="12" cy="12" r="4"/><path d="M12 2v2m0 16v2M4.93 4.93l1.42 1.42m11.3 11.3 1.42 1.42M2 12h2m16 0h2M4.93 19.07l1.42-1.42m11.3-11.3 1.42-1.42"/></svg><svg class="icon-moon" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" focusable="false"><path d="M12 3A9 9 0 1 0 21 12 7 7 0 0 1 12 3Z"/></svg></button><button id="language-toggle" class="icon-button language-button" type="button" aria-label="Switch to Chinese" title="Switch to Chinese">中文</button><button id="auto-refresh" type="button" aria-pressed="true" data-i18n-title="activity_updates_live" title="Activity updates live. Catalogs and retained usage refresh on demand or every 30 minutes while open."><span class="auto-refresh-measure" aria-hidden="true" data-i18n="auto_refresh_off">Auto refresh: Off</span><span id="auto-refresh-label" data-i18n="auto_refresh_on">Auto refresh: On</span></button><button id="refresh" type="button" data-i18n="refresh">Refresh</button></div>
35
35
  </header>
36
36
 
37
37
  <main id="main-content" tabindex="-1">
@@ -98,7 +98,7 @@
98
98
  </div>
99
99
  <p id="source-model-note" class="hint" data-i18n="github_model_in_codex">Choose your conversation model in Codex.</p>
100
100
  <div id="source-control-note" class="hint" role="status"></div>
101
- <p class="table-note model-summary"><span data-i18n="codex_models">CODEX MODELS</span>: <strong id="models">—</strong> · <span id="model-source">—</span></p>
101
+ <p class="table-note model-summary"><span data-i18n="codex_models">CODEX MODELS</span>: <strong id="models">—</strong> <span id="model-source">—</span></p>
102
102
  <a class="section-link" href="#models" data-source-link="codex" data-i18n="view_model_list">View model list</a>
103
103
  </section>
104
104
  <section class="panel dashboard-section" aria-labelledby="review-heading">
@@ -280,7 +280,7 @@
280
280
  <div class="section-actions"><button id="source-access-save" type="submit" data-i18n="api_save" disabled>Save</button><button id="source-access-cancel" type="button" data-i18n="cap_discard_changes" disabled>Discard changes</button></div>
281
281
  <p id="source-access-note" class="hint" role="status" aria-live="polite"></p>
282
282
  </form>
283
- <details class="tool-details" id="source-concurrency"><summary data-i18n="source_concurrency">Concurrency · Auto</summary>
283
+ <details class="tool-details" id="source-concurrency"><summary data-i18n="source_concurrency">Concurrency (Auto)</summary>
284
284
  <form id="source-limit-form"><div class="connection-fields"><label><span data-i18n="source_concurrency_maximum">Maximum concurrency</span><input id="source-limit-maximum" type="number" min="1" max="128" step="1" inputmode="numeric" placeholder="Auto" data-i18n-placeholder="source_concurrency_auto"></label></div>
285
285
  <p class="hint" data-i18n="source_concurrency_hint">Leave blank for Auto. A value only sets its ceiling.</p>
286
286
  <div class="section-actions"><button id="source-limit-save" type="submit" data-i18n="api_save" disabled>Save</button></div><p id="source-limit-note" class="hint" role="status" aria-live="polite"></p>
@@ -325,7 +325,21 @@
325
325
  </section>
326
326
  <details class="panel dashboard-section" id="runtime-diagnostics"><summary data-i18n="runtime_details">RUNTIME DETAILS</summary>
327
327
  <section class="diagnostic-section"><h2 data-i18n="process_listener">LOCAL SERVICE</h2><p id="process-state" class="table-note"></p><p id="process-memory" class="hint"></p><p id="process-queues" class="hint"></p><p id="process-notice" class="hint" role="status"></p></section>
328
- <section class="diagnostic-section"><h2 data-i18n="http_traffic">SERVICE REQUESTS</h2><strong id="requests">—</strong><p id="request-errors">—</p><p id="http-error-breakdown">—</p><p><span data-i18n="per_request_limits_active">Per-request limits</span><br><span id="body-limits">—</span></p></section>
328
+ <section class="diagnostic-section request-diagnostics"><h2 data-i18n="http_traffic">SERVICE REQUESTS</h2>
329
+ <dl id="request-errors" class="request-kpis">
330
+ <div><dt data-i18n="requests">Requests</dt><dd id="requests">—</dd></div>
331
+ <div><dt>4xx</dt><dd id="requests-4xx">—</dd></div><div><dt>5xx</dt><dd id="requests-5xx">—</dd></div>
332
+ <div><dt data-i18n="active">Active</dt><dd id="requests-active">—</dd></div>
333
+ </dl>
334
+ <table id="http-error-breakdown" class="http-error-table" data-i18n-label="http_error_classes" aria-label="HTTP errors by category">
335
+ <thead><tr><th scope="col" data-i18n="http_error_inference">Generation</th><th scope="col" data-i18n="http_error_capability">Capability and access</th><th scope="col" data-i18n="http_error_protocol">Request method</th><th scope="col" data-i18n="http_error_route">Request path</th><th scope="col" data-i18n="other">Other</th></tr></thead>
336
+ <tbody><tr><td id="http-inference">—</td><td id="http-capability">—</td><td id="http-protocol">—</td><td id="http-route">—</td><td id="http-other">—</td></tr></tbody>
337
+ </table>
338
+ <dl class="http-error-grid" data-i18n-label="http_error_classes" aria-label="HTTP errors by category">
339
+ <div><dt data-i18n="http_error_inference">Generation</dt><dd id="http-mobile-inference">—</dd></div><div><dt data-i18n="http_error_capability">Capability and access</dt><dd id="http-mobile-capability">—</dd></div><div><dt data-i18n="http_error_protocol">Request method</dt><dd id="http-mobile-protocol">—</dd></div><div><dt data-i18n="http_error_route">Request path</dt><dd id="http-mobile-route">—</dd></div><div><dt data-i18n="other">Other</dt><dd id="http-mobile-other">—</dd></div>
340
+ </dl>
341
+ <p class="request-limits-line"><span data-i18n="per_request_limits_active">Per-request limits</span><span id="body-limits">—</span></p>
342
+ </section>
329
343
  </details>
330
344
  <details class="panel dashboard-section"><summary data-i18n="more_checks_reports">MORE CHECKS AND REPORTS</summary>
331
345
  <div class="section-actions"><button id="check-network" type="button" data-i18n="tools_network_check">Network settings</button></div><p id="network-check-result" class="hint" role="status"></p>
@@ -390,7 +404,7 @@
390
404
  <section id="tool-activity" class="panel dashboard-section" aria-labelledby="tool-title" data-paused="true">
391
405
  <div class="panel-heading"><h2 id="tool-title" data-i18n="tool_heading">TOOL AND AGENT ACTIVITY</h2><label class="tool-style" for="tool-style"><span data-i18n="tool_style">Style</span><select id="tool-style"><option value="halo" data-i18n="tool_style_halo">Beam ring</option><option value="grid" data-i18n="tool_style_grid">Grid</option><option value="busy" data-i18n="tool_style_busy">Busy pulse</option><option value="speed" data-i18n="tool_style_speed">Fast streaks</option><option value="assembly" data-i18n="tool_style_assembly">Assembly line</option><option value="off" data-i18n="tool_style_off">Off</option></select></label></div>
392
406
  <div id="tool-stage" class="tool-stage" data-style="halo">
393
- <div class="tool-visual"><div class="tool-orbit"><canvas id="tool-canvas" role="img" data-i18n-label="tool_heading" aria-label="Tool and agent activity"></canvas></div><p class="tool-narration"><span id="tool-state" role="status" aria-live="polite" data-i18n="flow_status_unknown">Waiting for a fresh status</span><span id="tool-cursor" aria-hidden="true" hidden> ···</span></p></div>
407
+ <div class="tool-visual"><div class="tool-orbit"><canvas id="tool-canvas" role="img" data-i18n-label="tool_heading" aria-label="Tool and agent activity"></canvas></div><p class="tool-narration"><span id="tool-state" role="status" aria-live="polite" data-i18n="flow_status_unknown">Waiting for a fresh status</span><span id="tool-cursor" aria-hidden="true" hidden> …</span></p></div>
394
408
  <div class="tool-content"><p id="tool-context" class="tool-context" hidden></p><div id="tool-list"></div><p id="tool-more" class="hint" hidden></p><details id="tool-details" class="tool-details tool-technical" hidden><summary data-i18n="tool_details">Call details</summary><div id="tool-technical"></div></details></div>
395
409
  </div>
396
410
  </section>
@@ -398,13 +412,12 @@
398
412
  <summary data-i18n="requests_by_source">REQUESTS BY SOURCE</summary>
399
413
  <p class="hint" data-i18n="results_since_startup_partial_usage_is_marked_separately">Results since startup. Partial usage is marked separately.</p>
400
414
  <div class="table-wrap"><table><thead><tr><th data-i18n="source">Source</th><th data-i18n="protocol">Protocol</th><th data-i18n="active">Active</th><th data-i18n="completed">Completed</th><th data-i18n="incomplete">Incomplete</th><th data-i18n="failed">Failed</th><th data-i18n="cancelled">Cancelled</th><th data-i18n="unknown">Unknown</th></tr></thead><tbody id="source-requests-body"></tbody></table></div>
401
- <details class="tool-details"><summary data-i18n="source_summary_details">Source summaries</summary><div id="provider-requests" class="hint"></div></details>
415
+ <details class="tool-details"><summary data-i18n="source_summary_details">Source summaries</summary><div class="table-wrap"><table><thead><tr><th scope="col" data-i18n="source">Source</th><th scope="col" data-i18n="protocol">Protocol</th><th scope="col" data-i18n="completed">Completed</th><th scope="col" data-i18n="incomplete">Incomplete</th><th scope="col" data-i18n="failed">Failed</th></tr></thead><tbody id="provider-requests"></tbody></table></div></details>
402
416
  </details>
403
417
  <details class="panel dashboard-section" id="request-context" open>
404
418
  <summary data-i18n="recent_request_context">RECENT REQUESTS</summary>
405
- <p id="context-note" class="table-note">—</p>
406
- <div class="table-wrap"><table><thead><tr><th scope="col" data-i18n="time">Time</th><th scope="col" data-i18n="source">Source</th><th scope="col" data-i18n="model">MODEL</th><th scope="col" data-i18n="outcome">RESULT</th><th scope="col" data-i18n="input_tokens">INPUT USAGE</th><th scope="col" data-i18n="tools_details">Details</th></tr></thead><tbody id="context-body"><tr><td colspan="6" data-i18n="no_observed_request_metadata">No request records yet.</td></tr></tbody></table></div>
407
- <details class="tool-details"><summary data-i18n="record_scope">Record scope</summary><p class="hint" data-i18n="recent_upstream_request_metadata_not_exact_live_session_occupanc">No prompts or images are stored. — means unavailable data.</p><p class="hint" data-i18n="http_2xx_model_completed">HTTP status and model outcome are recorded separately.</p></details>
419
+ <div class="table-wrap"><table class="recent-requests-table"><thead><tr><th scope="col" data-i18n="time">Time</th><th scope="col" data-i18n="client">App</th><th scope="col" data-i18n="model">MODEL</th><th scope="col" data-i18n="outcome">RESULT</th><th scope="col" class="recent-request-duration" data-i18n="request_total_time">Total time</th><th scope="col" data-i18n="tools_details">Details</th></tr></thead><tbody id="context-body"><tr><td colspan="6" data-i18n="no_observed_request_metadata">No request records yet.</td></tr></tbody></table></div>
420
+ <details class="tool-details"><summary data-i18n="record_scope">Record scope</summary><p id="context-note" class="table-note">—</p><p class="hint" data-i18n="recent_upstream_request_metadata_not_exact_live_session_occupanc">No prompts or images are stored. — means unavailable data.</p><p class="hint" data-i18n="http_2xx_model_completed">HTTP status and model outcome are recorded separately.</p></details>
408
421
  </details>
409
422
  <details class="lower" id="recent-failures" open>
410
423
  <summary class="panel-heading"><h2 data-i18n="recent_inference_http_failures">RECENT REQUEST ISSUES</h2><span id="failure-count">requests + events</span></summary>
@@ -437,7 +450,7 @@
437
450
  </details>
438
451
  <details class="tool-details"><summary data-i18n="terminal_color_preview">Terminal preview</summary>
439
452
  <div id="terminal-color-sample" class="terminal-sample" data-terminal-palette="green" aria-label="Terminal color preview" data-i18n-label="terminal_color_preview">
440
- <div class="terminal-caption"><span>CCDX · Terminal</span><span data-i18n="appearance_sample">Sample data</span></div>
453
+ <div class="terminal-caption"><span>CCDX Terminal</span><span data-i18n="appearance_sample">Sample data</span></div>
441
454
  <div class="terminal-brand">
442
455
  <pre class="terminal-logo" aria-hidden="true"> ▄▀█▄ ▄█▀▄
443
456
  █ ▄███▄ █
@@ -483,7 +496,7 @@
483
496
  <div class="nightly-update">
484
497
  <div class="setting-row"><label for="nightly-update" data-i18n="nightly_update">Update overnight</label><input id="nightly-update" type="checkbox" role="switch" aria-describedby="nightly-risk" disabled><span id="nightly-state" class="hint" role="status"></span></div>
485
498
  <p id="nightly-risk" class="hint" data-i18n="nightly_risk">Updates install a new version and restart CCDX. Continuing a conversation may be affected.</p>
486
- <div id="nightly-rules" hidden><dl class="nightly-rules"><div><dt data-i18n="nightly_window">Update window</dt><dd data-i18n="nightly_window_value">00:00–04:00 · Local time</dd></div><div><dt data-i18n="nightly_when">When to update</dt><dd data-i18n="nightly_when_value">Idle for 10 minutes, after checks pass</dd></div><div><dt data-i18n="nightly_versions">Versions</dt><dd data-i18n="nightly_versions_value">Stable patches released at least 24 hours ago</dd></div><div><dt data-i18n="nightly_failure">If an update fails</dt><dd data-i18n="nightly_failure_value">Try restoring the previous version and pause this update</dd></div></dl></div>
499
+ <div id="nightly-rules" hidden><dl class="nightly-rules"><div><dt data-i18n="nightly_window">Update window</dt><dd data-i18n="nightly_window_value">00:00–04:00 local time</dd></div><div><dt data-i18n="nightly_when">When to update</dt><dd data-i18n="nightly_when_value">Idle for 10 minutes, after checks pass</dd></div><div><dt data-i18n="nightly_versions">Versions</dt><dd data-i18n="nightly_versions_value">Stable patches released at least 24 hours ago</dd></div><div><dt data-i18n="nightly_failure">If an update fails</dt><dd data-i18n="nightly_failure_value">Try restoring the previous version and pause this update</dd></div></dl></div>
487
500
  </div>
488
501
  <p id="update-state" class="hint" role="status" data-i18n="reading">READING</p>
489
502
  <div class="section-actions"><button id="install-update" type="button" data-i18n="update_install_now" disabled>Install update</button><span id="manual-update-note" class="hint" role="status"></span></div><details class="tool-details" id="update-advanced"><summary data-i18n="advanced_terminal">Advanced: terminal commands</summary><div id="update-command-row" class="update-command"><code id="update-command">ccdx update github</code><button type="button" id="copy-update" data-i18n="copy_command">Copy command</button></div>
@@ -491,7 +504,7 @@
491
504
  <p id="update-checked" class="refresh-time"></p>
492
505
  <details class="update-install"><summary data-i18n="update_install_help">Update failed? View full installation commands</summary><p class="hint" data-i18n="update_install_hint">Download the official installer. No Git required.</p>
493
506
  <div class="section-actions install-platforms" role="group" aria-label="Installation platform" data-i18n-label="installation_platform"><button type="button" data-install-platform="macos" aria-pressed="true">macOS</button><button type="button" data-install-platform="windows" aria-pressed="false">Windows</button></div>
494
- <div class="install-command-heading"><span id="install-shell" class="hint">macOS · Terminal</span><button type="button" id="copy-install" data-i18n="copy_command">Copy command</button></div><pre id="install-command" class="install-command"></pre>
507
+ <div class="install-command-heading"><span id="install-shell" class="hint">macOS Terminal</span><button type="button" id="copy-install" data-i18n="copy_command">Copy command</button></div><pre id="install-command" class="install-command"></pre>
495
508
  <p class="hint" data-i18n="update_install_policy">Reuses compatible Node/npm or installs a private runtime. Keeps your registry, proxy, certificates and shell policy.</p>
496
509
  <p id="install-windows-policy" class="hint" hidden data-i18n="update_windows_policy">If scripts are blocked, use your company’s approved installation method.</p>
497
510
  </details></details><p id="update-copy-note" class="hint" role="status"></p>
@@ -72,7 +72,7 @@
72
72
  prediction_open: ["Open Codex", "打开 Codex"],
73
73
  feature_remove: ["Remove setup", "移除接入"],
74
74
  flow_previous_result: ["Previous: {reason}, {seconds} s", "上次:{reason},{seconds} 秒"],
75
- flow_session_previous: ["Session {session} · previous: {reason}, {seconds} s", "会话 {session} · 上次请求:{reason},{seconds} 秒"],
75
+ flow_session_previous: ["Session {session}. Previous request: {reason} ({seconds} s)", "会话 {session}。上次请求:{reason}({seconds} 秒)"],
76
76
  flow_session_unknown: ["Session correlation unavailable", "无法关联会话"],
77
77
  image_check: ["Check access", "检查接入"],
78
78
  image_repair: ["Repair access", "修复接入"],
@@ -148,7 +148,7 @@
148
148
  privacy_heading: ["ADVANCED", "高级"], privacy_enable: ["Local masking", "本地脱敏"], privacy_scope: ["Conversation and tool text. Images and predictions keep their current behavior.", "检查对话和工具文本。图片与预测保持原有行为。"], privacy_state_checking: ["Checking locally", "本地检查中"],
149
149
  privacy_personal: ["Include personal information", "同时保护个人信息"], privacy_personal_hint: ["Names and addresses may be mistaken for code.", "姓名和地址可能与代码混淆。"], privacy_try: ["Try locally", "本地试用"], privacy_sample: ["Sample text", "试用文本"], privacy_check: ["Check text", "检查文本"], privacy_remove: ["Delete model", "删除模型"],
150
150
  privacy_download: ["Downloads about 39 MB plus the local component. Checks may add delay or mistake ordinary text.", "下载约 39 MB 模型及本地组件。检查可能增加等待或误识别。"], privacy_fail_closed: ["If a check cannot finish, the request is not sent.", "检查未完成时,请求不会发出。"], privacy_confirm: ["Download & enable", "下载并开启"],
151
- privacy_state_off: ["Off", "已关闭"], privacy_state_downloading: ["Downloading · {percent}%", "下载中 · {percent}%"], privacy_state_loading: ["Loading locally", "本地加载中"], privacy_state_ready: ["Keys and passwords", "密钥与密码"], privacy_state_error: ["Not ready", "尚未就绪"], privacy_state_installed: ["Downloaded · off", "已下载 · 已关闭"], privacy_result: ["{count} values masked · {ms} ms", "脱敏 {count} 项 · {ms} ms"],
151
+ privacy_state_off: ["Off", "已关闭"], privacy_state_downloading: ["Downloading ({percent}%)", "下载中({percent}%)"], privacy_state_loading: ["Loading locally", "本地加载中"], privacy_state_ready: ["Keys and passwords", "密钥与密码"], privacy_state_error: ["Not ready", "尚未就绪"], privacy_state_installed: ["Downloaded (off)", "已下载,未启用"], privacy_result: ["{count} values masked in {ms} ms", "脱敏 {count} 项,耗时 {ms} ms"],
152
152
  privacy_response_error: ["Reply restoration failed ({code}). The reply was stopped.", "回复还原失败({code}),回复已停止。"],
153
153
  privacy_error: ["Check could not finish. Nothing was sent; retry or review these settings.", "检查未完成,未发送请求。请重试或检查设置。"], privacy_download_error: ["Download failed. Check approved download access, proxy and certificates.", "下载失败。请检查下载权限、代理和证书。"], privacy_changed: ["Settings changed elsewhere. Reload this section before trying again.", "设置已在其他窗口修改。请刷新后重试。"], privacy_preview_error: ["Local check failed. No text was sent to a provider.", "本地检查失败。未向模型来源发送文本。"],
154
154
  privacy_busy: ["Local detection is busy. Nothing was sent; retry shortly.", "本地检测繁忙,未发送请求。请稍后重试。"],
@@ -166,7 +166,7 @@
166
166
  "context_latest_input": ["Latest input", "最近输入"],
167
167
  "context_reuse": ["Cache reuse", "缓存复用"],
168
168
  "context_history": ["Input history", "输入变化"],
169
- "context_point_usage": ["{time} · input {input} tokens · cache reuse {reuse}", "{time} · 输入 {input} Token · 缓存复用 {reuse}"],
169
+ "context_point_usage": ["{time}\nInput: {input} tokens\nCache reuse: {reuse}", "{time}\n输入:{input} Token\n缓存复用:{reuse}"],
170
170
  "context_compactions": ["Gateway compactions", "网关压缩"],
171
171
  "context_elapsed": ["Elapsed", "耗时"],
172
172
  "context_conversation": ["Conversation {id}", "会话 {id}"],
@@ -177,11 +177,11 @@
177
177
  "context_no_compactions": ["No observed compactions.", "未观测到压缩。"],
178
178
  "context_concurrent": ["Concurrent requests", "并发请求"],
179
179
  "context_request_order": ["Request order", "请求顺序"],
180
- "context_scope": ["This run · Reported metadata", "本次运行 · 上报数据"],
180
+ "context_scope": ["This run (reported data)", "本次运行的上报数据"],
181
181
  "context_read_failed": ["Read failed. Previous data kept.", "读取失败,保留上次数据。"],
182
182
  "model_id": ["Model ID", "模型 ID"],
183
183
  "catalog_scope": ["Catalog scope", "目录说明"],
184
- "issue_brief": ["{cause} · {model} · {time}", "{cause} · {model} · {time}"],
184
+ "issue_brief": ["{cause}: {model} ({time})", "{model}:{cause}({time})"],
185
185
  "issue_count_unavailable": ["Token counting unavailable", "令牌计数接口不可用"],
186
186
  "issue_source_limit": ["Source usage limit reached", "模型来源用量受限"],
187
187
  "issue_source_quota": ["Source credits or quota exhausted", "模型来源余额或配额不足"],
@@ -194,18 +194,18 @@
194
194
  "issue_request_failed": ["Request did not complete", "请求未完成"],
195
195
  "issue_upstream_timeout": ["Source request timed out", "来源请求超时"],
196
196
  "issue_after_send_timeout": ["Timed out waiting for the source", "等待来源响应超时"],
197
- "issue_source_rate_wait": ["Source rate limit · wait {seconds} s", "来源限流 · 建议等待 {seconds} 秒"],
197
+ "issue_source_rate_wait": ["Source rate limit. Wait {seconds} s.", "来源限流。建议等待 {seconds} 秒。"],
198
198
  "api_save_read": ["Save & read models", "保存并读取模型"],
199
199
  "api_read_failed": ["API saved. Model lookup failed; retry here. {code}", "来源已保存;模型读取失败,可在此重试。{code}"],
200
200
  "sync_capability_unverified": ["Client capabilities are unverified; existing settings were kept.", "客户端能力未验证,现有设置已保留。"],
201
201
  "source_accounts": ["Sources", "来源"],
202
- "sync_config_written": ["Configuration written · reopen the app to load changes", "配置已写入 · 重开应用查看变更"],
203
- "sync_manual": ["Selection saved · automatic sync is off", "选择已保存 · 自动同步已关闭"],
204
- "sync_preserved": ["Manual settings retained · review sync details", "手工设置已保留 · 查看同步详情"],
205
- "sync_failed": ["Configuration could not be written · review sync details", "配置写入失败 · 查看同步详情"],
202
+ "sync_config_written": ["Configuration saved. Reopen to load it.", "配置已保存,重新打开应用后生效。"],
203
+ "sync_manual": ["Selection saved. Automatic sync is off.", "选择已保存,未同步到应用。"],
204
+ "sync_preserved": ["Manual settings retained. See sync details.", "已保留手动设置,可查看同步详情。"],
205
+ "sync_failed": ["Could not write configuration. See sync details.", "无法写入配置,可查看同步详情。"],
206
206
  "sync_not_configured": ["App configuration not applied", "尚未应用到客户端配置"],
207
207
  "cap_save_sync": ["Save & sync", "保存并同步"],
208
- "api_impact_models": ["Selected models: {before} → {after} · removes {removed}", "已选模型:{before} → {after} · 移除{removed}个"],
208
+ "api_impact_models": ["Selected models: {before} → {after} ({removed} removed)", "已选模型:{before} → {after},移除 {removed} 个"],
209
209
  "api_impact_default_kept": ["The default model stays unchanged.", "默认模型保持不变。"],
210
210
  "api_impact_unavailable": ["Refresh the page to review affected apps.", "请刷新页面,查看受影响的应用。"],
211
211
  "api_impact_changed": ["Selections changed. Review the updated impact before confirming.", "模型选择已变化,请重新确认影响。"],
@@ -227,7 +227,7 @@
227
227
  "source_apps_review": ["Saved. Review {apps} sync results on the app page.", "已保存,请在应用页复核 {apps} 同步结果。"],
228
228
  "catalog_read_network": ["Online read", "在线读取"],
229
229
  "catalog_read_cache": ["Local cache", "本地缓存"],
230
- "catalog_read_summary": ["{origin} · {total} models · GPT {gpt} / Claude {claude} · {time}", "{origin} · {total} 个模型 · GPT {gpt} / Claude {claude} · {time}"],
230
+ "catalog_read_summary": ["{origin}: {total} models (GPT {gpt}, Claude {claude}), read {time}", "{origin} 共 {total} 个模型(GPT {gpt}、Claude {claude}),读取于 {time}"],
231
231
  "catalog_local_cache": ["CCDX model cache", "本机模型缓存"],
232
232
  "catalog_cache_used": ["Used", "已使用"],
233
233
  "catalog_cache_unused": ["Not used", "未使用"],
@@ -321,9 +321,15 @@
321
321
  "visibility_source_restricted": ["Hidden or restricted by source", "来源隐藏或限制了此模型"],
322
322
  "visibility_protocol_unsupported": ["Required interface unavailable", "缺少应用所需接口"],
323
323
  "visibility_model_not_selected": ["Not selected for this app", "此应用尚未选择该模型"],
324
- "http_categories": ["Generation {inference} · Capabilities/access {capability} · Methods {protocol} · Paths {route} · Other {other}", "生成 {inference} · 能力/访问 {capability} · 方法 {protocol} · 路径 {route} · 其他 {other}"],
324
+ "http_error_classes": ["HTTP errors by category", "HTTP 错误分类"],
325
+ "http_error_inference": ["Generation", "生成请求"],
326
+ "http_error_capability": ["Capability and access", "能力与访问"],
327
+ "http_error_protocol": ["Request method", "请求方法"],
328
+ "http_error_route": ["Request path", "请求路径"],
329
+ "other": ["Other", "其他"],
330
+ "http_categories": ["Generation {inference}, capability and access {capability}, request method {protocol}, request path {route}, other {other}", "生成 {inference},能力与访问 {capability},请求方法 {protocol},请求路径 {route},其他 {other}"],
325
331
  "no_upstream_call": ["No upstream call", "未调用上游"],
326
- "repeated_issue": ["{detail} · {count} occurrences", "{detail} · 出现 {count} 次"],
332
+ "repeated_issue": ["{detail} ({count} occurrences)", "{detail}(共 {count} 次)"],
327
333
  "reason": ["Reason", "具体原因"],
328
334
  "occurrences": ["Occurrences", "出现次数"],
329
335
  "capability_cached": ["Recent capability result reused", "沿用近期能力结果"],
@@ -337,7 +343,7 @@
337
343
  "nightly_update": ["Update overnight", "夜间自动更新"],
338
344
  "nightly_risk": ["Updates install a new version and restart CCDX. Continuing a conversation may be affected.", "开启后会自动安装新版并重启 CCDX,可能影响会话续接。"],
339
345
  "nightly_window": ["Update window", "更新时间"],
340
- "nightly_window_value": ["00:00–04:00 · Local time", "00:00–04:00 · 本机时间"],
346
+ "nightly_window_value": ["00:00–04:00 local time", "本机时间 00:00–04:00"],
341
347
  "nightly_when": ["When to update", "执行条件"],
342
348
  "nightly_when_value": ["Idle for 10 minutes, after checks pass", "持续空闲 10 分钟,且检查通过"],
343
349
  "nightly_versions": ["Versions", "更新范围"],
@@ -345,8 +351,8 @@
345
351
  "nightly_failure": ["If an update fails", "更新失败"],
346
352
  "nightly_failure_value": ["Try restoring the previous version and pause this update", "尝试恢复原版,并暂停该版本"],
347
353
  "nightly_off": ["Off by default", "默认关闭"],
348
- "nightly_next_start": ["On · Starts next time you run CCDX", "已开启 · 下次启动 CCDX 生效"],
349
- "nightly_watching": ["On · Waiting for an idle overnight window", "已开启 · 等待夜间空闲时段"],
354
+ "nightly_next_start": ["Starts the next time you run CCDX", "下次启动 CCDX 时生效"],
355
+ "nightly_watching": ["Waiting for an idle overnight window", "等待夜间空闲时段"],
350
356
  "nightly_checking": ["Checking for updates", "正在检查更新"],
351
357
  "nightly_preparing": ["Preparing an update; service stays available", "正在准备新版,当前服务继续运行"],
352
358
  "nightly_deferred": ["Deferred until another idle window", "已延后,等待下个空闲时段"],
@@ -399,7 +405,7 @@
399
405
  "application_action_route_conflict": ["Existing routing was preserved. Check the app configuration.", "已有路由已保留,请检查应用配置。"],
400
406
  "codex_auto_launch": ["Open Codex when CCDX starts", "启动 CCDX 时打开 Codex"],
401
407
  "application_preference_failed": ["Not saved. Try again.", "未保存,请重试。"],
402
- "source_concurrency": ["Concurrency · Auto", "并发 · 自动"],
408
+ "source_concurrency": ["Concurrency (Auto)", "并发(自动)"],
403
409
  "source_concurrency_auto": ["Auto", "自动"],
404
410
  "source_concurrency_maximum": ["Maximum concurrency", "最大并发"],
405
411
  "source_concurrency_hint": ["Leave blank for Auto. A value only sets its ceiling.", "留空自动调节,填写数值仅设上限。"],
@@ -596,7 +602,7 @@
596
602
  "image_first_setup": ["Uses the existing GitHub account", "使用现有 GitHub 账号"],
597
603
  "record_scope": ["Record scope", "记录范围"],
598
604
  "estimated_percentiles": ["Approx. first-output P50 / P95", "首个输出 P50 / P95(约)"],
599
- "percentile_values": ["{p50} / {p95} ms · {samples} samples", "{p50} / {p95} ms · {samples} 次样本"],
605
+ "percentile_values": ["{p50} / {p95} ms ({samples} samples)", "{p50} / {p95} ms({samples} 次样本)"],
600
606
  "percentile_basis": ["Estimated from histogram buckets since startup; includes partial-output failures.", "按本次运行的耗时分布估算,包含已有输出的失败请求。"],
601
607
  "source_initial_review_saved": ["Source and initial review settings saved. Applies to new requests.", "来源及初始审查设置已保存,用于新的请求。"],
602
608
 
@@ -609,10 +615,10 @@
609
615
  "flow_no_active": ["Waiting for the next request", "等待下一次请求"],
610
616
  "flow_last_observed": ["Last observed", "上次记录"],
611
617
  "flow_active_requests": ["Active requests", "进行中的请求"],
612
- "flow_active_count": ["Active requests · {count}", "进行中 · {count}"],
613
- "flow_last_count": ["Last observed · {count}", "上次记录 · {count}"],
618
+ "flow_active_count": ["Active requests ({count})", "进行中({count})"],
619
+ "flow_last_count": ["Last observed ({count})", "上次记录({count})"],
614
620
  "flow_related_count": ["{count} related requests", "{count} 个相关请求"],
615
- "flow_group_scope": ["{apps} apps · {models} model groups", "{apps} 个应用 · {models} 个模型分组"],
621
+ "flow_group_scope": ["{apps} apps, {models} model groups", "{apps} 个应用,{models} 个模型分组"],
616
622
  "flow_omitted": ["Showing {count} requests; {omitted} more have no detail", "显示 {count} 个请求,另有 {omitted} 个暂无详情"],
617
623
  "flow_more_models": ["Show {count} more models", "显示其余 {count} 个模型"],
618
624
  "flow_fewer_models": ["Show fewer models", "收起模型"],
@@ -656,12 +662,12 @@
656
662
  "flow_elapsed": ["Elapsed", "已持续"],
657
663
  "sign_in_status": ["Sign-in", "登录状态"],
658
664
  "account_details": ["Account details", "账号详情"],
659
- "preference_effect": ["{saved} · {state}", "{saved} · {state}"],
665
+ "preference_effect": ["{saved} ({state})", "{saved}({state})"],
660
666
  "model_details": ["Model details", "模型详情"],
661
667
  "model_outcome": ["Model result", "模型结果"],
662
668
  "attempts": ["Attempts", "尝试次数"],
663
669
  "last_success": ["Last success", "最后成功"],
664
- "request_http_failure": ["HTTP {status} · Failed", "请求失败 · HTTP {status}"],
670
+ "request_http_failure": ["Request failed (HTTP {status})", "请求失败(HTTP {status})"],
665
671
  "catalog_cause_sign_in_rejected": ["Microsoft 365 rejected the sign-in. Check account access.", "Microsoft 365 拒绝了登录,请检查账号权限。"],
666
672
  "catalog_cause_entra_access_disabled": ["Copilot CLI Entra access is not enabled for this account.", "此账号尚未开通 Copilot CLI Entra 访问。"],
667
673
  "catalog_cause_access_denied": ["Microsoft 365 denied access to the model list.", "Microsoft 365 拒绝访问模型列表。"],
@@ -679,7 +685,7 @@
679
685
  "claude_shared_source": ["Shared by Claude Code and Claude App.", "Claude Code 与 Claude App 共用此来源。"],
680
686
  "manage_source_account": ["Manage source and account", "管理来源与账号"],
681
687
  "connection_details": ["Connection details", "连接详情"],
682
- "messages_combined_since_start": ["Both Claude apps · This service run", "两款应用合计 · 本次运行"],
688
+ "messages_combined_since_start": ["Both Claude apps in this run", "本次运行中两款 Claude 应用的合计"],
683
689
  "claude_metrics_combined": ["Both Claude apps", "两款应用合计"],
684
690
  "source_access_details": ["CONNECTION DIAGNOSTICS", "连接诊断"],
685
691
  "account_access": ["Account & access", "账号与访问"],
@@ -740,7 +746,7 @@
740
746
  "tools_local_scope": ["Local checks only", "仅检查本机"],
741
747
  "client_versions_scope": ["Installed versions only; running App adoption and compatibility are separate.", "显示已安装版本;运行中的版本和接入状态需分别确认。"],
742
748
  "client_version_observed": ["{version}", "{version}"],
743
- "client_version_changed": ["{version} · updated, access unverified", "{version} · 已更新,接入待确认"],
749
+ "client_version_changed": ["{version} (updated; access unverified)", "{version}(已更新,接入待确认)"],
744
750
  "tools_check_local": ["Check this computer", "本机检查"],
745
751
  "tools_export_report": ["Export report", "导出报告"],
746
752
  "tools_checks_empty": ["Run a local check to see results.", "运行本机检查后查看结果。"],
@@ -810,7 +816,7 @@
810
816
  "update_attempted_time": ["Last attempt: {time}", "最近尝试:{time}"],
811
817
  "update_install_help": ["Update failed? View full installation commands", "更新遇到问题?查看完整安装指令"],
812
818
  "installation_platform": ["Installation platform", "安装平台"],
813
- "update_install_hint": ["Full installation commands · No Git required", "完整安装指令 · 无需 Git"],
819
+ "update_install_hint": ["Installation commands (no Git required)", "安装命令(无需 Git)"],
814
820
  "update_install_policy": ["Installs a private runtime if Node/npm is missing. Keeps registry, proxy, certificates and script policy.", "缺少 Node/npm 时安装专用运行环境。\n保留镜像、代理、证书和脚本策略。"],
815
821
  "update_windows_policy": ["If scripts are blocked, use your company-approved installation method.", "脚本受限时,请使用公司批准的安装方式。"],
816
822
  "update_copy_unavailable": ["Clipboard unavailable. Select the command and copy it.", "无法自动复制,请选中指令复制。"],
@@ -819,7 +825,7 @@
819
825
  "choose_company_account": ["Choose a company account", "选择公司账号"],
820
826
  "use_this_account": ["Use this account", "使用此账号"],
821
827
  "company_account_scope": ["Shared by Codex and Claude. Start a new conversation after switching.", "供 Codex 和 Claude 共用。切换后请新建对话。"],
822
- "company_account_current": ["{login} · Tenant {tenant} · {source}", "{login}\n租户:{tenant} · {source}"],
828
+ "company_account_current": ["{login}\nTenant: {tenant}\nSource: {source}", "{login}\n租户:{tenant}\n来源:{source}"],
823
829
  "account_source_windows": ["Windows sign-in", "Windows 登录账号"],
824
830
  "account_source_single": ["Only company account", "唯一公司账号"],
825
831
  "account_source_manual": ["Your choice", "手动选择"],
@@ -940,7 +946,7 @@
940
946
  "updated_from_returned_usage_not_a_live_bill_pending_usage_is_not": ["Returned usage only.", "仅统计已返回用量。"],
941
947
  "applies_to_the_running_terminal": ["Updates the running terminal.", "保存后更新当前终端。"],
942
948
  "recent_inference_http_failures": ["RECENT REQUEST ISSUES", "近期异常"],
943
- "codex_responses_timing_since_startup_output_speed_is_estimated": ["This service run · Estimated output speed", "本次运行 · 输出速度为估算"],
949
+ "codex_responses_timing_since_startup_output_speed_is_estimated": ["Output speed is estimated for this run.", "本次运行的输出速度为估算值。"],
944
950
  "service_reachable": ["CONNECTED LOCALLY", "已连本机"],
945
951
  "saved_choice_applies_to_the_running_terminal": ["Saving updates the running terminal.", "保存后更新当前终端。"],
946
952
  "effective_now": ["Active now", "已生效"],
@@ -950,7 +956,7 @@
950
956
  "next_configuration_request_cached_suggestions_may_remain": ["Applies on the next settings request. Cached suggestions may still appear.", "下次读取建议设置时生效。\n已有建议可能仍会显示。"],
951
957
  "reopen_the_client_to_finish": ["Reopen the app", "重开应用"],
952
958
  "restart_ccdx_to_finish": ["Restart CCDX", "请重启 CCDX"],
953
- "saved_saved_effective_effective_state": ["Saved {saved}; active {effective} · {state}", "已保存:{saved};当前:{effective} · {state}"],
959
+ "saved_saved_effective_effective_state": ["Saved {saved}; active {effective} ({state})", "已保存:{saved};当前:{effective}({state})"],
954
960
  "on": ["On", "开启"],
955
961
  "off": ["Off", "关闭"],
956
962
  "controlled_by_environment": ["Set at startup", "启动限定"],
@@ -994,7 +1000,7 @@
994
1000
  "running": ["Running", "运行中"],
995
1001
  "unavailable": ["Unavailable", "不可用"],
996
1002
  "count_providers": ["{count} providers", "{count}个来源"],
997
- "provider_done_done_incomplete_incomplete_failed_failed": ["{provider}: {done} done / {incomplete} incomplete / {failed} failed", "{provider}:完成{done}·未完成{incomplete}·失败{failed}"],
1003
+ "provider_done_done_incomplete_incomplete_failed_failed": ["{provider}: {done} done, {incomplete} incomplete, {failed} failed", "{provider}:完成 {done},未完成 {incomplete},失败 {failed}"],
998
1004
  "provider_status_authorization_and_inference_are_separate": ["Source status. Sign-in and successful requests are checked separately.", "来源状态分别核实。\n登录不代表请求一定成功。"],
999
1005
  "saved_credentials_authorization_model_access_and_client_requests": ["Saved sign-in, access, models and app requests are separate checks.", "登录信息、访问权限分别核实。\n模型访问与应用请求单独记录。"],
1000
1006
  "client_features": ["APP FEATURES", "应用功能"],
@@ -1031,6 +1037,7 @@
1031
1037
  "upstream_body_written": ["Written to connection", "已交给连接"],
1032
1038
  "upstream_transport_error": ["Transport error", "传输错误"],
1033
1039
  "upstream_wait_headers": ["Wait for response headers", "等待响应头"],
1040
+ "model_action_label": ["{name}: {action}", "{name}:{action}"],
1034
1041
  "request_total_time": ["Total time", "总耗时"],
1035
1042
  "request_masking": ["Local masking", "本地脱敏"],
1036
1043
  "request_total_inline": ["Total {value}", "总耗时 {value}"],
@@ -1038,7 +1045,7 @@
1038
1045
  "client_request_id": ["Outbound request ID", "出站编号"],
1039
1046
  "retry_after": ["Retry-After", "重试提示"],
1040
1047
  "upstream_no_headers": ["Timed out before response headers", "等待响应头超时"],
1041
- "body_queue_detail": ["{ms} ms · {result}. At entry: {reason}. Reserved {reserved}; in use {occupied}/{limit}.", "{ms} ms · {result}。{reason};预留 {reserved},占用 {occupied}/{limit}。"],
1048
+ "body_queue_detail": ["{ms} ms ({result}). At entry: {reason}. Reserved {reserved}; in use {occupied}/{limit}.", "{ms} ms({result})。{reason};预留 {reserved},占用 {occupied}/{limit}。"],
1042
1049
  "body_queue_admitted": ["Admitted", "已放行"],
1043
1050
  "body_queue_timed_out": ["Queue timed out", "排队超时"],
1044
1051
  "body_queue_aborted": ["Wait cancelled", "等待已取消"],
@@ -1050,15 +1057,15 @@
1050
1057
  "body_queue_budget": ["Remaining budget could not cover the reservation", "剩余额度不足以预留本请求"],
1051
1058
  "gateway_timing_output_speed_is_estimated": ["Estimated by CCDX. Not internal model time or total throughput.", "由 CCDX 估算。\n不代表模型内部耗时或总吞吐。"],
1052
1059
  "value_samples_samples": ["{value} / {samples} samples", "{value} / {samples}次样本"],
1053
- "ccdx_local_dashboard": ["CCDX · Dashboard", "CCDX · 运行面板"],
1060
+ "ccdx_local_dashboard": ["CCDX Dashboard", "CCDX 运行面板"],
1054
1061
  "local_status": ["/ DASHBOARD", "/ 运行面板"],
1055
1062
  "reading": ["READING", "读取中"],
1056
1063
  "local_ok": ["CONNECTED LOCALLY", "已连本机"],
1057
1064
  "unavailable_eb0be": ["UNAVAILABLE", "无法读取"],
1058
1065
  "refresh": ["Refresh", "刷新"],
1059
1066
  "auto_refresh": ["Auto refresh", "自动刷新"],
1060
- "auto_refresh_on": ["Auto refresh · ON", "自动刷新 · 开"],
1061
- "auto_refresh_off": ["Auto refresh · OFF", "自动刷新 · 关"],
1067
+ "auto_refresh_on": ["Auto refresh: On", "自动刷新:开"],
1068
+ "auto_refresh_off": ["Auto refresh: Off", "自动刷新:关"],
1062
1069
  "every_30_minutes_while_visible_open_sections_update_on_demand": ["Refreshes every 30 minutes while visible. Opening a section also refreshes it.", "可见时每30分钟刷新。\n展开栏目也会刷新。"],
1063
1070
  "local_only_visible_page_updates": ["THIS COMPUTER ONLY / UPDATES WHILE VISIBLE", "仅限本机/页面可见时更新"],
1064
1071
  "updated_time": ["Updated {time}", "更新于{time}"],
@@ -1079,7 +1086,7 @@
1079
1086
  "outcome": ["RESULT", "结果"],
1080
1087
  "unknown": ["Unknown", "未知状态"],
1081
1088
  "no_observed_request_metadata": ["No request records yet.", "暂未收到请求记录。"],
1082
- "20_latest_finished_requests_compactions_completed_completed_inco": ["Last 20 finished requests · Compaction: {completed} completed · {incomplete} incomplete · {failed} failed", "最近 20 次已结束请求 · 上下文压缩:完成 {completed} · 未完成 {incomplete} · 失败 {failed}"],
1089
+ "20_latest_finished_requests_compactions_completed_completed_inco": ["Last 20 finished requests. Compaction: {completed} completed, {incomplete} incomplete, {failed} failed.", "最近 20 条已结束请求。上下文压缩:完成 {completed} 次,未完成 {incomplete} 次,失败 {failed} 次。"],
1083
1090
  "recent_upstream_request_metadata_not_exact_live_session_occupanc": ["No prompts or images are stored. — means unavailable data.", "不保存提问或图片。— 表示数据未知。"],
1084
1091
  "runtime_details": ["Runtime details", "运行详情"],
1085
1092
  "adapter": ["SERVICE", "服务状态"],
@@ -1162,7 +1169,7 @@
1162
1169
  "daily_token_usage": ["Input and output usage by date", "按日期记录的输入与输出用量"],
1163
1170
  "input_36ecb": ["Input usage", "输入用量"],
1164
1171
  "output_b2439": ["Output usage", "输出用量"],
1165
- "request_activity_365_days": ["ACTIVITY · LAST 365 DAYS", "活跃日历"],
1172
+ "request_activity_365_days": ["Activity over the last 365 days", "活跃日历"],
1166
1173
  "daily_recorded_request_activity": ["Recorded usage by date", "按日期记录的用量"],
1167
1174
  "select_a_day_to_inspect_its_model_totals_no_history_is_distinct_": ["Select a day for usage. Blank means no records.", "点击日期查看当天用量。空白表示无记录。"],
1168
1175
  "recent_failures": ["Recent issues", "异常记录"],
@@ -1174,7 +1181,7 @@
1174
1181
  "animation_theme": ["Animation style", "动效样式"],
1175
1182
  "save_selection": ["Save animation", "保存动效"],
1176
1183
  "applies_on_next_ccdx_start": ["Save, then restart ccdx to apply.", "保存后,下次启动生效。"],
1177
- "local_only_no_background_polling": ["LOCAL ONLY · NO TIMED REFRESH", "仅在本机查看。不会定时读取。"],
1184
+ "local_only_no_background_polling": ["Local only. No scheduled refresh.", "仅在本机查看。不会定时读取。"],
1178
1185
  "saved_github_copilot_account_local_credentials_only_not_an_onlin": ["Saved sign-in only. Online access has not been checked.", "仅显示已保存的登录信息。\n尚未核实访问权限。"],
1179
1186
  "github_reading": ["GitHub / READING", "GitHub / 读取中"],
1180
1187
  "github_unavailable": ["GitHub / UNAVAILABLE", "GitHub / 无法读取"],
@@ -1182,7 +1189,7 @@
1182
1189
  "github_invalid": ["GitHub / INVALID DETAILS", "GitHub / 信息无效"],
1183
1190
  "github_account_saved": ["GitHub / {account} / SAVED", "GitHub / {account} / 已保存"],
1184
1191
  "account_unknown": ["account unknown", "账号未知"],
1185
- "pid_pid_uptime_duration": ["PID {pid} · running {duration}", "进程编号:{pid} · 已运行:{duration}"],
1192
+ "pid_pid_uptime_duration": ["Running {duration} (PID {pid})", "已运行 {duration}(进程 {pid})"],
1186
1193
  "bound": ["IDENTIFIED", "已识别"],
1187
1194
  "unconfirmed": ["NOT CONFIRMED", "未确认"],
1188
1195
  "service_token_ttl_duration": ["Sign-in valid for {duration}", "登录信息剩余有效期:{duration}"],
@@ -1192,7 +1199,7 @@
1192
1199
  "cache": ["existing list", "已有列表"],
1193
1200
  "live": ["online list", "在线列表"],
1194
1201
  "unknown_b23a6": ["unknown", "未知"],
1195
- "4xx_client_5xx_server_active_active": ["4xx {client} · 5xx {server} · active {active}", "4xx {client} · 5xx {server} · 进行中 {active}"],
1202
+ "4xx_client_5xx_server_active_active": ["4xx: {client}, 5xx: {server}, active: {active}", "4xx:{client},5xx:{server},进行中:{active}"],
1196
1203
  "raw_raw_decoded_decoded": ["Received limit: {raw}\nAfter unpacking: {decoded}", "接收上限:{raw}\n展开后上限:{decoded}"],
1197
1204
  "entries_entries_trees_trees_misses_misses_evicted_evicted": ["Records: {entries} / groups: {trees}\nNot found: {misses} / removed: {evicted}", "暂存:{entries}条/分组:{trees}\n未找到:{misses}\n清理后未找到:{evicted}"],
1198
1205
  "count_succeeded": ["{count} succeeded", "成功:{count}次"],
@@ -1249,13 +1256,13 @@
1249
1256
  "no_live_catalog_available": ["Cannot get the model list.", "无法获取模型列表。"],
1250
1257
  "no_usage_records": ["No usage records yet.", "暂未记录用量。"],
1251
1258
  "local_log": ["LOCAL RECORDS", "本机记录"],
1252
- "records_records_shown_of_models_models_shown_day": ["Records: {records} · models: {shown} of {models}{day}", "记录:{records}条\n模型:展示{shown}个,共{models}个{day}"],
1259
+ "records_records_shown_of_models_models_shown_day": ["Records: {records}\nModels shown: {shown} of {models}{day}", "记录:{records} 条\n模型:展示 {shown} 个,共 {models} 个{day}"],
1253
1260
  "zone_model": [" / {zone} / {model}", " / {zone} / {model}"],
1254
1261
  "no_retained_history": ["no records", "没有记录"],
1255
1262
  "calls_recorded_calls_input_input_output_output_cached_cached_inc": ["{calls} usage records\nInput: {input} / output: {output}\nReused input: {cached} Token\nReused input is part of input.{partial}", "用量记录:{calls}\n输入:{input}/输出:{output}\n复用输入:{cached} Token\n复用部分已计入输入。{partial}"],
1256
1263
  "partial_token_counts": ["\nIncomplete usage records.", "\n用量记录不完整。"],
1257
1264
  "date_description": ["{date} / {description}", "{date} / {description}"],
1258
- "metric_peak_peak": ["{metric} · Peak {peak}", "{metric} · 峰值 {peak}"],
1265
+ "metric_peak_peak": ["{metric} (peak {peak})", "{metric}(峰值 {peak})"],
1259
1266
  "input_output": ["TOTAL USAGE (Token)", "总用量"],
1260
1267
  "recorded_calls": ["RECORDED REQUESTS", "请求次数"],
1261
1268
  "zone_from_to_retained_history_starts_first_oldest_day_may_be_par": ["Zone: {zone}\nRange: {from}–{to}\nFirst record: {first}\nThe first day may be partial.{excluded}{limit}", "时区:{zone}\n记录范围:{from}—{to}\n最早记录:{first}\n最早一天可能记录不全。{excluded}{limit}"],
@@ -23,7 +23,7 @@
23
23
  const status = ["downloading", "loading", "error"].includes(state.state) ? state.state : state.enabled ? state.state === "ready" ? state.pending_checks ? "checking" : "ready" : "error" : state.state === "installed" || state.state === "ready" ? "installed" : "off";
24
24
  words("privacy-status", `privacy_state_${status}`, { percent: Math.min(100, Math.round((state.downloaded_bytes || 0) * 100 / Math.max(1, state.download_bytes))) });
25
25
  el("privacy-status").hidden = status === "off";
26
- el("privacy-device").textContent = state.backend ? state.device && state.device !== state.backend ? `${state.backend} · ${state.device}` : state.backend : "";
26
+ el("privacy-device").textContent = state.backend ? state.device && state.device !== state.backend ? `${state.backend} (${state.device})` : state.backend : "";
27
27
  const check = state.enabled && state.last_check?.state === "failed" ? state.last_check : null;
28
28
  if (state.error) words("privacy-error", state.error.includes("download") ? "privacy_download_error" : "privacy_error");
29
29
  else if (state.enabled && state.last_response?.state === "failed") words("privacy-error", "privacy_response_error", { code: state.last_response.privacy_error || "ccdx_privacy_response_invalid" });
@@ -46,12 +46,11 @@
46
46
  applications.get(id).push({ provider, client });
47
47
  }
48
48
  if (provider.requests) {
49
- const item = document.createElement("p");
50
- localize(item, "provider_done_done_incomplete_incomplete_failed_failed", { provider: `${provider.name} · ${provider.request_scope || "Claude Messages"}`,
51
- done: number(provider.requests.completed), incomplete: number(provider.requests.incomplete), failed: number(provider.requests.failed) });
52
- requests.append(item);
49
+ requests.append(tableRow([provider.name, provider.request_scope || "Claude Messages", number(provider.requests.completed),
50
+ number(provider.requests.incomplete), number(provider.requests.failed)]));
53
51
  }
54
52
  }
53
+ if (!requests.children.length) emptyTable("provider-requests", 5, "no_requests_observed");
55
54
  for (const entries of applications.values()) {
56
55
  const selected = entries.find(entry => entry.client.selected === true) || (entries.length === 1 ? entries[0] : null);
57
56
  const client = selected?.client || { name: entries[0].client.name, state: entries.every(entry => entry.client.state === "paused") ? "paused" : "unknown" };
@@ -239,6 +238,20 @@
239
238
  }
240
239
  }
241
240
 
241
+ function renderRequestCounts(data) {
242
+ const requests = data.requests || {};
243
+ text("requests", number(requests.total));
244
+ text("requests-4xx", number(requests.status_4xx));
245
+ text("requests-5xx", number(requests.status_5xx));
246
+ text("requests-active", number(requests.active));
247
+ const categories = data.http_errors?.by_category;
248
+ for (const key of ["inference", "capability", "protocol", "route", "other"]) {
249
+ const value = categories ? number(categories[key] ?? 0) : "—";
250
+ text(`http-${key}`, value);
251
+ text(`http-mobile-${key}`, value);
252
+ }
253
+ }
254
+
242
255
  function render(data) {
243
256
  if (data.scope === "summary") {
244
257
  globalThis.ccdxDashboardActivity?.update(data.model_activity);
@@ -259,12 +272,7 @@
259
272
  text("models", number(models.models));
260
273
  text("model-source", "source_source_live_ccdx_models", { source: phrase(String(models.source || "unknown").slice(0, 80)) });
261
274
 
262
- const requests = data.requests || {};
263
- text("requests", number(requests.total));
264
- text("request-errors", "4xx_client_5xx_server_active_active", { client: number(requests.status_4xx), server: number(requests.status_5xx), active: number(requests.active) });
265
- const categories = data.http_errors?.by_category;
266
- text("http-error-breakdown", categories ? "http_categories" : "—",
267
- categories ? Object.fromEntries(["inference", "capability", "protocol", "route", "other"].map(key => [key, number(categories[key] || 0)])) : {});
275
+ renderRequestCounts(data);
268
276
  text("body-limits", "raw_raw_decoded_decoded", { raw: mib(data.limits?.max_body_bytes), decoded: mib(data.limits?.max_decoded_body_bytes) });
269
277
 
270
278
  const outcomes = data.stream_performance?.by_route?.responses?.terminal_outcomes?.totals || {};
@@ -350,11 +358,7 @@
350
358
  globalThis.ccdxDashboardFlow?.update(data, { live: true });globalThis.ccdxToolActivity?.update(data, { live: true });
351
359
  text("version", `v${data.version || "?"}`);
352
360
  text("uptime", "pid_pid_uptime_duration", { pid: number(data.pid), duration: duration(data.uptime_ms) });
353
- text("requests", number(data.requests?.total));
354
- text("request-errors", "4xx_client_5xx_server_active_active", { client: number(data.requests?.status_4xx), server: number(data.requests?.status_5xx), active: number(data.requests?.active) });
355
- const categories = data.http_errors?.by_category;
356
- text("http-error-breakdown", categories ? "http_categories" : "—",
357
- categories ? Object.fromEntries(["inference", "capability", "protocol", "route", "other"].map(key => [key, number(categories[key] || 0)])) : {});
361
+ renderRequestCounts(data);
358
362
  for (const key of ["completed", "incomplete", "failed", "cancelled"]) {
359
363
  text(key, number(data.stream_performance?.by_route?.responses?.terminal_outcomes?.totals[key]));
360
364
  text(`claude-${key}`, number(data.providers?.claude?.requests?.performance?.by_route?.messages?.terminal_outcomes?.totals[key]));
@@ -392,7 +396,19 @@
392
396
  const signature = JSON.stringify(contextRequests);
393
397
  if (signature === contextSignature) return;
394
398
  contextSignature = signature;
395
- const expanded = new Set([...(body.querySelectorAll?.("details[open]") || [])].filter(details => details.dataset.disclosureClosing !== "true").map(details => details.getAttribute("data-request-key")));
399
+ const openDetails = [...(body.querySelectorAll?.("details[open]") || [])].filter(details => details.dataset.disclosureClosing !== "true");
400
+ const expanded = new Set(openDetails.map(details => details.getAttribute("data-request-key")));
401
+ const viewport = document.defaultView;
402
+ const focused = document.activeElement?.closest?.(".request-details > summary");
403
+ const keepFocus = Boolean(focused && body.contains?.(focused));
404
+ const topInView = summary => {
405
+ if (!viewport?.scrollY || !summary) return null;
406
+ const box = summary.getBoundingClientRect();return box.bottom > 0 && box.top < viewport.innerHeight ? box.top : null;
407
+ };
408
+ let reading = keepFocus ? focused : null;
409
+ if (!reading && viewport?.scrollY) reading = openDetails.map(details => details.querySelector("summary")).find(summary => topInView(summary) !== null);
410
+ const readingKey = reading?.parentElement?.getAttribute("data-request-key"), readingTop = topInView(reading);
411
+ let restoredSummary;
396
412
  body.replaceChildren();
397
413
  for (const request of contextRequests) {
398
414
  const context = request.context || {};
@@ -401,23 +417,22 @@
401
417
  const ratio = finite(context.input_tokens) && finite(context.context_window_tokens) && Number(context.context_window_tokens) > 0
402
418
  ? `${(100 * Number(context.input_tokens) / Number(context.context_window_tokens)).toFixed(1)}%` : "—";
403
419
  const at = Date.parse(request.at);
404
- const row = tableRow([Number.isFinite(at) ? time(at) : "—",
405
- String(sourceLabel(request.provider) || "—").slice(0, 80),
406
- String(request.model || "unknown").slice(0, 80), outcome, number(context.input_tokens), ""], { labels: [3] });
420
+ const totalMs = request.timings_ms?.finished;
421
+ const app = ["codex", "codex_app", "codex_cli", "claude", "claude_app", "claude_code", "gemini_app", "api"].includes(request.application) ? request.application : "api";
422
+ const row = tableRow([Number.isFinite(at) ? time(at) : "—", "",
423
+ String(request.model || "unknown").slice(0, 80), outcome, Number.isFinite(totalMs) ? requestTime(totalMs) : "—", ""], { labels: [3] });
424
+ localize(row.children[1], `flow_app_${app}`);
425
+ row.children[4].className = "recent-request-duration";
407
426
  const wireFailure = Number.isInteger(request.http_status) && request.http_status >= 400;
408
427
  if (request.rejection_reason) {
409
428
  if (globalThis.ccdxIcons) globalThis.ccdxIcons.set(row.children[3], "request_access_blocked", "unavailable");else localize(row.children[3], "request_access_blocked");
410
429
  } else if (globalThis.ccdxIcons) globalThis.ccdxIcons.set(row.children[3], wireFailure ? "request_http_failure" : outcome.toLowerCase(),
411
430
  wireFailure ? "warning" : globalThis.ccdxIcons.kind(outcome.toLowerCase()), wireFailure ? { status: request.http_status } : {});
412
431
  else if (wireFailure) localize(row.children[3], "request_http_failure", { status: request.http_status });
413
- const totalMs = request.timings_ms?.finished;
414
- if (Number.isFinite(totalMs)) {
415
- const total = document.createElement("small");total.className = "table-note";
416
- localize(total, "request_total_inline", { value: requestTime(totalMs) });row.children[3].append(total);
417
- }
418
432
  const details = document.createElement("details"), summary = document.createElement("summary"), fields = document.createElement("dl");
419
433
  const key = String(request.request_id || `${request.at || ""}/${request.provider || ""}/${request.model || ""}`).slice(0, 256);
420
434
  details.setAttribute?.("data-request-key", key);details.open = expanded.has(key);
435
+ if (key === readingKey) restoredSummary = summary;
421
436
  details.className = "request-details";fields.className = "failure-detail";
422
437
  localize(summary, "tools_details");details.append(summary, fields);
423
438
  const queue = context.body_queue;
@@ -429,6 +444,7 @@
429
444
  const attempt = request.attempts?.at(-1);
430
445
  for (const [key, value] of [["request_id", request.request_id || "—"], ["http_status", number(request.http_status)], ["attempts", number(request.upstream_attempts)], ["model_outcome", globalThis.ccdxLanguage?.format(outcome.toLowerCase()) || outcome],
431
446
  ["time", Number.isFinite(at) ? time(at, { date: true }) : "—"],
447
+ ["source", String(sourceLabel(request.provider) || "—").slice(0, 80)], ["input_tokens", number(context.input_tokens)],
432
448
  ...(Number.isSafeInteger(queue?.wait_ms) && queue.wait_ms > 0 ? [["body_queue_wait", phrase("body_queue_detail", {
433
449
  ms: number(queue.wait_ms), result: phrase(queueResult), reason: phrase(queueReason),
434
450
  reserved: mib(queue.requested_bytes), occupied: mib(queue.active_bytes), limit: mib(queue.limit_bytes),
@@ -454,6 +470,13 @@
454
470
  }
455
471
  row.children[5].append(details);body.append(row);
456
472
  }
473
+ if (restoredSummary) {
474
+ if (keepFocus) restoredSummary.focus({ preventScroll: true });
475
+ if (readingTop !== null) {
476
+ const shift = restoredSummary.getBoundingClientRect().top - readingTop;
477
+ if (Math.abs(shift) > 1) viewport.scrollBy(0, shift);
478
+ }
479
+ }
457
480
  if (!contextRequests.length) emptyTable("context-body", 6, "no_observed_request_metadata");
458
481
  }
459
482
  return { render, renderActivity, renderProviders, renderFailures, renderContext };
@@ -148,7 +148,7 @@
148
148
  const displayed = active.length ? rows : agents.length ? agents : rows;
149
149
  const groups = new Map(displayed.map(row => [`${row.application}:${row.provider}:${row.model}`, row]));
150
150
  el("tool-context").hidden = !displayed.length;
151
- el("tool-context").textContent = groups.size === 1 ? `${appName(displayed[0].application)} · ${displayed[0].model === "other" ? phrase("flow_model_pending") : displayed[0].model}` : phrase("tool_groups", { count: groups.size });
151
+ el("tool-context").textContent = groups.size === 1 ? phrase("model_action_label", { name: appName(displayed[0].application), action: displayed[0].model === "other" ? phrase("flow_model_pending") : displayed[0].model }) : phrase("tool_groups", { count: groups.size });
152
152
  const list = el("tool-list");list.replaceChildren();
153
153
  for (const row of displayed.slice(0, 6)) {
154
154
  const agent = row.responding !== undefined;
@@ -161,7 +161,13 @@
161
161
  el("tool-details").hidden = !rows.length;
162
162
  el("tool-technical").replaceChildren();
163
163
  for (const row of rows) {
164
- const line = document.createElement("p");line.textContent = `${appName(row.application)} · ${sourceName(row.provider)} · ${row.model} · ${row.name || phrase("tool_action_generic")} · ${phrase(`tool_row_${row.state}`)}`;el("tool-technical").append(line);
164
+ const line = document.createElement("dl");line.className = "tool-record-fields";
165
+ for (const [label, value] of [["client", appName(row.application)], ["source", sourceName(row.provider)],
166
+ ["model", row.model], ["tool_heading", row.name || phrase("tool_action_generic")], ["outcome", phrase(`tool_row_${row.state}`)]]) {
167
+ const term = document.createElement("dt"), detail = document.createElement("dd");
168
+ term.textContent = phrase(label);detail.textContent = value;line.append(term, detail);
169
+ }
170
+ el("tool-technical").append(line);
165
171
  }
166
172
  el("tool-more").hidden = rows.length <= 6 && !omitted;
167
173
  text("tool-more", "tool_more", { count: Math.max(0, rows.length - 6) + omitted });
@@ -167,7 +167,7 @@
167
167
  el("config-preview-details").textContent = data.checks.map(check => check.message).join("\n");
168
168
  text("checks-note", "tools_review_repair");
169
169
  } else if (action.action === "compatibility") {
170
- el("compatibility-note").textContent = (data.checks || []).map(check => check.message).join(" · ");
170
+ el("compatibility-note").textContent = (data.checks || []).map(check => check.message).join("\n");
171
171
  } else if (action.action === "repair") {
172
172
  el("config-repair-preview").hidden = true;repairPreview = null;
173
173
  if (data.local?.checked_at) renderChecks(data.local);
@@ -594,7 +594,7 @@ input[role="switch"]:disabled { opacity: .5; cursor: wait; }
594
594
  .binding-table td:first-child { grid-column: 1; min-width: 0; }
595
595
  .binding-table td:first-child label { overflow-wrap: anywhere; }
596
596
  .binding-table td[data-label] { grid-column: 1 / -1; color: var(--muted); }
597
- .binding-table td[data-label]::before { content: attr(data-label) " · "; color: var(--subtle); }
597
+ .binding-table td[data-label]::before { content: attr(data-label); margin-inline-end: 8px; color: var(--subtle); }
598
598
  .binding-table td:last-child { grid-column: 2; grid-row: 1; align-self: center; }
599
599
  .binding-table td:last-child button { min-width: 88px; padding: 9px; }
600
600
  .binding-table td[colspan] { grid-column: 1 / -1; }
@@ -708,3 +708,29 @@ input[role="switch"]:disabled { opacity: .5; cursor: wait; }
708
708
  @keyframes tool-cursor { 50% { opacity:0; } }
709
709
  @media(max-width:620px) { .tool-stage { grid-template-columns:1fr;gap:8px; }.tool-visual { width:100%;max-width:330px;margin:auto; }.tool-content { padding-bottom:8px; }.tool-context { margin-bottom:4px; } }
710
710
  @media(prefers-reduced-motion:reduce) { #tool-cursor { animation:none; } }
711
+
712
+ /* Compact request statistics in the existing diagnostics panel. */
713
+ .request-kpis { display: flex; flex-wrap: wrap; gap: 5px 16px; margin: 8px 0; font-size: 12px; }
714
+ .request-kpis > div, .http-error-grid > div { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
715
+ .request-kpis dt, .http-error-grid dt { color: var(--muted); }
716
+ .request-kpis dd, .http-error-grid dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
717
+ .http-error-table { width: auto; margin: 4px 0; }
718
+ .http-error-table :is(th,td) { text-align: right; white-space: normal; padding-block: 4px; font-variant-numeric: tabular-nums; }
719
+ .http-error-grid { display: none; }
720
+ .request-limits-line { display: flex; flex-wrap: wrap; gap: 4px 10px; }
721
+ .recent-request-duration { text-align: right; font-variant-numeric: tabular-nums; }
722
+ @media (max-width: 620px) {
723
+ .http-error-table { display: none; }
724
+ .http-error-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 4px 10px; margin: 6px 0; font-size: 12px; }
725
+ .http-error-grid > div { grid-column: span 2; justify-content: space-between; }
726
+ .http-error-grid > div:nth-child(n+4) { grid-column: span 3; }
727
+ .http-error-grid dt { overflow-wrap: anywhere; }
728
+ }
729
+
730
+ .metadata-check-time { display: block; color: var(--muted); }
731
+ .tool-record-fields { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 8px; margin: 4px 0 8px; }
732
+ .tool-record-fields dt { color: var(--muted); }
733
+ .tool-record-fields dd { margin: 0; overflow-wrap: anywhere; }
734
+ [data-view="system"] .setting-row { gap: 10px; padding-block: 8px; }
735
+ [data-view="overview"] .card { min-height: 0; padding-block: 12px; }
736
+ [data-view="overview"] .card strong { margin-top: 6px; }
@@ -31,7 +31,7 @@ try {
31
31
  const command = installationCommand(platform, snapshot?.current?.version, snapshot?.latest?.version);
32
32
  element("install-command").textContent = command;
33
33
  element("copy-install").disabled = !command;
34
- element("install-shell").textContent = platform === "windows" ? "Windows · PowerShell" : "macOS · Terminal";
34
+ element("install-shell").textContent = platform === "windows" ? "Windows PowerShell" : "macOS Terminal";
35
35
  element("install-windows-policy").hidden = platform !== "windows";
36
36
  }
37
37
  function render(data) {
@@ -379,8 +379,12 @@ export function createResponsesHandler(options) {
379
379
  carbonBridge = prepareCarbonToolBridge(prepared.body, prepared.currentInputStart);
380
380
  if (streaming) carbonStream = createCarbonStreamAdapter(carbonBridge);
381
381
  }
382
- const chatContext = carbonBridge
382
+ let chatContext = carbonBridge
383
383
  ? { ...prepared, body: carbonBridge.body, currentInputStart: carbonBridge.currentInputStart } : prepared;
384
+ if (carbonRoute) {
385
+ const { normalizeCarbonToolSchemas } = await import("./carbon-tool-schema.mjs");
386
+ chatContext = { ...chatContext, body: normalizeCarbonToolSchemas(chatContext.body) };
387
+ }
384
388
  let { chatReq, bodyText } = await prepareResponsesChatPayload(chatContext, {
385
389
  assertActive: assertPrepareActive,
386
390
  payloadOptions: responsesPayloadOptions,