codex-copilot-dx 1.4.15 → 1.4.17

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.
@@ -58,7 +58,7 @@
58
58
  <section class="overview" aria-label="Overview" data-i18n-label="overview"><article class="card"><h2 data-i18n="adapter">SERVICE</h2><strong id="version">—</strong><p id="uptime">—</p><p id="updated" class="refresh-time" data-i18n="reading_status">Reading status…</p></article><article class="card"><h2 data-i18n="sources">SOURCES</h2><strong id="source-summary">—</strong><p id="source-detail">—</p></article></section>
59
59
  <details class="panel dashboard-section" id="client-features" open>
60
60
  <summary class="panel-heading"><h2 data-i18n="client_connections">APP SETUP</h2></summary>
61
- <div class="table-wrap"><table><thead><tr><th data-i18n="client">APP</th><th data-i18n="current_source">Current source</th><th data-i18n="connection_setup" data-i18n-title="configured_not_successful">Setup</th><th data-i18n="local_bridge">Local service</th><th data-i18n="last_request">LAST REQUEST</th></tr></thead><tbody id="provider-clients"></tbody></table></div>
61
+ <div class="table-wrap"><table class="column-table"><thead><tr><th data-width="balanced" data-i18n="client">APP</th><th data-i18n="current_source">Configured source</th><th data-width="balanced" data-i18n="connection_setup" data-i18n-title="configured_not_successful">Setup</th><th data-width="balanced" data-i18n="local_bridge">Local service</th><th data-width="compact" data-i18n="last_request">LAST REQUEST</th></tr></thead><tbody id="provider-clients"></tbody></table></div>
62
62
  </details>
63
63
  <section class="panel dashboard-section"><h2 data-i18n="this_run_usage">THIS RUN</h2><p id="runtime-usage" class="table-note"></p><p class="table-note"><span data-i18n="approx_cache_hit_rate">Approx. cache hit rate</span>: <strong id="runtime-cache-hit" data-i18n-title="runtime_cache_hit_basis" title="Reused / input tokens from records with valid counts for both. ~ Partial coverage. — No valid input basis.">—</strong></p><p class="hint" data-i18n="updated_from_returned_usage_not_a_live_bill_pending_usage_is_not">Counts returned usage only. Pending usage is not included. This is not a live bill.</p></section>
64
64
  </div>
@@ -78,7 +78,7 @@
78
78
  <p id="connection-default-note" class="hint" role="status" hidden></p>
79
79
  <p id="connection-setup-state" class="client-sync-state" role="status" aria-live="polite"></p>
80
80
  <p id="connection-capability-state" class="hint" hidden></p>
81
- <div class="table-wrap"><table class="binding-table"><thead><tr><th data-i18n="model">Model</th><th data-i18n="source">Source</th><th data-i18n="cap_context">Context</th><th data-i18n="cap_reasoning">Reasoning</th><th data-i18n="cap_default">Default</th></tr></thead><tbody id="connection-bindings"></tbody></table></div>
81
+ <div class="table-wrap"><table class="binding-table column-table"><thead><tr><th data-i18n="model">Model</th><th data-width="balanced" data-i18n="source">Source</th><th data-width="compact" data-i18n="cap_context">Context</th><th data-i18n="cap_reasoning">Reasoning</th><th data-width="compact" data-i18n="cap_default">Default</th></tr></thead><tbody id="connection-bindings"></tbody></table></div>
82
82
  <p id="connection-effort-note" class="hint" data-i18n="cap_effort_scope" hidden>Used only when the app omits a reasoning level.</p>
83
83
  <div class="setting-row"><label for="connection-auto-sync" data-i18n="cap_auto_sync">Sync model settings</label><input id="connection-auto-sync" type="checkbox" role="switch" checked><span class="hint" data-i18n="cap_sync_scope">Preserves your manual settings.</span></div>
84
84
  <div class="section-actions"><button type="submit" data-i18n="api_save">Save</button><button type="button" id="connection-client-cancel" data-i18n="cap_discard_changes">Discard changes</button><button type="button" id="connection-sync-preview" data-i18n="cap_sync_preview">Review sync</button></div>
@@ -159,7 +159,7 @@
159
159
  <div id="claude-model-management" role="tabpanel" aria-labelledby="claude-app-tab"></div>
160
160
  <details class="panel dashboard-section" id="claude-connections">
161
161
  <summary data-i18n="connection_details">Connection details</summary>
162
- <div class="table-wrap"><table><thead><tr><th data-i18n="client">APP</th><th data-i18n="connection_setup" data-i18n-title="configured_not_successful">Setup</th><th data-i18n="local_bridge">Local service</th><th data-i18n="last_request">LAST REQUEST</th></tr></thead><tbody id="claude-clients"></tbody></table></div>
162
+ <div class="table-wrap"><table class="column-table"><thead><tr><th data-width="balanced" data-i18n="client">APP</th><th data-width="balanced" data-i18n="connection_setup" data-i18n-title="configured_not_successful">Setup</th><th data-width="balanced" data-i18n="local_bridge">Local service</th><th data-width="compact" data-i18n="last_request">LAST REQUEST</th></tr></thead><tbody id="claude-clients"></tbody></table></div>
163
163
  <p id="claude-client-state" class="hint"></p>
164
164
 
165
165
  <p id="claude-route" class="table-note"></p><p>Anthropic Messages</p><a class="section-link" href="#models" data-i18n="model_services">Model sources</a>
@@ -178,7 +178,7 @@
178
178
  <section class="panel dashboard-section">
179
179
  <div class="panel-heading"><h2 data-i18n="cap_visible_model">Available models</h2><div class="section-actions"><span id="gemini-draft-state" role="status" hidden></span><button id="gemini-refresh" type="button" data-i18n="refresh_models">Refresh models</button></div></div>
180
180
  <form id="gemini-model-form">
181
- <div class="table-wrap"><table class="binding-table"><thead><tr><th data-i18n="model">Model</th><th data-i18n="source">Source</th><th data-i18n="cap_context">Context</th><th data-i18n="cap_reasoning">Reasoning</th><th data-i18n="gemini_new_chat_default">New chat default</th></tr></thead><tbody id="gemini-models"></tbody></table></div>
181
+ <div class="table-wrap"><table class="binding-table column-table"><thead><tr><th data-i18n="model">Model</th><th data-width="balanced" data-i18n="source">Source</th><th data-width="compact" data-i18n="cap_context">Context</th><th data-i18n="cap_reasoning">Reasoning</th><th data-width="compact" data-i18n="gemini_new_chat_default">New chat default</th></tr></thead><tbody id="gemini-models"></tbody></table></div>
182
182
  <div class="section-actions"><label><span data-i18n="gemini_copilot_timeout">Copilot response-header timeout (s)</span> <input id="gemini-copilot-timeout" data-i18n-placeholder="limit_default" placeholder="Use default" type="number" min="1" max="600" step="1" inputmode="numeric" disabled></label><span id="gemini-timeout-lock" class="hint" data-i18n="controlled_by_environment" hidden>Set at startup</span>
