codex-copilot-dx 1.0.0 → 1.1.1

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
@@ -1,7 +1,7 @@
1
1
  # CCDX command, configuration and compatibility reference
2
2
 
3
3
  Use Codex App with GPT models available to your **GitHub Copilot** account by default.
4
- The optional [Microsoft 365 provider](#microsoft-365-provider) supplies a separate
4
+ The optional [Microsoft 365 provider](#microsoft-365-provider) supplies a protocol-isolated
5
5
  Claude gateway and an explicitly selected Codex backup.
6
6
 
7
7
  ## Microsoft 365 provider
@@ -90,18 +90,29 @@ optional image MCP/skill/API remains separately configured and off by default.
90
90
 
91
91
  ### Claude gateway and client ownership
92
92
 
93
- The gateway is a second listener in the same Node service, on `127.0.0.1:2027`.
94
- If the core service itself is configured on 2027, CCDX reserves that port for the
95
- core and skips only the Claude listener/setup. M365 GPT backup still works. Select
96
- a different core `ADAPTER_PORT` if both client surfaces are needed; no port is moved automatically.
97
- It accepts a private local Bearer key or `x-api-key`, rejects browser Origin
98
- headers and exposes Claude only: `GET /v1/models`, `POST /v1/messages` and
99
- `POST /v1/messages/count_tokens` (upstream support remains authoritative).
100
- Messages tools, thinking, cache breakpoints, image blocks, beta headers and native
101
- SSE are relayed without OpenAI-format conversion. Cancellation and downstream
102
- backpressure are preserved. Upstream and local gateway credentials are distinct;
103
- the local key is never forwarded upstream. The legacy Claude URL on port 2026
104
- remains retired. Claude requests never reach GitHub.
93
+ Since 1.1.0, Claude mounts under the main HTTP listener at
94
+ `http://127.0.0.1:<ADAPTER_PORT>/anthropic` (default main port 2026).
95
+ It exposes `GET /anthropic/v1/models`, `POST /anthropic/v1/messages` and
96
+ `POST /anthropic/v1/messages/count_tokens`. The Claude Base URL excludes the final `/v1`.
97
+ The local socket, loopback Host, native-client Origin rejection and private Bearer
98
+ or `x-api-key` checks remain independent of any main-listener LAN opt-in.
99
+ Messages tools, thinking, signatures, image blocks, beta headers and SSE retain
100
+ their native protocol and backpressure/cancellation handling. Provider-specific
101
+ cache policy is described below; the local gateway key is never forwarded upstream.
102
+
103
+ The protocol handler owns only its responses, never the shared server. Codex,
104
+ WebUI and Claude share the main port; native prediction keeps its CONNECT/PAC
105
+ transport and saved port. Root `/v1/messages` remains retired, including on a
106
+ custom main port. Claude requests never reach GitHub. M365 GPT-only catalogs do
107
+ not configure Claude. Optional Claude setup failure leaves the Codex backup independent.
108
+
109
+ Unchanged CCDX-owned Code/App addresses migrate from 2027 to the shared prefix,
110
+ with the original restoration values preserved. User-edited fields, managed
111
+ settings and explicit environment routes remain preserved. CCDX does not keep
112
+ a permanent 2027 compatibility listener; migrate hand-written old URLs explicitly.
113
+ Already-running clients may need a normal restart to reload their base URL.
114
+ Disabling/removing M365 is rejected while its Codex or Claude inference is active,
115
+ so an accepted disable does not cut off those requests.
105
116
 
106
117
  Loki explicitly rejects one-hour prompt-cache retention. M365's request policy
107
118
  caps standard `cache_control: {type: "ephemeral", ttl: "1h"}` fields to `5m`,
@@ -698,8 +709,8 @@ Credentials found are not labeled online-authorized, cached model lists are not
698
709
  labeled fresh upstream data, and image configuration is not a provider test.
699
710
  Ready reports core readiness independently of optional prediction/image warnings.
700
711
  Model refresh logs show counts; `ccdx models` retains the complete live list.
701
- After Ready, background refresh uses the same two-column status/message layout as
702
- other runtime logs. Status messages remove terminal controls and collapse newlines;
712
+ After Ready, the default foreground display becomes a fixed status region;
713
+ request and background-refresh detail is available with `--verbose` or explicit file logging. Status messages remove terminal controls and collapse newlines;
703
714
  the static banner and multiline interactive prompts retain their own presentation.
704
715
  VS Code compatibility-version details remain available in debug logging. Startup
705
716
  does not wait for optional update/compression work or add online doctor/model probes.
@@ -757,6 +768,65 @@ ccdx limits --decoded default
757
768
 
758
769
  `ccdx limits` distinguishes the saved decoded request-body limit from the running adapter's active limit. The default is 128 MiB; the opt-in saved limit accepts 128–512 MiB. Changes take effect only after restarting the adapter, never restart it automatically, and do not clear conversations or caches. `CCDX_MAX_DECODED_BODY_BYTES` overrides the saved setting; unset it before changing the saved limit. The separate 64 MiB raw/compressed-body limit is not changed. Larger decoded requests can use substantially more process memory during JSON parsing and image preparation; raising this limit may enable a large thread to compact, but does not guarantee successful inference or compaction. Return to `default` after temporary use.
759
770
 
771
+ ### Control console and online settings
772
+
773
+ The sidebar separates Overview, Codex/Claude clients, Model services, Usage and
774
+ diagnostics, and System/settings. Codex owns optional image generation, native
775
+ prediction adaptation and the temporary Responses conversation buffer. That
776
+ buffer supports continuation; it is not a chat archive. Shared HTTP traffic and
777
+ per-protocol model outcomes are distinct. Claude Messages metrics are not labeled
778
+ as all Microsoft 365 traffic. Saved credentials, authorization, catalog discovery,
779
+ client configuration and successful requests are separate evidence.
780
+
781
+ Interactive desktop starts open the default browser once after core readiness.
782
+ `--no-browser` skips this for one invocation; `open_webui:false` in
783
+ `~/.config/codex-copilot-dx/config.json` disables subsequent automatic opening.
784
+ Query commands do not open it. Headless/CI/SSH or noninteractive starts skip it;
785
+ a browser-launch failure does not stop the service. This is an opening attempt,
786
+ not a guarantee that every browser will reuse an existing tab.
787
+
788
+ The default TTY display uses four bounded lines, without an alternate screen or
789
+ raw keyboard input. It shows usage returned since this process began; pending
790
+ usage is excluded, missing usage stays partial, and this is not an invoice.
791
+ Business requests drive activity; status/catalog polling does not. Existing nine
792
+ animation themes retain their timing/palette and cycle pauses. `--verbose`,
793
+ `--show-request-id` or `CCDX_LOG_LEVEL=debug` restore detailed terminal output.
794
+ Non-TTY/CI/dumb/very narrow terminals use plain output; repeated identical notices
795
+ are coalesced. File logging retains its existing explicit opt-in and redaction.
796
+ In-memory usage still updates when `CCDX_DISABLE_USAGE=1` disables persistence.
797
+
798
+ The settings API is local, requires the dashboard header, bounded JSON and
799
+ same-origin POST. It invokes the same Provider, cache and integration operations;
800
+ it does not spawn a CLI or generic shell command. Settings reads do not reveal
801
+ upstream keys. Each operation reads back saved and effective state. Corrupt saved
802
+ service preferences fail closed for optional calls rather than reopening them.
803
+
804
+ | Control | Effective scope |
805
+ | --- | --- |
806
+ | Terminal theme/animation | Live supported status terminal; plain/verbose/environment-disabled modes are reported separately |
807
+ | Open WebUI | Next interactive desktop start |
808
+ | Image calls | New local MCP calls; keeps provider credentials and allows an already-started call to finish |
809
+ | Prediction adaptation | Subsequent configuration traffic on an already-provisioned bridge; keeps trust/route, and App caches can remain |
810
+ | Model source | Explicit validated selection for subsequent Codex requests; existing requests retain their binding |
811
+ | Conversation buffer | Live validated limit; cleanup refuses pinned/active data and can invalidate old unused continuation IDs |
812
+
813
+ Boolean allow preferences `terminal_animation_enabled`, `image_enabled` and
814
+ `prediction_enabled` default to true, preserving already configured features;
815
+ they do not provision or enable the default-off image/prediction integrations.
816
+ The existing explicit CLI enable commands resume the corresponding paused gate.
817
+ `disable-image` and `prediction off` retain their documented full cleanup
818
+ semantics, distinct from a WebUI pause. First-time setup and client trust/routing
819
+ changes still use existing compatibility checks and may require a normal App
820
+ relaunch. Environment-controlled limits cannot be overridden through the page.
821
+
822
+ Visible auto-refresh reads the in-memory status approximately every two seconds,
823
+ and Provider/settings evidence approximately every 16 seconds. Hidden pages stop
824
+ scheduled reads. Catalogs and retained usage are fetched only for their open view
825
+ or an explicit lookup; their normal refresh interval remains 30 minutes. Paused
826
+ auto-refresh still permits manual refresh/settings retry. No history-log scan is
827
+ performed at the status cadence. The atom moves on load/manual refresh only and
828
+ respects reduced motion. Client attribution absent from older records stays unknown.
829
+
760
830
  ### Terminal animation
761
831
 
762
832
  Choose the terminal activity animation interactively:
@@ -781,7 +851,7 @@ All nine rows preview their animations together while you enter a number to sele
781
851
 
782
852
  All nine animations use the same 20-column colon track and cyan/blue palette. They indicate activity, not completion percentage. Braille was removed in 0.7.7. A saved `terminal_animation: "braille"` falls back to Comet without rewriting the settings file; choosing another animation replaces it, and explicitly choosing Comet clears it. Other settings remain intact.
783
853
 
784
- The selected theme is loaded once when a new adapter starts, so changing it does not restart or alter an adapter that is already running. Stop and start CCDX to apply the new theme. `CCDX_TERMINAL_ANIMATION=0` (also `false`, `no`, or `off`) remains the boolean gate that disables terminal animation regardless of the selected theme.
854
+ Running 1.1.0+ services pick up a changed saved theme without restarting. The WebUI applies it directly; the CLI gallery save is picked up by the status renderer within about one second. Older services still need a restart after upgrade. `CCDX_TERMINAL_ANIMATION=0` (also `false`, `no`, or `off`) remains the boolean gate that disables terminal animation regardless of the selected theme.
785
855
 
786
856
  ### Optional image generation
787
857
 
@@ -1022,60 +1092,91 @@ JSON reply to a streaming request is still not silently converted to SSE.
1022
1092
 
1023
1093
  ### Local dashboard
1024
1094
 
1025
- After starting `ccdx`, open [http://127.0.0.1:2026/](http://127.0.0.1:2026/) in a browser. If `ADAPTER_PORT` is customized, use that port instead. The dashboard shares the existing adapter listener; CCDX does not open a browser automatically or start another service. The page and its assets require both a loopback connection and a loopback Host header, even when LAN binding is enabled.
1026
-
1027
- The dashboard reads local runtime/Provider snapshots and local usage metadata.
1028
- Account Authorization lists saved identity, authorization evidence, service state,
1029
- last successful token acquisition and TTL where known. GitHub local credential
1030
- validity is labeled saved, never online entitlement. Client Connections separately
1031
- shows configuration, gateway state, observed requests and Codex native prediction.
1032
- Runtime Resources retains Responses outcomes/timing and local history; Additional
1033
- Capabilities retains optional image status. Codex model/request overview counts
1034
- are scoped to the Codex surface; Claude request counters remain separately labeled.
1035
-
1036
- Model Catalog tabs come from the backend Provider descriptors. Selecting a tab
1037
- only selects a read resource, not the inference route. GitHub's dashboard view
1038
- includes upstream directory entries beyond selectable Codex GPT models; the CLI's
1039
- existing GPT filtering is unchanged. Rows show protocol, eligible clients,
1040
- upstream-advertised reasoning and directory state. An unknown field is displayed
1041
- as unknown, not unsupported. A directory listing is not inference verification.
1042
- The header count is the active Codex in-memory catalog, not a sum of tab results.
1043
- The usage selector combines registered Providers and retained historical sources.
1044
- Mixed-source model rows and combined daily analytics retain source identity;
1045
- source-filtered views show model names within that source. Legacy untagged records
1046
- remain GitHub records. Current and rotated logs remain bounded metadata reads.
1047
-
1048
- Top Refresh updates local status/Provider evidence and expanded data groups.
1049
- Auto refresh is browser-local, defaults on and runs every 30 minutes while visible.
1050
- Opening a data section updates its group unless attempted within 30 seconds;
1051
- hidden pages pause and returning catches up once. In-flight reads are deduplicated;
1052
- tab changes cancel obsolete page requests and reject late responses. Each tab
1053
- retains only its own last-good catalog; account/generation changes discard it.
1054
- Errors preserve the successful timestamp and mark the read as failed. Provider
1055
- lookups never enable a disabled source or open an interactive login. No server
1056
- poller, event bus, extra inference call or runtime dependency is added.
1057
-
1058
- Dark/light themes, English/Chinese, reduced motion and unsaved animation choices
1059
- are retained. Provider tabs support keyboard navigation. Data requests require the
1060
- same loopback address/Host and custom dashboard header; animation writes also
1061
- require a matching Origin. The page cannot switch Providers or manage credentials.
1062
- Limit changes remain CLI-only. The dashboard does not initialize images; unknown
1063
- image status still requires `ccdx image-status`. Review diagnostics before sharing
1064
- screenshots: upstream error prose may contain sensitive details.
1065
-
1066
- The dashboard labels the upstream token cache hit metric **Reuse Rate** and cached input **Reused Input**, separate from **Local History**. Chinese uses short functional names such as “对话暂存”, “重用输入” and “重用比例”. English and Chinese preserve model IDs, commands, units, HTTP status codes and raw diagnostic values. Animation display names translate in place; theme IDs and CLI parameters do not change.
1067
-
1068
- The transparent, single-color atom-orbit favicon follows the dashboard's saved light/dark choice without a separate network request.
1069
-
1070
- The saved GitHub Copilot account appears immediately to the left of the Status updated time. It uses the same local credentials and fingerprint-bound identity metadata as `ccdx auth status`, with username (or numeric ID fallback) and a `SAVED` label; this is not an online entitlement check. Missing, invalid, unidentified, or unreadable credentials are shown explicitly. The account read runs on page load, top Refresh and visible-page automatic updates, independently of adapter status and without upstream authentication calls. Its timestamp is in the account tooltip; failed updates retain the prior account and explicitly label the failure. Its loopback-only, custom-header-protected API exposes no token, fingerprint, credential path, or raw metadata. The general status endpoint retains its existing identity-free contract.
1071
-
1072
- Account names containing underscores are supported, including `dingxiao_microsoft`. A numeric ID is a fallback, not a replacement for an available, safely displayable username; the existing length bounds and credential-shaped text suppression still apply.
1073
-
1074
- The language button immediately right of the appearance button switches between English and Simplified Chinese. English remains the default; the choice is saved only in the current browser, separately from light/dark mode. Switching translates the existing page in place: it does not fetch API data, rebuild charts, change selected filters, discard unsaved animation choices, or reset expanded failure details. Static labels, live status text, chart tooltips and accessibility labels follow the selected language. Model IDs, account names, dates, numeric values and upstream diagnostic prose stay unchanged; copied diagnostic fields retain their original names and values. The local translation asset adds no dependency, external service, polling or inference-path work.
1075
-
1076
- Usage Trends is collapsed by default. Opening it adds daily input/output token bars (7/30/90 days) and a 365-day calendar of recorded usage calls or tokens, grouped in the browser's time zone. Cache-read tokens are already part of input and are not added again. Model and range filters use the current snapshot without additional requests; selecting a day shows its filtered model totals in the Model Usage table, and Show all restores the original table. Analytics shares the existing current/rotated-log scan and exposes only bounded metadata (365 days, up to 100 model filters). Days before retained history are hatched, not presented as zero; the oldest retained day may be partial. Counts describe retained usage records, not messages, session time, or all HTTP requests. Open-section, manual and visible-page automatic refresh update the snapshot. Analytics are requested only while expanded inside the open usage section or while a day filter needs them. Filters and selected dates survive refresh; a closed unfiltered chart reuses its displayed data until reopened. There is no server background collection.
1077
-
1078
- Terminal Animation is collapsed at the bottom of the page, with an Animation shortcut in the header. Preview frames load only when opened; closing it, hiding the page, or requesting reduced motion stops the preview timer. Unsaved choices survive folding and reopening. Recent response failures expand to diagnostic fields (time, model, code, message, response/request IDs, and retry policy) with a Copy details control. The view combines the last 10 retained `response.failed` events with failures from the 20 most recently finished Responses/compact requests, showing at most 10 entries. Matching local request IDs attach the final outcome and timing metadata, so a recovered event can show `completed`; an uncorrelated retry attempt does not prove recovery. Transport failures and incomplete/cancelled requests can appear without a `response.failed` event. These are bounded runtime observations, not complete session histories. Diagnostic prose is redacted by the existing recorder but can still contain sensitive context: review before copying or sharing.
1095
+ Interactive desktop starts open [http://127.0.0.1:2026/](http://127.0.0.1:2026/)
1096
+ once by default, using the configured main port when customized. See
1097
+ [control console and online settings](#control-console-and-online-settings) for
1098
+ startup preferences, output modes and effective-state rules. Assets require both
1099
+ a loopback connection and loopback Host, including when the main listener uses LAN mode.
1100
+
1101
+ The sidebar separates Overview, Codex/Claude clients, Model services, Usage and
1102
+ diagnostics, and System/settings. Codex-specific images, prediction integration
1103
+ and conversation buffering stay under Codex. HTTP traffic counts include model
1104
+ catalogs and route errors; model outcomes and timing are named by protocol.
1105
+ Microsoft 365's Claude Messages summary is not a Provider-wide request total.
1106
+
1107
+ The account table uses bounded local credential metadata and Provider snapshots.
1108
+ A locally saved GitHub credential is not online entitlement. Account names with
1109
+ underscores retain their exact display value; identity, keys and environment
1110
+ values are not inferred from model names. Client configuration, gateway state,
1111
+ recent requests and actual inference are separate observations. The top summary
1112
+ shows selected client-to-Provider routes; it is not an account label.
1113
+
1114
+ Catalog tabs browse registered Provider directories without changing routing.
1115
+ Rows retain protocol, eligible clients, reasoning metadata and directory state.
1116
+ Unknown metadata stays unknown; listings are not verified inference access.
1117
+ A separate explicit source form validates and applies subsequent Codex routing.
1118
+ Existing active streams keep their Provider binding. User/organization client
1119
+ configuration is not overwritten by browsing or by a pause operation.
1120
+
1121
+ Top Refresh updates local evidence and open data groups, plus current-page settings.
1122
+ Auto-refresh defaults on and is browser-local. Small status snapshots update about
1123
+ every two seconds; source/settings evidence updates every eight status ticks.
1124
+ Catalogs and retained usage load only on demand or in their open view, with the
1125
+ existing 30-minute cadence and short freshness gate. Hidden pages stop scheduled
1126
+ reads. Catalog requests are deduplicated, stale tab reads are cancelled and late
1127
+ results rejected. Failed reads preserve last-good data and label it as stale.
1128
+ Service-setting errors are visible on the current page and can be retried manually.
1129
+
1130
+ The usage selector retains current and historical sources. Combined model rows
1131
+ and daily analytics preserve source identity; old records without a client label
1132
+ are not guessed into one. Legacy untagged Provider records retain their historical
1133
+ GitHub attribution. Cache-read tokens are included in input, not added twice.
1134
+ The separate current-run summary updates from returned usage in memory, without
1135
+ rescanning retained logs at the status cadence.
1136
+
1137
+ Usage analytics remains collapsed until opened: 7/30/90-day bars and a bounded
1138
+ 365-day calendar in the browser time zone. Model/range/day selection reuses its
1139
+ snapshot. Days outside retained history are distinct from zero recorded activity.
1140
+ Filters, chart nodes and unsaved animation selection survive unrelated refreshes.
1141
+ Dark/light, English/Chinese and reduced motion remain supported. Language changes
1142
+ translate page labels in place without fetching models or rebuilding charts;
1143
+ commands, identifiers and upstream error text retain their original values.
1144
+
1145
+ The atom logo stays in the sidebar brand (compact top navigation on narrow screens).
1146
+ It rotates once on load and manual Refresh, never on scheduled reads, and respects
1147
+ reduced motion. Terminal animation settings are independent of the WebUI logo.
1148
+
1149
+ Startup lists the number of discovered cached/live Provider catalogs, their model
1150
+ counts and source, and separate Claude Code/App configuration states. Checking,
1151
+ unavailable, preserved custom settings and uninspected configurations remain
1152
+ distinct. Background discovery does not delay core readiness; its latest state
1153
+ appears in the running terminal region. These observations do not prove inference
1154
+ access. Normal prediction startup uses one line; exceptions retain reasons and
1155
+ required restart guidance. `ccdx prediction status` retains environment/recovery
1156
+ details, including routing, CA and TLS verification state.
1157
+
1158
+ After Ready, a supported TTY has a 15-line region: uptime, Provider/Claude state,
1159
+ a line-framed usage/inference table, one notice row and one activity row below it.
1160
+ Input includes cache read; partial records count returned usage with missing fields.
1161
+ Inference HTTP calls exclude catalog/count-tokens requests; model outcomes are
1162
+ separate protocol observations, not an HTTP-success total. Activity motion includes
1163
+ image MCP traffic; inference counters exclude it. Usage is process-local returned
1164
+ data, not a bill or pending estimate. Counts/tokens use compact display.
1165
+ Data refreshes about once a second; animation ticks reuse the table and redraw only
1166
+ changed rows. Historical notices do not turn a running service into a health verdict.
1167
+ Client cancellations remain in verbose/file diagnostics as informational records;
1168
+ timeouts and actual failures remain notices. Non-TTY, CI, dumb and terminals under
1169
+ 40 columns or 16 rows retain plain output. No runtime terminal dependency is added.
1170
+
1171
+ Terminal appearance lives in System/settings, with a sidebar shortcut on wide
1172
+ screens. Preview frames load on opening; closing, hiding the view/page or reduced
1173
+ motion stops preview timers. Saving changes the running supported status terminal.
1174
+
1175
+ The recent-failure view merges bounded Responses events, main-listener HTTP
1176
+ failures and recent Responses/compact/Messages request timelines, with at most ten
1177
+ visible entries. Request IDs correlate final outcomes; a retry alone is not proof
1178
+ of recovery. It is diagnostic metadata, not a session archive. Original error
1179
+ responses remain unchanged. Review upstream diagnostic prose before sharing.
1079
1180
 
1080
1181
  Inspect only the local Codex configuration:
1081
1182
 
@@ -1261,11 +1362,11 @@ unset the variable after the investigation. Records disappear on service exit.
1261
1362
  | `CCDX_UPSTREAM_RETRIES` | `2` | Retries for safe requests and clearly pre-connect POST failures; capped at `5` |
1262
1363
  | `CCDX_UPSTREAM_RETRY_DELAY_MS` | `300` | Initial upstream retry backoff in milliseconds; capped at `5000` |
1263
1364
  | `CCDX_AUTO_REVIEW_MODEL` | saved selection or `gpt-6.1-sol` | Copilot Responses model used for Codex Auto-review; overrides the interactive selection |
1264
- | `CCDX_LOG_PATH` | unset | Mirror terminal logs to a file; set to `1` for `~/.local/share/codex-copilot-dx/debug.log` |
1365
+ | `CCDX_LOG_PATH` | unset | Record diagnostic logs independently of quiet terminal presentation; set to `1` for `~/.local/share/codex-copilot-dx/debug.log` |
1265
1366
  | `CCDX_LOG_LEVEL` | `info` | Set to `debug` for upstream attempts, status codes, retry causes, and timings |
1266
1367
  | `CCDX_HTTP_ERROR_DETAILS` | unset | Set to `1` on a new service to retain redacted HTTP error excerpts (500 characters) in bounded memory; review before sharing, no file logging is enabled |
1267
1368
  | `CCDX_LOG_MAX_BYTES` | `16777216` | Rotate the debug log at this size and retain one `.1` backup; set to `0` to disable rotation |
1268
- | `CCDX_TERMINAL_ANIMATION` | auto | Show the selected transient animation while an interactive terminal has active requests and no output for 800 ms; set to `0`, `false`, `no`, or `off` to disable |
1369
+ | `CCDX_TERMINAL_ANIMATION` | auto | Allow the selected animation in the fixed interactive status region during business activity; set to `0`, `false`, `no`, or `off` to disable |
1269
1370
  | `CCDX_IMG_MAX_DIM` | `2048` | Maximum long edge in pixels for image downscaling |
1270
1371
  | `CCDX_IMG_QUALITY` | `82` | Initial WebP quality for image re-encoding |
1271
1372
  | `CCDX_IMG_MIN_BYTES` | `100000` | In-bounds images smaller than this skip re-encoding; oversized dimensions still trigger an optimization attempt |
@@ -1309,7 +1410,7 @@ Diagnostic redaction removes Basic authorization payloads and URL userinfo, and
1309
1410
 
1310
1411
  ## Debug logging
1311
1412
 
1312
- Set `CCDX_LOG_PATH=1` to mirror terminal logs to `~/.local/share/codex-copilot-dx/debug.log`, or provide a custom path. Add `CCDX_LOG_LEVEL=debug` for upstream attempts, retry causes, status codes, and timings. The adapter does not deliberately dump request/response bodies or authorization headers. File diagnostics redact common credential forms and labelled content echoes, but this cannot identify every secret in arbitrary external prose; review logs before sharing them. File writes are asynchronous and batched with a 4096-record / 2 MiB pending-and-in-flight ceiling. Overflow drops excess file records with one warning and a status counter; terminal output continues. CLI exit paths flush for at most 1.5 seconds. `ccdx doctor config` bypasses file logging entirely.
1413
+ Set `CCDX_LOG_PATH=1` to record diagnostic logs independently of quiet terminal presentation to `~/.local/share/codex-copilot-dx/debug.log`, or provide a custom path. Add `CCDX_LOG_LEVEL=debug` for upstream attempts, retry causes, status codes, and timings. The adapter does not deliberately dump request/response bodies or authorization headers. File diagnostics redact common credential forms and labelled content echoes, but this cannot identify every secret in arbitrary external prose; review logs before sharing them. File writes are asynchronous and batched with a 4096-record / 2 MiB pending-and-in-flight ceiling. Overflow drops excess file records with one warning and a status counter; terminal output continues. CLI exit paths flush for at most 1.5 seconds. `ccdx doctor config` bypasses file logging entirely.
1313
1414
 
1314
1415
  ## Large histories and images
1315
1416
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codex-copilot-dx",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "description": "Local Codex adapter and optional Microsoft 365 Claude gateway",
5
5
  "author": "Dale Xiao",
6
6
  "type": "module",
package/src/adapter.mjs CHANGED
@@ -28,6 +28,7 @@ import {
28
28
  import { httpError } from "./http-errors.mjs";
29
29
  import { createRequestAdmission } from "./request-admission.mjs";
30
30
  import { PROVIDER_MANAGEMENT_PATH, handleProviderManagement } from "./provider-management.mjs";
31
+ import { isLoopbackAddress, isLoopbackHostHeader } from "./security.mjs";
31
32
 
32
33
  export {
33
34
  abortErrorStatusCode,
@@ -169,9 +170,10 @@ export function createAdapterHandler(options = {}) {
169
170
  const optionalRoutes = createOptionalRoutes({ ...options, dashboardOptions: { ...options.dashboardOptions,
170
171
  ...(options.providerRuntime ? { providerCatalogFn: input => options.providerRuntime.dashboardCatalog(input),
171
172
  providerStateFn: () => options.providerRuntime.dashboardProviders() } : {}) } });
173
+ let statusSnapshot;
172
174
  const managementHandler = createManagementHandler({
173
175
  nativePredictionPac: options.nativePredictionPac, fixPrediction: options.fixPrediction, requestBodyTimeoutMs,
174
- statusSnapshot: () => {
176
+ statusSnapshot: statusSnapshot = () => {
175
177
  const snapshot = runtimeStatusPayload({ metrics: requestMetrics, streamPerformance: streamPerformanceMetrics, admission: acquireRequest,
176
178
  imagePressure, responseFailures, imageGeneration: optionalRoutes.imageStats(),
177
179
  modelRegistry: codexModelRegistry, codexClient, codexModelRegistry, codexModelCatalog,
@@ -239,6 +241,16 @@ export function createAdapterHandler(options = {}) {
239
241
  return providerHandlers.get(provider);
240
242
  }
241
243
  const dispatch = async (req, res, pathname) => {
244
+ if (pathname.startsWith("/anthropic/")) {
245
+ if (!isLoopbackAddress(req.socket?.remoteAddress) || !req.headers?.host || !isLoopbackHostHeader(req.headers.host)
246
+ || Object.hasOwn(req.headers, "origin")) { sendJsonError(res, httpError("Claude requires native local clients", 403));return; }
247
+ if (!options.providerRuntime?.handleClaude) { sendJsonError(res, httpError("Claude is not configured", 503));return; }
248
+ const original = req.url;
249
+ const query = new URL(req.url, "http://localhost").search;
250
+ req.url = pathname.slice("/anthropic".length) + query;
251
+ try { return await options.providerRuntime.handleClaude(req, res); }
252
+ finally { req.url = original; }
253
+ }
242
254
  if (req.method === "POST" && ["/v1/responses", "/v1/responses/compact"].includes(pathname)
243
255
  && Object.hasOwn(req.headers || {}, "origin")) {
244
256
  const error = httpError("Browser origins are not allowed for inference", 403);
@@ -368,7 +380,7 @@ export function createAdapterHandler(options = {}) {
368
380
  const complete = trackRequest ? requestMetrics.begin(routeName) : () => {};
369
381
  const streamPerformance = trackRequest ? streamPerformanceMetrics.begin(routeName, { requestId }) : null;
370
382
  let finishTerminalActivity = () => {};
371
- if (trackRequest) {
383
+ if (trackRequest && ["responses", "responses_compact", "messages", "image_mcp"].includes(routeName)) {
372
384
  try {
373
385
  const finish = options.terminalActivity?.beginRequest?.();
374
386
  if (typeof finish === "function") finishTerminalActivity = finish;
@@ -382,7 +394,7 @@ export function createAdapterHandler(options = {}) {
382
394
  if (trackRequest && statusCode >= 400) {
383
395
  try { httpErrors.record(buildHttpFailureDetails({ ...httpEvidence, statusCode, route: routeName, requestId, model: context?.model,
384
396
  method: ["GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"].includes(req.method) ? req.method : "OTHER",
385
- target: ["/v1/responses", "/v1/responses/compact", "/mcp/image", "/.well-known/oauth-authorization-server", "/.well-known/oauth-protected-resource", "/.well-known/oauth-protected-resource/mcp/image"].includes(pathname) ? pathname : "unrecognized_path",
397
+ target: ["/v1/responses", "/v1/responses/compact", "/anthropic/v1/messages", "/anthropic/v1/messages/count_tokens", "/anthropic/v1/models", "/mcp/image", "/.well-known/oauth-authorization-server", "/.well-known/oauth-protected-resource", "/.well-known/oauth-protected-resource/mcp/image"].includes(pathname) ? pathname : "unrecognized_path",
386
398
  request_options: context?.requestOptions, upstream_attempts: streamPerformance?.attemptCount?.(),
387
399
  attempt_timings: streamPerformance?.attemptTimings?.(),
388
400
  requested_model: context?.requestedModel, provider: context?.provider,
@@ -445,6 +457,7 @@ export function createAdapterHandler(options = {}) {
445
457
  containUnexpectedError(error);
446
458
  }
447
459
  };
460
+ handler.snapshot = statusSnapshot;
448
461
  return handler;
449
462
  }
450
463
 
@@ -457,6 +470,7 @@ export function startAdapter(port = 2026, host = "127.0.0.1", options = {}) {
457
470
  : options.terminalActivity;
458
471
  const handler = createAdapterHandler({ ...options, terminalActivity, imageMcpHostname: host });
459
472
  const server = http.createServer(handler);
473
+ server.ccdxSnapshot = handler.snapshot;
460
474
  const cleanupTerminalActivity = () => {
461
475
  if (ownsTerminalActivity) terminalActivity?.cleanup?.();
462
476
  handler.cleanup?.();
@@ -0,0 +1,22 @@
1
+ import { spawn } from "node:child_process";
2
+ import path from "node:path";
3
+
4
+ export async function openDashboard(baseUrl, { env = process.env, platform = process.platform, spawnImpl = spawn,
5
+ interactive = process.stdout.isTTY === true, enabled = true, timeoutMs = 3000 } = {}) {
6
+ const url = new URL(baseUrl);
7
+ if (url.protocol !== "http:" || !["127.0.0.1", "localhost", "[::1]"].includes(url.hostname)
8
+ || url.username || url.password || url.search || url.hash) throw new Error("Dashboard launch requires a local HTTP URL");
9
+ if (!enabled || !interactive || env.CI && !/^(0|false|no|off)$/i.test(env.CI) || env.SSH_CONNECTION || env.SSH_TTY
10
+ || platform === "linux" && !env.DISPLAY && !env.WAYLAND_DISPLAY) return { opened: false, state: "skipped" };
11
+ const command = platform === "darwin" ? "open" : platform === "win32"
12
+ ? path.win32.join(env.SystemRoot || "C:\\Windows", "System32", "rundll32.exe") : "xdg-open";
13
+ const args = platform === "win32" ? ["url.dll,FileProtocolHandler", url.href] : [url.href];
14
+ return new Promise(resolve => {
15
+ let child, timer;
16
+ const finish = opened => { clearTimeout(timer);resolve({ opened, state: opened ? "opened" : "unavailable" }); };
17
+ try { child = spawnImpl(command, args, { stdio: "ignore", windowsHide: true }); }
18
+ catch { finish(false);return; }
19
+ child.once("error", () => finish(false));child.once("exit", code => finish(code === 0));
20
+ timer = setTimeout(() => { child.unref?.();finish(false); }, timeoutMs);timer.unref?.();
21
+ });
22
+ }
@@ -156,7 +156,10 @@ export function configureClaudeClients({ baseUrl, apiKey, models, desktopInstall
156
156
  const entries = claudeModelEntries(models);
157
157
  const paths = claudeClientPaths(options), ids = entries.map(model => model.name), operations = [], result = {};
158
158
  const endpoint = new URL(baseUrl);
159
- if (endpoint.protocol !== "http:" || endpoint.hostname !== "127.0.0.1" || endpoint.pathname !== "/" || endpoint.search || endpoint.hash || endpoint.username || endpoint.password) throw new Error("Claude gateway must use a local root URL");
159
+ if (endpoint.protocol !== "http:" || endpoint.hostname !== "127.0.0.1" || !["/", "/anthropic"].includes(endpoint.pathname) || endpoint.search || endpoint.hash || endpoint.username || endpoint.password) throw new Error("Claude gateway must use a local root or /anthropic URL");
160
+ const journal = readM365Json(m365Paths(options).ownership, { version: 1, operations: [] });
161
+ const owns = (file, keys, value) => journal.version === 1 && Array.isArray(journal.operations)
162
+ && journal.operations.some(op => op.file === file && isDeepStrictEqual(op.keys, keys) && isDeepStrictEqual(op.after, value));
160
163
  const add = (file, keys, value, itemId) => operations.push({ file, keys, value, ...(itemId ? { itemId } : {}) });
161
164
  const env = options.env || process.env;
162
165
  let code;
@@ -170,7 +173,8 @@ export function configureClaudeClients({ baseUrl, apiKey, models, desktopInstall
170
173
  || code?.apiKeyHelper
171
174
  || ["CLAUDE_CODE_USE_BEDROCK", "CLAUDE_CODE_USE_VERTEX", "CLAUDE_CODE_USE_FOUNDRY", "CLAUDE_CODE_USE_ANTHROPIC_AWS", "CLAUDE_CODE_USE_GATEWAY"].some(key => /^(1|true)$/i.test(env[key] || codeEnv[key] || ""));
172
175
  if (!code) { /* Keep independent App setup available when Code settings are damaged. */ }
173
- else if (envConflict || codeEnv.ANTHROPIC_BASE_URL && codeEnv.ANTHROPIC_BASE_URL !== baseUrl) result.code = "preserved";
176
+ else if (envConflict || codeEnv.ANTHROPIC_BASE_URL && codeEnv.ANTHROPIC_BASE_URL !== baseUrl
177
+ && !owns(paths.code, ["env", "ANTHROPIC_BASE_URL"], codeEnv.ANTHROPIC_BASE_URL)) result.code = "preserved";
174
178
  else {
175
179
  add(paths.code, ["env", "ANTHROPIC_BASE_URL"], baseUrl);
176
180
  add(paths.code, ["env", "ANTHROPIC_AUTH_TOKEN"], apiKey);
@@ -194,6 +198,7 @@ export function configureClaudeClients({ baseUrl, apiKey, models, desktopInstall
194
198
  else if (meta.hybridPointer || meta.appliedId && meta.appliedId !== M365_CLAUDE_PROFILE_ID
195
199
  || profile.inferenceProvider && profile.inferenceProvider !== "gateway"
196
200
  || profile.inferenceGatewayBaseUrl && profile.inferenceGatewayBaseUrl !== baseUrl
201
+ && !owns(paths.profile, ["inferenceGatewayBaseUrl"], profile.inferenceGatewayBaseUrl)
197
202
  || profile.inferenceGatewayApiKey && profile.inferenceGatewayApiKey !== apiKey) result.app = "preserved";
198
203
  else {
199
204
  add(paths.profile, ["inferenceProvider"], "gateway");
@@ -7,7 +7,7 @@ import { createRequestAdmission } from "./request-admission.mjs";
7
7
  import { loadRuntimeConfig } from "./runtime-config.mjs";
8
8
  import { isLoopbackAddress, isLoopbackHostHeader } from "./security.mjs";
9
9
  import { safeUpstreamResponseHeaders } from "./upstream-headers.mjs";
10
- import { runWithRequestContext } from "./request-context.mjs";
10
+ import { runWithRequestContext, currentRequestContext } from "./request-context.mjs";
11
11
  import { createStreamPerformanceMetrics } from "./stream-performance.mjs";
12
12
  import { buildMessagesUsageRecord, recordUsage } from "./usage-store.mjs";
13
13
  import { redactDiagnosticText } from "./diagnostic-text.mjs";
@@ -77,7 +77,9 @@ export function createClaudeGatewayHandler({ provider, apiKey, log = () => {}, o
77
77
  if (!["/v1/messages", "/v1/messages/count_tokens"].includes(pathname)) { send(res, 404, apiError("ccdx_not_found", "Not found"));return; }
78
78
  if (req.method !== "POST") { send(res, 405, apiError("ccdx_method", "Use POST"));return; }
79
79
  if (!/^application\/json(?:\s*;|$)/i.test(req.headers["content-type"] || "")) { send(res, 415, apiError("ccdx_media_type", "Expected application/json"));return; }
80
- const countTokens = pathname.endsWith("/count_tokens"), requestId = randomUUID();
80
+ const parent = currentRequestContext();
81
+ if (parent) parent.provider = provider.id;
82
+ const countTokens = pathname.endsWith("/count_tokens"), requestId = parent?.requestId || randomUUID();
81
83
  const tracker = countTokens ? null : performance.begin("messages", { requestId });
82
84
  tracker?.setProvider(provider.id);
83
85
  const abort = createRequestAbort(req, res);
@@ -159,6 +161,20 @@ export function createClaudeGatewayHandler({ provider, apiKey, log = () => {}, o
159
161
  return handler;
160
162
  }
161
163
 
164
+ // Mounted by the main dispatcher. Own only Claude responses, never the shared listener.
165
+ export function createClaudeGateway(options = {}) {
166
+ const handler = createClaudeGatewayHandler(options), responses = new Set();
167
+ let closed = false;
168
+ return { port: options.port, snapshot: handler.snapshot,
169
+ handle(req, res) {
170
+ if (closed) { send(res, 503, apiError("ccdx_gateway_closed", "Claude is stopping"));return; }
171
+ responses.add(res);
172
+ return Promise.resolve(handler(req, res)).finally(() => responses.delete(res));
173
+ },
174
+ async close() { closed = true;for (const res of responses) res.destroy?.();responses.clear(); },
175
+ };
176
+ }
177
+
162
178
  export async function startClaudeGateway(options = {}) {
163
179
  const handler = createClaudeGatewayHandler(options), server = http.createServer(handler);
164
180
  server.headersTimeout = 15000;server.requestTimeout = 120000;
@@ -137,7 +137,7 @@ export async function runAnimationCommand({
137
137
  output.write(`CCDX_TERMINAL_ANIMATION=${disabledValue} remains effective until it is unset; terminal animation stays disabled.\n`);
138
138
  output.write("The saved animation will be used on the next ccdx start after the override is unset.\n");
139
139
  } else {
140
- output.write("The next ccdx start will use this animation.\n");
140
+ output.write("Running CCDX 1.1.0+ picks up this animation without restart; older services need a restart.\n");
141
141
  }
142
142
  return { ...result, cancelled: false, theme: selectedTheme };
143
143
  }
package/src/cli-image.mjs CHANGED
@@ -9,6 +9,7 @@ import { terminalCell } from "./cli-table.mjs";
9
9
  import { computeImageMcpCodexConfig } from "./config.mjs";
10
10
  import { probeImageTool } from "./image-readiness.mjs";
11
11
  import { updateImageSkill } from "./image-skill.mjs";
12
+ import { servicePreferences, writeServicePreference } from "./user-settings.mjs";
12
13
  import {
13
14
  imageProviderConfigPath,
14
15
  inspectImageProvider,
@@ -193,6 +194,7 @@ export async function runImageCommand({
193
194
  }
194
195
  const summary = configSummary(config);
195
196
  output.write(`Image generation: enabled\nEndpoint: ${terminalCell(summary.endpoint)}\nModel: ${terminalCell(summary.model)}\nProtocol: ${terminalCell(summary.protocol)}\n`);
197
+ if (!servicePreferences({ env, home }).image_enabled) output.write("New image calls: paused by the WebUI preference; provider configuration is retained.\n");
196
198
  const readiness = await probeImageTool(fileContent(codexPath), { fetchImpl: probeFetchImpl });
197
199
  printImageReadiness(readiness, output, commandName);
198
200
  return { enabled: true, ...summary, readiness };
@@ -249,6 +251,7 @@ export async function runImageCommand({
249
251
  adapterPort,
250
252
  adapterHost,
251
253
  });
254
+ if (!servicePreferences({ env, home }).image_enabled) writeServicePreference("image_enabled", true, { env, home });
252
255
  output.write(`Enabled image generation with ${terminalCell(model)}.\n`);
253
256
  const readiness = await probeImageTool(fileContent(codexPath), { fetchImpl: probeFetchImpl });
254
257
  printImageReadiness(readiness, output, commandName);
package/src/cli-m365.mjs CHANGED
@@ -36,7 +36,7 @@ export function formatM365Status(state) {
36
36
  `Microsoft 365: ${terminalCell(m.state || "not running")}${m.reason ? ` (${terminalCell(m.reason)})` : ""}`,
37
37
  ...(m.account?.login ? [`Account: ${terminalCell(m.account.login)}`] : []),
38
38
  `Models: ${models.claude || 0} Claude / ${models.gpt || 0} GPT (${models.source || "unavailable"})`,
39
- `Claude gateway: ${claude.gateway || "not running"}${claude.port ? ` / http://127.0.0.1:${claude.port}` : ""}`,
39
+ `Claude gateway: ${claude.gateway || "not running"}${claude.base_url ? ` / ${claude.base_url}` : ""}`,
40
40
  ...(claude.reason ? [`Claude detail: ${terminalCell(claude.reason)}`] : []),
41
41
  ...(claude.requests ? [`Claude requests: ${claude.requests.completed} completed / ${claude.requests.incomplete} incomplete / ${claude.requests.failed} failed / ${claude.requests.active} active`] : []),
42
42
  `Claude Code: ${claude.clients?.code || "unknown"}; Claude App: ${claude.clients?.app || "unknown"}`,
@@ -5,6 +5,8 @@ const HELP_COMMANDS = new Set(["help", "--help", "-h"]);
5
5
  const VERSION_COMMANDS = new Set(["version", "--version", "-v"]);
6
6
  const START_OPTIONS = new Map([
7
7
  ["--show-request-id", "show-request-id"],
8
+ ["--no-browser", "no-browser"],
9
+ ["--verbose", "verbose"],
8
10
  ]);
9
11
  const RETIRED_CLAUDE_OPTIONS = new Set([
10
12
  "--configure-claude-desktop",
@@ -119,6 +121,8 @@ function parseStartOptions(args) {
119
121
  }
120
122
  return baseCommand("start", {
121
123
  showRequestId: seen.has("show-request-id"),
124
+ ...(seen.has("no-browser") ? { noBrowser: true } : {}),
125
+ ...(seen.has("verbose") ? { verbose: true } : {}),
122
126
  });
123
127
  }
124
128
 
@@ -376,7 +380,7 @@ export function cliCommandName() {
376
380
 
377
381
  function topicHelp(name, topic) {
378
382
  const sections = {
379
- start: `Usage:\n ${name} [start] [--show-request-id]\n\nStarts or reuses the local adapter, updates Codex configuration, and attempts to open Codex App when auto-launch is enabled and supported.`,
383
+ start: `Usage:\n ${name} [start] [--show-request-id] [--no-browser] [--verbose]\n\nStarts or reuses the local adapter, updates Codex configuration, and attempts to open Codex App when auto-launch is enabled and supported. Interactive desktop starts also open WebUI once; --no-browser skips that attempt. After startup the terminal shows fixed status/returned usage; --verbose or --show-request-id retains request detail.`,
380
384
  auth: `Usage:\n ${name} auth status [--online] [--format table|plain]\n\nShows the saved GitHub Copilot account without exposing credentials. --online also verifies its entitlement and model catalog.`,
381
385
  "auth status": `Usage:\n ${name} auth status [--online] [--format table|plain]\n\nShows the saved GitHub Copilot account without exposing credentials. --online also verifies its entitlement and model catalog. Interactive terminals use a table by default.`,
382
386
  doctor: `Usage:\n ${name} doctor [--online] [--compat] [--fix] [--json]\n ${name} doctor config\n\nChecks credentials, managed configuration, command launchers, adapter, enabled optional features and observed client catalog. Default is read-only; no inference requests. --online validates account entitlement; --compat sends minimal inference requests and consumes a small amount of Copilot usage, requiring successful model completion rather than HTTP 200 alone. --fix repairs owned Windows launchers and managed config, imports a verified existing credential only if none is saved, and asks the running adapter to repair enabled predictions once. No interactive login, client program edits, forced App restarts, policy changes or optional feature activation. Missing-credential repair can contact GitHub without --online. Changed existing config is backed up to config.toml.ccdx-doctor.bak. Partial repairs exit 1. --json emits a redacted report, including before_checks for repairs. App-internal cache and visible predictions are not externally verified. The config subcommand remains strictly read-only.`,
@@ -386,7 +390,7 @@ function topicHelp(name, topic) {
386
390
  usage: `Usage:\n ${name} usage [--format table|plain] [--provider ID]\n\nSummarizes local token usage metadata without reading prompt or completion content. Optional provider filtering separates sources; default totals include all recorded sources. Interactive terminals use a table by default.`,
387
391
  cache: `Usage:\n ${name} cache\n ${name} cache --limit <MiB|default>\n ${name} cache --clean [--history] [--yes]\n\nShows runtime cache use, saves and applies the shared response-history limit, or clears the rebuildable image-transform cache. --history also clears in-memory response history for all tasks and can make their next continuation fail, so interactive confirmation or --yes is required. Generated image files and saved Codex transcripts are never deleted. Short aliases: -128 sets 128 MiB and -clean equals --clean.`,
388
392
  limits: `Usage:\n ${name} limits\n ${name} limits --decoded <MiB|default>\n\nShows configured and running request-body limits, or saves a decoded request-body limit from 128 to 512 MiB. The raw-body limit is unchanged. Restart ccdx to apply a saved change; no conversation or cache is cleared. Short alias: -256 sets 256 MiB.`,
389
- animation: `Usage:\n ${name} animation\n\nPreviews all terminal activity animations together and selects the theme used the next time the adapter starts.`,
393
+ animation: `Usage:\n ${name} animation\n\nPreviews all terminal activity animations together and selects the saved theme. Running CCDX 1.1.0+ applies it live; older services need a restart.`,
390
394
  "enable-image": `Usage:\n ${name} enable-image\n\nInteractively configures an HTTPS image API endpoint (base URLs are also accepted) and API key, detects its supported image model and protocol, installs CCDX image guidance, and checks the local image tool for Codex App without generating an image. A blank key preserves the saved key only for the same origin; a new origin requires explicit key entry. Concurrent unrelated config edits are preserved.`,
391
395
  "disable-image": `Usage:\n ${name} disable-image\n\nDisables the local CCDX image tool and removes its stored API credential and unmodified CCDX image guidance.`,
392
396
  "image-status": `Usage:\n ${name} image-status\n\nShows provider configuration and locally advertised generation/editing tools without generating an image or exposing its API key.`,
@@ -405,7 +409,7 @@ export function cliHelp(commandName = "ccdx", topic = "") {
405
409
  const normalizedTopic = checkedHelpTopic(topic ? topic.split(" ") : []);
406
410
  if (normalizedTopic) return topicHelp(name, normalizedTopic);
407
411
  return `Usage:
408
- ${name} [start] [--show-request-id]
412
+ ${name} [start] [--show-request-id] [--no-browser] [--verbose]
409
413
  ${name} auth status [--online] [--format table|plain]
410
414
  ${name} doctor [--online] [--compat] [--fix] [--json]
411
415
  ${name} doctor config