183
183
  <label id="gemini-native-source-field" hidden><span data-i18n="gemini_native_source">Custom Gemini source</span> <select id="gemini-native-source" disabled></select></label></div>
184
184
  <div class="section-actions"><button id="gemini-save" type="submit" data-i18n="api_save" disabled>Save</button><button id="gemini-cancel" type="button" data-i18n="cap_discard_changes" disabled>Discard changes</button><button id="gemini-use-app-default" type="button" data-i18n="gemini_use_app_default" hidden>Use app default</button></div>
@@ -190,7 +190,7 @@
190
190
  <summary data-i18n="connection_details">Connection details</summary>
191
191
  <p id="gemini-route-state" class="client-sync-state" role="status">—</p>
192
192
  <p class="hint" data-i18n="gemini_scope">Native Google models remain available. Copilot models and background requests use Copilot.</p>
193
- <div class="table-wrap"><table class="dense-table"><thead><tr><th data-i18n="client">App</th><th data-i18n="installed_version">Installed version</th></tr></thead><tbody><tr><td>Antigravity</td><td id="gemini-version">—</td></tr></tbody></table></div><p id="gemini-app-state" class="table-note">—</p>
193
+ <div class="table-wrap"><table class="dense-table column-table"><thead><tr><th data-width="balanced" data-i18n="client">App</th><th data-i18n="installed_version">Installed version</th></tr></thead><tbody><tr><td>Antigravity</td><td id="gemini-version">—</td></tr></tbody></table></div><p id="gemini-app-state" class="table-note">—</p>
194
194
  <p id="gemini-reopen" class="hint" data-i18n="gemini_reopen" hidden>Quit Gemini, then open it here to load CCDX models.</p>
195
195
  <div class="section-actions"><button id="gemini-open" type="button" data-i18n="gemini_open">Open Antigravity</button><a class="section-link" href="#models" data-source-link="github" data-i18n="gemini_open_sources">Model sources</a></div>
196
196
  </details>
@@ -225,7 +225,7 @@
225
225
 
226
226
  <fieldset><legend data-i18n="model_catalog">Model list</legend><div class="section-actions"><button type="button" id="connection-discover" data-i18n="api_read_models">Read models</button><button type="button" id="connection-discover-cancel" data-i18n="cancel" hidden>Cancel</button><span id="connection-discover-note" class="hint" data-i18n="api_discovery_save_first">Save the source before reading models.</span></div>
227
227
  <details class="tool-details" id="connection-manual-model"><summary data-i18n="api_manual_model">Add a model manually</summary><div class="section-actions"><input type="text" id="connection-model-id" spellcheck="false" autocomplete="off" aria-label="Model ID" placeholder="Model ID"><button type="button" id="connection-model-add" data-i18n="api_add_model">Add model</button></div></details>
228
- <p class="hint" data-i18n="api_model_protocol_hint">Choose the APIs each model supports.</p><div class="table-wrap"><table><thead><tr><th data-i18n="model">Model</th><th data-i18n="api_protocols">Available APIs</th><th data-i18n="cap_context">Context</th><th data-i18n="cap_reasoning">Reasoning</th><th data-i18n="cap_search">Search</th><th></th></tr></thead><tbody id="connection-models"></tbody></table></div>
228
+ <p class="hint" data-i18n="api_model_protocol_hint">Choose the APIs each model supports.</p><div class="table-wrap"><table class="column-table"><thead><tr><th data-i18n="model">Model</th><th data-width="balanced" data-i18n="api_protocols">Available APIs</th><th data-width="compact" data-i18n="cap_context">Context</th><th data-i18n="cap_reasoning">Reasoning</th><th data-width="balanced" data-i18n="cap_search">Search</th><th></th></tr></thead><tbody id="connection-models"></tbody></table></div>
229
229
  </fieldset>
230
230
  <div id="connection-model-detail" hidden></div>
231
231
  <div class="section-actions"><button type="submit" data-i18n="api_save">Save</button></div>
@@ -294,27 +294,27 @@
294
294
  <div class="section-actions"><button id="refresh-models" type="button" data-i18n="refresh">Refresh</button></div>
295
295
  <p id="models-note" class="table-note" data-i18n="reading_provider_catalog">Loading model list…</p>
296
296
  <details id="model-check-details" class="model-check-details" hidden><summary data-i18n="source_check_details">Check details</summary><dl id="model-check-fields" class="failure-detail"></dl></details>
297
- <div class="table-wrap"><table><thead><tr><th scope="col" data-i18n="model">MODEL</th><th scope="col" data-i18n="catalog_supported_apps">Supported apps</th><th scope="col" data-i18n="tools_details">Details</th></tr></thead><tbody id="live-models-body" role="tabpanel"><tr><td colspan="3" data-i18n="loading">Loading…</td></tr></tbody></table></div>
297
+ <div class="table-wrap"><table class="column-table"><thead><tr><th scope="col" data-i18n="model">MODEL</th><th data-width="balanced" scope="col" data-i18n="catalog_supported_apps">Supported apps</th><th data-width="compact" scope="col" data-i18n="tools_details">Details</th></tr></thead><tbody id="live-models-body" role="tabpanel"><tr><td colspan="3" data-i18n="loading">Loading…</td></tr></tbody></table></div>
298
298
  <p class="hint" data-i18n="catalog_listing_does_not_guarantee_inference_access">Inference access unverified.</p>
299
299
  </details>
300
300
  <details class="panel dashboard-section" id="account-authorization">
301
301
  <summary data-i18n="source_access_details">SOURCE ACCESS DETAILS</summary>
302
302
 
303
- <div class="table-wrap"><table><thead><tr><th data-i18n="source">Source</th><th data-i18n="account">ACCOUNT</th><th data-i18n="authorization">AUTHORIZATION</th><th data-i18n="service">SERVICE</th><th data-i18n="last_verified">LAST VERIFIED</th><th data-i18n="time_left">Time left</th></tr></thead><tbody id="provider-auth"></tbody></table></div>
303
+ <div class="table-wrap"><table class="column-table"><thead><tr><th data-width="balanced" data-i18n="source">Source</th><th data-i18n="account">ACCOUNT</th><th data-width="balanced" data-i18n="authorization">AUTHORIZATION</th><th data-width="balanced" data-i18n="service">SERVICE</th><th data-width="compact" data-i18n="last_verified">LAST VERIFIED</th><th data-width="compact" data-i18n="time_left">Time left</th></tr></thead><tbody id="provider-auth"></tbody></table></div>
304
304
  </details>
305
305
  </div>
306
306
  </div>
307
307
  <div data-view="checks" hidden>
308
308
  <section class="panel dashboard-section">
309
309
  <h2 data-i18n="tools_check_local">Check this computer</h2>
310
- <div class="table-wrap"><table class="dense-table"><thead><tr><th data-i18n="client">App</th><th data-i18n="installed_version">Installed version</th></tr></thead><tbody>
310
+ <div class="table-wrap"><table class="dense-table column-table"><thead><tr><th data-width="balanced" data-i18n="client">App</th><th data-i18n="installed_version">Installed version</th></tr></thead><tbody>
311
311
  <tr><td>Codex App</td><td id="client-version-codex">—</td></tr>
312
312
  <tr><td>Claude App</td><td id="client-version-claude">—</td></tr>
313
313
  <tr><td>Antigravity</td><td id="client-version-antigravity">—</td></tr>
314
314
  </tbody></table></div>
315
315
  <div class="section-actions"><button id="check-local" type="button" data-i18n="run_local_check">Run check</button></div>
316
316
  <p id="checks-note" class="table-note" role="status" aria-live="polite"></p>
317
- <div class="table-wrap" id="checks-results" hidden><table class="checks-table dense-table"><thead><tr><th data-i18n="tools_check_item">Check</th><th data-i18n="state">State</th><th data-i18n="tools_details">Details</th></tr></thead><tbody id="checks-body"></tbody></table></div>
317
+ <div class="table-wrap" id="checks-results" hidden><table class="checks-table dense-table column-table"><thead><tr><th data-i18n="tools_check_item">Check</th><th data-width="balanced" data-i18n="state">State</th><th data-width="compact" data-i18n="tools_details">Details</th></tr></thead><tbody id="checks-body"></tbody></table></div>
318
318
  </section>
319
319
  <section class="panel dashboard-section">
320
320
  <h2 data-i18n="account_access">ACCOUNT AND ACCESS</h2>
@@ -333,7 +333,7 @@
333
333
  <div><dt>4xx</dt><dd id="requests-4xx">—</dd></div><div><dt>5xx</dt><dd id="requests-5xx">—</dd></div>
334
334
  <div><dt data-i18n="active">Active</dt><dd id="requests-active">—</dd></div>
335
335
  </dl>
336
- <table id="http-error-breakdown" class="http-error-table" data-i18n-label="http_error_classes" aria-label="HTTP errors by category">
336
+ <table class="http-error-table column-table" id="http-error-breakdown" data-i18n-label="http_error_classes" aria-label="HTTP errors by category">
337
337
  <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>
338
338
  <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>
339
339
  </table>
@@ -344,7 +344,7 @@
344
344
  </section>
345
345
  </details>
346
346
  <details class="panel dashboard-section"><summary data-i18n="more_checks_reports">MORE CHECKS AND REPORTS</summary>
347
- <div class="section-actions"><button id="check-network" type="button" data-i18n="tools_network_check">View network settings</button></div><p id="network-check-result" class="hint" role="status"></p>
347
+ <div class="section-actions"><button id="check-network" type="button" data-i18n="tools_network_check">Check local network</button></div><p id="network-check-result" class="hint" role="status"></p>
348
348
  <h3 data-i18n="tools_compatibility">Model compatibility</h3><p class="hint" data-i18n="compatibility_scope">Tests Codex Responses, streaming and compaction. Uses quota.</p><div class="section-actions"><button id="check-compatibility" type="button" data-i18n="compatibility_test">Test Codex model compatibility</button></div><p id="compatibility-note" class="hint" role="status"></p>
349
349
  <div class="tool-details"><h3 data-i18n="diagnostic_report">Diagnostic report</h3><p class="hint" data-i18n="tools_report_scope">Reports omit credentials, account details and chat content.</p><div class="section-actions"><button id="export-report" type="button" data-i18n="tools_export_report">Export report</button></div></div>
350
350
  </details>
@@ -364,29 +364,32 @@
364
364
  <p id="analytics-updated" class="refresh-time"></p>
365
365
  <div class="chart-heading"><h3 data-i18n="daily_tokens">USAGE BY DATE</h3><div class="analytics-controls">
366
366
  <label><span data-i18n="chart_view">Chart view</span> <select id="analytics-view"><option value="bars" selected data-i18n="bar_chart">Bar chart</option><option value="line" data-i18n="line_chart">Line chart</option></select></label></div></div>
367
+ <p id="daily-empty" class="hint" hidden data-i18n="usage_period_empty">No retained usage in this period.</p>
367
368
  <div id="daily-bars" class="daily-bars" aria-label="Daily usage in Token" data-i18n-label="daily_token_usage"></div>
368
- <div class="daily-axis"><span id="daily-from"></span><span id="daily-to"></span></div>
369
- <div class="chart-legend"><span class="legend-input" data-i18n="input_36ecb">Input usage</span><span class="legend-output" data-i18n="output_b2439">Output usage</span></div>
369
+ <div id="daily-axis" class="daily-axis"><span id="daily-from"></span><span id="daily-to"></span></div>
370
+ <div id="daily-legend" class="chart-legend"><span class="legend-input" data-i18n="input_36ecb">Input usage</span><span class="legend-output" data-i18n="output_b2439">Output usage</span></div>
370
371
  <div class="chart-heading"><h3 data-i18n="usage_activity_range">ACTIVITY</h3><div class="analytics-controls"><label><span data-i18n="calendar_measure">Calendar measure</span> <select id="analytics-metric"><option value="requests" data-i18n="recorded_usage">Usage records</option><option value="tokens" data-i18n="tokens">Usage (Token)</option></select></label></div></div><p id="activity-scale" class="hint">—</p>
371
372
  <div class="calendar-scroll"><div class="calendar-grid"><div id="calendar-months" class="calendar-months" aria-hidden="true"></div><div id="activity-calendar" class="activity-calendar" aria-label="Daily recorded activity over 365 days" data-i18n-label="daily_recorded_request_activity"></div></div></div>
372
- <p id="analytics-selection" class="hint" role="status" data-i18n="select_a_day_to_inspect_its_model_totals_no_history_is_distinct_">Select a day for its usage. No records does not mean zero requests.</p>
373
+ <p id="analytics-selection" class="hint" role="status" data-i18n="select_a_day_to_inspect_its_model_totals_no_history_is_distinct_">Select a date for usage. Hatched cells have no retained data. Blank cells show zero.</p>
373
374
  </details>
374
375
  <details class="panel dashboard-section" id="model-usage" open>
375
376
  <summary class="panel-heading"><h2 data-i18n="usage_totals">USAGE TOTALS</h2><span id="usage-state" data-i18n="reading_log">COUNTING</span></summary>
376
377
  <div class="section-actions"><button id="clear-usage-day" type="button" hidden data-i18n="usage_clear_date">Clear date</button></div>
378
+ <p id="usage-storage-warning" class="hint" role="status" hidden></p>
379
+ <details id="usage-storage" class="tool-details" hidden><summary data-i18n="usage_storage">Usage retention</summary><p id="usage-storage-note" class="hint"></p></details>
377
380
  <p id="usage-note" class="table-note" data-i18n="aggregating_local_usage_metadata">Counting local usage…</p>
378
- <div class="table-wrap"><table class="usage-table dense-table"><thead><tr><th scope="col" data-i18n="model">MODEL</th><th scope="col" data-i18n="usage_records">RECORDS</th><th scope="col" data-i18n="input">INPUT USAGE</th><th scope="col" data-i18n="cache_read">REUSED INPUT</th><th scope="col" data-i18n="cache_write">CACHE WRITE</th><th scope="col" data-i18n="output">OUTPUT USAGE</th><th scope="col" data-i18n="total">TOTAL</th><th scope="col" data-i18n="cache_hit">REUSE RATE</th></tr></thead><tbody id="usage-body"><tr><td colspan="8" data-i18n="loading">Loading…</td></tr></tbody></table></div>
381
+ <div class="table-wrap"><table class="usage-table dense-table column-table"><thead><tr><th scope="col" data-i18n="model">MODEL</th><th data-width="compact" scope="col" data-i18n="usage_records">RECORDS</th><th data-width="compact" scope="col" data-i18n="input">INPUT USAGE</th><th data-width="compact" scope="col" data-i18n="cache_read">REUSED INPUT</th><th data-width="compact" scope="col" data-i18n="cache_write">CACHE WRITE</th><th data-width="compact" scope="col" data-i18n="output">OUTPUT USAGE</th><th data-width="compact" scope="col" data-i18n="total">TOTAL</th><th data-width="compact" scope="col" data-i18n="cache_hit">REUSE RATE</th></tr></thead><tbody id="usage-body"><tr><td colspan="8" data-i18n="loading">Loading…</td></tr></tbody></table></div>
379
382
  <p class="hint" data-i18n="cache_hit_recorded_cached_input_tokens_incomplete_history_unavai">Unit: Token. Reused input is part of input. Rate uses records with valid input and cache-read counts.
380
383
  ~ Partial coverage. — No valid input basis.</p>
381
384
 
382
385
  </details>
383
386
  </div>
384
387
  <div id="usage-context-pane" role="tabpanel" aria-labelledby="usage-context-tab" hidden>
385
- <section class="panel dashboard-section"><h2 data-i18n="context_activity">Conversations &amp; requests</h2><p id="context-view-state" class="table-note" role="status"></p><div class="table-wrap"><table class="context-sessions dense-table"><thead><tr><th data-i18n="context_item">Conversation / request</th><th data-i18n="client">App</th><th data-i18n="model">Model</th><th data-i18n="context_share">Input share</th></tr></thead><tbody id="context-sessions"></tbody></table></div></section>
388
+ <section class="panel dashboard-section"><h2 data-i18n="context_activity">Conversations &amp; requests</h2><p id="context-view-state" class="table-note" role="status"></p><div class="table-wrap"><table class="context-sessions dense-table column-table"><thead><tr><th data-i18n="context_item">Conversation / request</th><th data-width="balanced" data-i18n="client">App</th><th data-i18n="model">Model</th><th data-width="compact" data-i18n="context_share">Input share</th></tr></thead><tbody id="context-sessions"></tbody></table></div></section>
386
389
  <section id="context-selection" class="panel dashboard-section" aria-labelledby="context-selection-title" hidden><div class="panel-heading"><h2 id="context-selection-title"></h2><span id="context-selection-source"></span></div>
387
390
  <dl class="context-metrics"><div><dt data-i18n="context_latest_input">Latest input</dt><dd id="context-latest-input">—</dd></div><div><dt data-i18n="model_window">Model window</dt><dd id="context-window">—</dd></div><div><dt data-i18n="context_share">Input share</dt><dd id="context-share">—</dd></div><div><dt data-i18n="context_reuse">Cache reuse</dt><dd id="context-reuse">—</dd></div></dl>
388
391
  <div class="panel-heading"><h3 data-i18n="context_history">Input history</h3><span id="context-history-note"></span></div><div id="context-history-chart" class="context-history-chart"></div>
389
- <details class="tool-details" open><summary data-i18n="context_compactions">Compactions</summary><div class="table-wrap"><table><thead><tr><th data-i18n="time">Time</th><th data-i18n="outcome">Result</th><th data-i18n="context_elapsed">Elapsed</th></tr></thead><tbody id="context-compactions"></tbody></table></div></details>
392
+ <details class="tool-details" open><summary data-i18n="context_compactions">Compactions</summary><div class="table-wrap"><table class="column-table"><thead><tr><th data-width="compact" data-i18n="time">Time</th><th data-width="balanced" data-i18n="outcome">Result</th><th data-width="compact" data-i18n="context_elapsed">Elapsed</th></tr></thead><tbody id="context-compactions"></tbody></table></div></details>
390
393
  </section>
391
394
  </div>
392
395
  </div>
@@ -408,34 +411,34 @@
408
411
  <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>
409
412
  <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></div>
410
413
  </div>
411
- <details id="tool-details" class="tool-details tool-technical" hidden><summary data-i18n="tool_details">Call details</summary><div class="table-wrap"><table class="dense-table"><thead><tr><th data-i18n="client">App</th><th data-i18n="source">Source</th><th data-i18n="model">Model</th><th data-i18n="tool_name">Tool</th><th data-i18n="outcome">Result</th></tr></thead><tbody id="tool-technical"></tbody></table></div></details>
414
+ <details id="tool-details" class="tool-details tool-technical" hidden><summary data-i18n="tool_details">Call details</summary><div class="table-wrap"><table class="dense-table column-table"><thead><tr><th data-width="balanced" data-i18n="client">App</th><th data-width="balanced" data-i18n="source">Source</th><th data-i18n="model">Model</th><th data-i18n="tool_name">Tool</th><th data-width="balanced" data-i18n="outcome">Result</th></tr></thead><tbody id="tool-technical"></tbody></table></div></details>
412
415
  </section>
413
- <details id="flow-active" class="panel dashboard-section"><summary id="flow-active-title" data-i18n="flow_active_requests">Active requests</summary><div class="table-wrap"><table><thead><tr><th data-i18n="client">App</th><th data-i18n="source">Source</th><th data-i18n="model">Model</th><th data-i18n="state">State</th><th data-i18n="flow_elapsed">Elapsed</th><th data-i18n="attempts">Attempts</th></tr></thead><tbody id="flow-active-body"></tbody></table></div></details>
416
+ <details id="flow-active" class="panel dashboard-section"><summary id="flow-active-title" data-i18n="flow_active_requests">Active requests</summary><div class="table-wrap"><table class="column-table"><thead><tr><th data-width="balanced" data-i18n="client">App</th><th data-width="balanced" data-i18n="source">Source</th><th data-i18n="model">Model</th><th data-width="balanced" data-i18n="state">State</th><th data-width="compact" data-i18n="flow_elapsed">Elapsed</th><th data-width="compact" data-i18n="attempts">Attempts</th></tr></thead><tbody id="flow-active-body"></tbody></table></div></details>
414
417
  <details class="panel dashboard-section" id="source-requests" open>
415
418
  <summary data-i18n="requests_by_source">REQUESTS BY SOURCE</summary>
416
419
  <p class="hint" data-i18n="results_since_startup_partial_usage_is_marked_separately">Results since startup. Partial usage is marked separately.</p>
417
- <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>
418
- <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>
420
+ <div class="table-wrap"><table class="column-table"><thead><tr><th data-width="balanced" data-i18n="source">Source</th><th data-width="balanced" data-i18n="protocol">Protocol</th><th data-width="compact" data-i18n="active">Active</th><th data-width="compact" data-i18n="completed">Completed</th><th data-width="compact" data-i18n="incomplete">Incomplete</th><th data-width="compact" data-i18n="failed">Failed</th><th data-width="compact" data-i18n="cancelled">Cancelled</th><th data-width="compact" data-i18n="unknown">Unknown</th></tr></thead><tbody id="source-requests-body"></tbody></table></div>
421
+ <details class="tool-details"><summary data-i18n="source_summary_details">Source summaries</summary><div class="table-wrap"><table class="column-table"><thead><tr><th data-width="balanced" scope="col" data-i18n="source">Source</th><th data-width="balanced" scope="col" data-i18n="protocol">Protocol</th><th data-width="compact" scope="col" data-i18n="completed">Completed</th><th data-width="compact" scope="col" data-i18n="incomplete">Incomplete</th><th data-width="compact" scope="col" data-i18n="failed">Failed</th></tr></thead><tbody id="provider-requests"></tbody></table></div></details>
419
422
  </details>
420
423
  <details class="panel dashboard-section" id="request-context" open>
421
424
  <summary data-i18n="recent_request_context">RECENT REQUESTS</summary>
422
- <div class="table-wrap"><table class="recent-requests-table dense-table"><thead><tr><th scope="col" class="recent-request-time" data-i18n="time">Time</th><th scope="col" class="recent-request-duration" data-i18n="request_total_time">Total time</th><th scope="col" class="recent-request-app" data-i18n="client">App</th><th scope="col" class="recent-request-model" data-i18n="model">MODEL</th><th scope="col" class="recent-request-result" data-i18n="outcome">RESULT</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>
425
+ <div class="table-wrap"><table class="recent-requests-table dense-table column-table"><thead><tr><th scope="col" class="recent-request-time" data-i18n="time">Time</th><th scope="col" class="recent-request-duration" data-i18n="request_total_time">Total time</th><th scope="col" class="recent-request-app" data-i18n="client">App</th><th scope="col" class="recent-request-model" data-i18n="model">MODEL</th><th scope="col" class="recent-request-result" data-i18n="outcome">RESULT</th><th data-width="compact" 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>
423
426
  <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>
424
427
  </details>
425
428
  <details class="lower" id="recent-failures" open>
426
429
  <summary class="panel-heading"><h2 data-i18n="recent_inference_http_failures">RECENT REQUEST ISSUES</h2><span id="failure-count">requests + events</span></summary>
427
430
  <label for="failure-kind" class="sr-only" data-i18n="issue_category">Issue category</label>
428
431
  <select id="failure-kind"><option value="issues" data-i18n="issue_replies">Reply issues</option><option value="capability" data-i18n="issue_capabilities">Capability notices</option><option value="connection" data-i18n="issue_connections">Connections and paths</option><option value="discovery" data-i18n="issue_discovery">Service probes</option></select>
429
- <div class="table-wrap"><table class="dense-table failure-table"><thead><tr><th data-i18n="time">Time</th><th data-i18n="client">App</th><th data-i18n="model">Model</th><th data-i18n="failure_reason">Reason</th></tr></thead><tbody id="failures"><tr><td colspan="4" data-i18n="reading_874bf">Reading…</td></tr></tbody></table></div>
430
- <details id="failure-history" class="tool-details" hidden><summary id="failure-history-title">Failures over 24 hours</summary><div class="table-wrap"><table class="dense-table"><thead><tr><th data-i18n="client">App</th><th data-i18n="model">Model</th><th data-i18n="phase">Phase</th><th data-i18n="failed">Failed</th><th data-i18n="last_failed_at">Last failure</th><th data-i18n="last_request_id">Last request ID</th></tr></thead><tbody id="failure-history-body"></tbody></table></div></details>
432
+ <div class="table-wrap"><table class="dense-table failure-table column-table"><thead><tr><th data-width="compact" data-i18n="time">Time</th><th data-width="balanced" data-i18n="client">App</th><th data-i18n="model">Model</th><th data-i18n="failure_reason">Reason</th></tr></thead><tbody id="failures"><tr><td colspan="4" data-i18n="reading_874bf">Reading…</td></tr></tbody></table></div>
433
+ <details id="failure-history" class="tool-details" hidden><summary id="failure-history-title">Failures over 24 hours</summary><div class="table-wrap"><table class="dense-table column-table"><thead><tr><th data-width="balanced" data-i18n="client">App</th><th data-i18n="model">Model</th><th data-width="balanced" data-i18n="phase">Phase</th><th data-width="compact" data-i18n="failed">Failed</th><th data-width="compact" data-i18n="last_failed_at">Last failure</th><th data-i18n="last_request_id">Last request ID</th></tr></thead><tbody id="failure-history-body"></tbody></table></div></details>
431
434
  </details>
432
435
  </div>
433
436
  <div data-view="system" hidden>
434
437
  <section class="panel dashboard-section" aria-labelledby="web-appearance-title">
435
438
  <h2 id="web-appearance-title" data-i18n="appearance_web_appearance">Web appearance</h2>
436
439
  <div class="appearance-row">
437
- <div class="appearance-label"><label for="web-color-theme" data-i18n="appearance_color_theme">Color theme</label><p id="web-color-note" role="status" data-i18n="theme_saved_browser">This browser only. Applies now.</p></div>
438
- <select id="web-color-theme" class="appearance-select"><option value="green" data-i18n="appearance_classic_green">Classic green (default)</option><option value="klein" data-i18n="appearance_klein_blue">Klein blue</option><option value="pink" data-i18n="appearance_soft_pink">Soft pink</option><option value="mono" data-i18n="appearance_pure_white">Pure white</option></select>
440
+ <div class="appearance-label"><label for="web-color-theme" data-i18n="appearance_color_theme">Color theme</label><p id="web-color-note" role="status" data-i18n="theme_saved_browser">Saved in this browser.</p></div>
441
+ <select id="web-color-theme" class="appearance-select"><option value="green" data-i18n="appearance_classic_green">Classic green (default)</option><option value="klein" data-i18n="appearance_klein_blue">Klein blue</option><option value="pink" data-i18n="appearance_soft_pink">Soft pink</option><option value="mono" data-i18n="appearance_pure_white">Pure white</option><option value="paper" data-i18n="appearance_grid_paper">Grid paper</option></select>
439
442
  </div>
440
443
  </section>
441
444
 
@@ -524,7 +527,22 @@
524
527
  <div class="section-actions"><button id="privacy-cancel" type="button" hidden data-i18n="cancel">Cancel</button><button id="privacy-retry" type="button" hidden data-i18n="view_retry">Retry</button><button id="privacy-remove" type="button" hidden data-i18n="privacy_remove">Delete model</button><p id="privacy-error" class="hint" role="alert"></p></div>
525
528
  </section>
526
529
  <dialog id="privacy-dialog" class="preferences-dialog" aria-labelledby="privacy-dialog-title"><h2 id="privacy-dialog-title" data-i18n="privacy_enable">Local masking</h2><p data-i18n="privacy_download">Downloads about 39 MB plus the local component. Checks may add delay or mistake ordinary text.</p><p data-i18n="privacy_fail_closed">If a check cannot finish, the request is not sent.</p><div class="section-actions"><button id="privacy-dialog-cancel" type="button" data-i18n="cancel">Cancel</button><button id="privacy-dialog-confirm" type="button" data-i18n="privacy_confirm">Download &amp; enable</button></div></dialog>
530
+ <section class="panel dashboard-section" aria-labelledby="bark-heading">
531
+ <h2 id="bark-heading"><img src="@@BARK_CODEX_PNG@@" width="24" height="24" alt=""><span data-i18n="bark_heading">Bark notifications</span></h2>
532
+ <form id="bark-settings">
533
+ <fieldset disabled>
534
+ <div class="setting-row"><label for="bark-enabled" data-i18n="bark_enable">Notify when a Codex task finishes</label><input id="bark-enabled" name="enabled" type="checkbox"></div>
535
+ <div class="appearance-row"><label for="bark-url" data-i18n="bark_url">Bark URL with key</label><input id="bark-url" name="url" type="password" maxlength="2048" autocomplete="off" spellcheck="false"></div>
536
+ <div class="appearance-row"><label for="bark-minutes" data-i18n="bark_minutes">Minimum duration (minutes)</label><input id="bark-minutes" name="minutes" type="number" min="0" max="10080" step="1" value="30" required></div>
537
+ <div class="appearance-row"><label for="bark-title" data-i18n="bark_title">Notification title</label><input id="bark-title" name="title" maxlength="160" data-i18n-placeholder="bark_title_default" placeholder="Codex task completed"></div>
538
+ <div class="appearance-row"><label for="bark-body" data-i18n="bark_body">Notification description</label><input id="bark-body" name="body" maxlength="500" data-i18n-placeholder="bark_body_default" placeholder="A long Codex task has finished."></div>
539
+ <div class="section-actions"><button type="submit" data-i18n="api_save">Save</button><span id="bark-status" role="status" aria-live="polite"></span></div>
540
+ </fieldset>
541
+ </form>
542
+ </section>
543
+
527
544
  <details class="panel dashboard-section" id="request-limits"><summary data-i18n="advanced_limits">Advanced: request limits</summary><div class="section-actions"><label><span data-i18n="decoded_limit">Decoded request limit (MiB)</span><input id="decoded-limit" type="number" min="128" max="512" step="1"></label><button id="decoded-limit-save" type="button" data-i18n="api_save">Save</button><button id="decoded-limit-default" type="button" data-i18n="limit_default">Use default</button></div><p id="decoded-limit-note" class="hint" role="status"></p><div class="section-actions"><label><span data-i18n="inflight_body_limit">Shared request-body limit (MiB)</span> <input id="inflight-body-limit" type="number" min="32" max="128" step="1" required aria-describedby="inflight-body-limit-note" disabled></label><button id="inflight-body-limit-save" type="button" data-i18n="api_save" disabled>Save</button><button id="inflight-body-limit-default" type="button" data-i18n="limit_default" disabled>Use default</button></div><p id="inflight-body-limit-note" class="hint" role="status"></p></details>
545
+
528
546
  <section class="panel dashboard-section" id="settings-preferences" aria-labelledby="preferences-heading">
529
547
  <h2 id="preferences-heading" data-i18n="preferences_heading">SAVE &amp; RESTORE</h2>
530
548
  <div class="preferences-row"><div><label for="preferences-auto" data-i18n="preferences_auto">Save changes automatically</label></div><input id="preferences-auto" type="checkbox" role="switch" disabled checked></div>
@@ -1,5 +1,19 @@
1
1
  (() => {
2
2
  const translations = {
3
+ bark_heading: ["Bark notifications", "Bark 通知"],
4
+ bark_enable: ["Notify when a Codex task finishes", "Codex 任务完成时通知"],
5
+ bark_url: ["Bark URL with key", "带 key 的 Bark URL"],
6
+ bark_url_saved: ["Saved. Enter a new URL to replace it.", "已保存。输入新地址可替换。"],
7
+ bark_minutes: ["Minimum duration (minutes)", "最短任务时长(分钟)"],
8
+ bark_title: ["Notification title", "消息标题"],
9
+ bark_body: ["Notification description", "消息描述"],
10
+ bark_title_default: ["Codex task completed", "Codex 任务完成"],
11
+ bark_body_default: ["A long Codex task has finished.", "一个 Codex 长任务已完成。"],
12
+ bark_waiting: ["Waiting for the local Codex session directory.", "正在等待本机 Codex 会话目录。"],
13
+ bark_sent: ["Last notification accepted by Bark.", "Bark 已接收最近一条通知。"],
14
+ bark_failed: ["Bark delivery failed.", "Bark 推送失败。"],
15
+ bark_invalid: ["Check the Bark URL and minimum duration.", "请检查 Bark URL 和最短任务时长。"],
16
+ bark_save_failed: ["Could not save Bark settings.", "无法保存 Bark 设置。"],
3
17
  "tool_heading": ["Tool and agent activity","工具与代理活动"],
4
18
  "tool_style": ["Style","样式"],
5
19
  "tool_name": ["Tool", "工具"],
@@ -328,6 +342,8 @@
328
342
  "output_sent": ["Forwarded output budget", "转发输出预算"],
329
343
  "output_used": ["Returned output tokens", "返回输出用量"],
330
344
  "stop_reason": ["Stop reason", "停止原因"],
345
+ "stop_output_limit": ["Output limit reached", "达到输出上限"],
346
+ "stop_content_filter": ["Content filtered", "内容被过滤"],
331
347
  "transport": ["Network details", "网络详情"],
332
348
  "client_tool_errors_received": ["Client-reported tool errors", "客户端回传的工具错误"],
333
349
  "output_limit_reached": ["Output limit reached.", "本次生成达到输出上限。"],
@@ -699,7 +715,7 @@
699
715
  "catalog_cause_rate_limited": ["Model-list checks are limited. Try again later.", "模型列表检查过于频繁,请稍后再试。"],
700
716
  "catalog_cause_service_unavailable": ["Microsoft 365 could not serve the model list.", "Microsoft 365 暂时无法提供模型列表。"],
701
717
  "catalog_cause_catalog_rejected": ["Microsoft 365 rejected the model-list request.", "Microsoft 365 拒绝了模型列表请求。"],
702
- "current_source": ["Current source", "当前来源"],
718
+ "current_source": ["Configured source", "已配置来源"],
703
719
  "connection_setup": ["Setup", "接入配置"],
704
720
  "configured_not_successful": ["Configured does not mean a request succeeded.", "已配置,不代表请求已成功。"],
705
721
  "view_model_list": ["View model list", "查看模型列表"],
@@ -793,7 +809,7 @@
793
809
  "tools_repair_complete": ["Configuration repaired and checked. Previous settings were backed up when present.", "配置已修复并检查。原配置存在时已备份。"],
794
810
  "tools_repair_preserved": ["Settings preserved. Review the configuration before retrying.", "配置已保留,请先检查原文件。"],
795
811
  "tools_more_checks": ["More checks", "更多检查"],
796
- "tools_network_check": ["View network settings", "查看网络设置"],
812
+ "tools_network_check": ["Check local network", "检查本机网络"],
797
813
  "tools_network_read_only": ["Network settings read. Proxy and certificate policies are unchanged.", "已读取网络设置,代理和证书策略保持不变。"],
798
814
  "tools_compatibility": ["Model compatibility", "模型兼容性"],
799
815
  "tools_compatibility_scope": ["Sends model requests and uses quota. Run in your terminal.", "会调用模型并消耗额度,请在终端执行。"],
@@ -879,13 +895,14 @@
879
895
  "appearance_klein_blue": ["Klein blue", "克莱因蓝"],
880
896
  "appearance_soft_pink": ["Soft pink", "淡粉色"],
881
897
  "appearance_pure_white": ["Pure white", "纯白"],
898
+ "appearance_grid_paper": ["Grid paper", "方格纸"],
882
899
  "model_activity_active": ["Processing {count} requests", "正在处理 {count} 个请求"],
883
900
  "model_activity_idle": ["No model requests", "暂无模型请求"],
884
901
  "model_activity_unknown": ["Activity unknown", "活动状态未知"],
885
902
  "appearance_terminal_scope": ["Independent of the webpage theme.", "与网页主题分别设置。"],
886
903
  "appearance_terminal_effect": ["Table updates now. Startup logo changes next launch.", "表格即时换色,启动 Logo 下次生效。"],
887
904
  "appearance_sample": ["Sample data", "示例数据"],
888
- "theme_saved_browser": ["This browser only. Applies immediately.", "仅当前浏览器,立即生效。"],
905
+ "theme_saved_browser": ["Saved in this browser.", "保存在此浏览器。"],
889
906
  "theme_tab_only": ["This tab only. Browser storage is unavailable.", "本次有效,浏览器未能保存。"],
890
907
  "terminal_theme_applied": ["Table updated. Startup logo changes next launch.", "表格已换色,启动 Logo 下次生效。"],
891
908
  "terminal_theme_unavailable": ["Saved. Colored output is unavailable in this terminal mode.", "已保存,当前终端模式不显示配色。"],
@@ -1190,6 +1207,10 @@
1190
1207
  "activity": ["Measure", "统计内容"],
1191
1208
  "calls_b73a5": ["Requests", "请求次数"],
1192
1209
  "tokens": ["Usage (Token)", "处理用量"],
1210
+ "usage_storage": ["Usage retention", "用量留存"],
1211
+ "usage_storage_limit": ["Archive target: {days} days, {limit} MiB.", "归档目标为 {days} 天,容量目标为 {limit} MiB。"],
1212
+ "usage_storage_gap": ["Usage records may be missing. Check storage and write errors.", "部分用量记录可能缺失,请检查存储和写入错误。"],
1213
+ "usage_period_empty": ["No retained usage in this period.", "此时间范围无留存用量。"],
1193
1214
  "open_to_read_retained_usage_history": ["Loading usage trends…", "读取用量趋势中…"],
1194
1215
  "daily_tokens": ["USAGE BY DATE", "按日期用量"],
1195
1216
  "input_output_cache_included_in_input": ["INPUT + OUTPUT / REUSED INPUT IS PART OF INPUT", "输入与输出合计。\n复用部分已计入输入。"],
@@ -1198,7 +1219,7 @@
1198
1219
  "output_b2439": ["Output usage", "输出用量"],
1199
1220
  "request_activity_365_days": ["Activity over the last 365 days", "活跃日历"],
1200
1221
  "daily_recorded_request_activity": ["Recorded usage by date", "按日期记录的用量"],
1201
- "select_a_day_to_inspect_its_model_totals_no_history_is_distinct_": ["Select a day for usage. Blank means no records.", "点击日期查看当天用量。空白表示无记录。"],
1222
+ "select_a_day_to_inspect_its_model_totals_no_history_is_distinct_": ["Select a date for usage. Hatched cells have no retained data. Blank cells show zero.", "选择日期查看用量。斜线格无留存数据,空白格为零。"],
1202
1223
  "recent_failures": ["Recent issues", "异常记录"],
1203
1224
  "recent_response_failures": ["RECENT ISSUES", "异常记录"],
1204
1225
  "reading_874bf": ["Reading…", "读取中"],
@@ -1661,6 +1682,7 @@
1661
1682
  "The request was rejected locally before an upstream call.": "local_validation_message",
1662
1683
  "The source's token-count endpoint returned HTTP 404. Message generation is separate.": "count_endpoint_missing_message",
1663
1684
  "Output limit reached.": "output_limit_reached",
1685
+ "Content filtered": "stop_content_filter",
1664
1686
  "Connection to the model source failed.": "source_connection_failed",
1665
1687
  "HTTP request failed; original response was preserved.": "http_request_failed_original_response_was_preserved",
1666
1688
  "Timed out waiting for the model source to respond.": "issue_upstream_response_timeout",
@@ -13,7 +13,7 @@
13
13
  const raw = localStorage.getItem(backupKey);if (raw === null) return { version: 1, entries: [] };
14
14
  const value = JSON.parse(raw);
15
15
  if (value?.version !== 1 || !Array.isArray(value.entries) || value.entries.length > 2 || value.entries.some(entry => typeof entry.id !== "string"
16
- || !["dark", "light"].includes(entry.values?.theme) || !["green", "klein", "pink", "mono"].includes(entry.values?.palette))) throw Error("preferences_browser_backup_invalid");
16
+ || !["dark", "light"].includes(entry.values?.theme) || !["green", "klein", "pink", "mono", "paper"].includes(entry.values?.palette))) throw Error("preferences_browser_backup_invalid");
17
17
  return value;
18
18
  }
19
19
  function render() {
@@ -132,7 +132,7 @@
132
132
  if (!request.failed || request.outcome === "cancelled" || request.rejection_reason || recorded.has(request.request_id)) continue;
133
133
  failures.push({ at: request.at, model: request.model, request_id: request.request_id,
134
134
  event_type: `request.${request.outcome}`, code: request.origin, timeline: request,
135
- message: request.stop_reason === "max_tokens" ? "Output limit reached." : "Request ended without successful completion.", local_message: true, retried: request.upstream_attempts > 1 });
135
+ message: request.stop_reason === "max_tokens" ? "Output limit reached." : request.stop_reason === "content_filter" ? "Content filtered" : "Request ended without successful completion.", local_message: true, retried: request.upstream_attempts > 1 });
136
136
  }
137
137
  failures.sort((a, b) => (Date.parse(a.at) || 0) - (Date.parse(b.at) || 0));
138
138
  failures.splice(0, Math.max(0, failures.length - 10));
@@ -478,7 +478,8 @@
478
478
  ...(Number.isSafeInteger(context.privacy_count) ? [["request_masking", phrase("privacy_result", { count: context.privacy_count, ms: context.privacy_ms || 0 })]] : []),
479
479
  ["wire_mib", finite(context.payload_bytes) ? `${(Number(context.payload_bytes) / 1048576).toFixed(2)} MiB` : "—"],
480
480
  ["images", number(context.images)], ["model_window", number(context.context_window_tokens)], ["input_window", ratio],
481
- ["output_requested", number(context.max_output_tokens_requested)], ["output_sent", number(context.max_output_tokens_sent)], ["output_used", number(context.output_tokens)], ["stop_reason", request.stop_reason || "—"],
481
+ ["output_requested", number(context.max_output_tokens_requested)], ["output_sent", number(context.max_output_tokens_sent)], ["output_used", number(context.output_tokens)],
482
+ ["stop_reason", request.stop_reason === "max_tokens" ? phrase("stop_output_limit") : request.stop_reason === "content_filter" ? phrase("stop_content_filter") : request.stop_reason || "—"],
482
483
  ...(["conversation_model", "background_default", "background_available"].includes(context.routing_reason)
483
484
  ? [["routing_reason", phrase(`routing_${context.routing_reason}`)]] : []),
484
485
  ...(context.requested_model && context.requested_model !== request.model ? [["requested_model", context.requested_model]] : []),
@@ -1,6 +1,8 @@
1
1
  (() => {
2
2
  const key = "ccdx.dashboard.theme", paletteKey = "ccdx.dashboard.palette";
3
- const valid = value => value === "green" || value === "klein" || value === "pink" || value === "mono";
3
+ const colors = { green: ["#a6f5a8", "#176b3a"], klein: ["#789aff", "#002fa7"], pink: ["#f3a8c8", "#a83e68"],
4
+ mono: ["#ffffff", "#000000"], paper: ["#e4ceb0", "#4c493e"] };
5
+ const valid = value => Object.hasOwn(colors, value);
4
6
  let theme = "dark", palette = "green", saved = true;
5
7
  try {
6
8
  if (localStorage.getItem(key) === "light") theme = "light";
@@ -18,7 +20,6 @@
18
20
  const applyTheme = () => {
19
21
  document.documentElement.dataset.theme = theme;
20
22
  document.documentElement.dataset.palette = palette;
21
- const colors = { green: ["#a6f5a8", "#176b3a"], klein: ["#789aff", "#002fa7"], pink: ["#f3a8c8", "#a83e68"], mono: ["#ffffff", "#000000"] };
22
23
  const color = colors[palette][theme === "dark" ? 0 : 1];
23
24
  const svg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><g fill="none" stroke="${color}" stroke-width="3" stroke-linecap="round"><ellipse cx="32" cy="32" rx="26" ry="10"/><ellipse cx="32" cy="32" rx="26" ry="10" transform="rotate(60 32 32)"/><ellipse cx="32" cy="32" rx="26" ry="10" transform="rotate(120 32 32)"/></g><circle cx="32" cy="32" r="4.5" fill="${color}"/></svg>`;
24
25
  document.getElementById("favicon").href = `data:image/svg+xml,${encodeURIComponent(svg)}`;