ui-tweaks is an optional Linux feature for small ChatGPT Community UI
customizations. It is disabled by default and is intended as a shared place for
future visual tweaks that are useful to some Linux users but should not affect
the baseline app.
The Portage-managed Gentoo package supports this feature, audited on amd64
OpenRC; Gentoo ARM64 and systemd runtime environments have not been tested. Its
existing launcher cleanup hook is included in the payload, with
sys-apps/util-linux declared in gentoo.dependencies.RDEPEND for flock.
This runtime dependency is omitted when ui-tweaks is disabled. No additional
bootstrap or Portage build/merge tools are required, and no separate native
helper or updater is added. Other feature support requires its own Gentoo audit.
Enable it in the local, gitignored feature config:
{
"enabled": ["ui-tweaks"]
}| Tweak | Patch module | What it does | Settings |
|---|---|---|---|
appearance.dockIcon |
patches/dock-icon.js |
Exposes the upstream Dock icon selector and synchronizes the selected icon across Linux windows, tray, and supported desktop launchers. | tweaks.appearance.dockIcon.enabled |
appearance.uiFontSize |
patches/ui-font-size.js |
Raises the upstream 16 px UI font-size maximum to a configurable value. | tweaks.appearance.uiFontSize.enabled, tweaks.appearance.uiFontSize.max |
appearance.customFontInput |
patches/custom-font-input.js |
Adds a switch between installed fonts and a manually entered CSS font-family stack. | tweaks.appearance.customFontInput.enabled |
home.suggestedPrompts |
patches/suggested-prompts.js |
Exposes the upstream Suggested Prompts setting and enables generated project-aware cards on Home. | tweaks.home.suggestedPrompts.enabled |
modelPicker.showModelsByDefault |
patches/model-picker-model-list.js |
Opens the advanced picker by default and shows model choices inline instead of hiding them behind the compact Power slider and a nested Model submenu. | tweaks.modelPicker.showModelsByDefault.enabled |
reasoning.keepEffortLabelsEnglish |
patches/reasoning-effort-labels.js |
Keeps reasoning effort values in English in the Simplified Chinese UI while leaving the surrounding interface translated. | tweaks.reasoning.keepEffortLabelsEnglish.enabled |
selection.moreDetails |
patches/selected-text-more-details.js |
Restores the Codex reply selection menu's More details action, which asks ChatGPT Quick Chat to explain the selected text. | tweaks.selection.moreDetails.enabled |
selection.annotationSubmit |
patches/selected-text-annotation-submit.js |
After selecting text, Ctrl+Enter sends the active annotation editor's text without being intercepted by the regular composer. | tweaks.selection.annotationSubmit.enabled |
sidebar.projectName |
patches/sidebar-project-name.js |
Styles project names in the left sidebar project list. It does not style Projects / Chats section headings and does not style chat rows. |
tweaks.sidebar.projectName.enabled, tweaks.sidebar.projectName.style |
The manifest's catalogSubfeatures metadata exposes these nine modules to
community-features-in-gui-settings.
The catalog counts each module separately and uses UI Tweaks as its grouping
parent. Module installed states follow the settings above and are all false
when ui-tweaks itself is disabled.
Tracked defaults live in feature.json, but local preferences should not be
edited there. Put user-specific overrides in the gitignored
linux-features/features.json file under settings.ui-tweaks.
Example local config:
{
"enabled": ["ui-tweaks"],
"settings": {
"ui-tweaks": {
"tweaks": {
"sidebar": {
"projectName": {
"style": "font-weight: 800 !important; color: red;"
}
}
}
}
}
}Each tweak documents its own config keys below.
Exposes the upstream Appearance row on Linux and applies the selection to
existing and newly registered windows, the official Linux tray, and a managed
user-local desktop entry. The ChatGPT choice uses icon-chatgpt.png from the
signed official Linux package. The alternate choice uses the existing ChatGPT
Community package icon; retired macOS DMG icon resources are not imported.
The Appearance row's visibility gate is a small webview module that the
official rspack build duplicates into several async chunks; every chunk that
carries the gate is patched, and a candidate chunk without the exact gate is
left unchanged with a warning.
Staging validates the official package's chatgpt.desktop identity before it
copies the ChatGPT icon. Missing or changed package resources reject the
candidate so an enabled Dock tweak cannot be installed without its runtime
payload. The desktop helper writes only a full-state-hash-owned launcher derived
from an identity-matching packaged entry. AppImage launch commands are rewritten
to the persistent AppImage path instead of the temporary mounted AppRun.
The prelaunch hook removes only an unchanged managed override after the nested
tweak is disabled. Desktop entries carry a full-content digest, while icon files
use content-addressed names whose digest must match their bytes. Any user edit or
pre-existing conflicting icon is preserved, and interrupted sync or cleanup can
resume without a separate ownership sidecar. A per-app lock serializes runtime
updates, and later runs remove only digest-verified orphan icons from the three
feature-owned selection namespaces.
This tweak is independently disabled by default:
{
"enabled": ["ui-tweaks"],
"settings": {
"ui-tweaks": {
"tweaks": {
"appearance": {
"dockIcon": {
"enabled": true
}
}
}
}
}
}Config keys:
enabled:trueapplies the two current official-package Dock descriptors and stages their resources.falseleaves official Linux behavior unchanged.
To remove ui-tweaks after using a custom Dock icon, first keep the feature
enabled, set appearance.dockIcon.enabled to false, rebuild and install, and
launch the app once. That launch lets the marker-safe prelaunch hook remove its
managed desktop override and icons. The feature can then be removed from the
next rebuild. Removing ui-tweaks directly does not run feature-owned local
cleanup, by design.
Raises the official app's hard-coded UI font-size maximum from 16 px. The same
upstream limit feeds both the numeric input and the persisted-setting schema.
That registry is compiled into two rspack async webview chunks (one as a limits
object, one as module-local constants) and into the main-process
early-bootstrap.js entry and worker.js (as module-local constants bound to
the sansFontSize/codeFontSize schemas). Webview chunk names identify
nothing, so every webview script, including webview/assets/async/, is scanned
by content. The patch requires and updates all four copies atomically instead
of bypassing only the visible control. Code font sizing is unchanged.
This tweak is independently disabled by default. Its default extended maximum is 24 px and can be configured from 17 through 64 px:
{
"enabled": ["ui-tweaks"],
"settings": {
"ui-tweaks": {
"tweaks": {
"appearance": {
"uiFontSize": {
"enabled": true,
"max": 24
}
}
}
}
}
}Config keys:
enabled:trueraises the UI font-size maximum;falsepreserves the official 11–16 px range.max: integer from17through64; invalid values warn and fall back to24.
Adds an Enter font stack manually switch inside each upstream Appearance font menu. Turn it on to enter a CSS font-family value or fallback list, then press Enter or select Use custom font value to apply it. Turn it off to return to the installed-font list. Switching input modes does not apply or discard the saved font. The code font list retains upstream monospace filtering.
The same picker serves UI, code, and content fonts in the light and dark themes. For example, a UI or content stack can be:
"IBM Plex Sans", "Noto Sans CJK SC", "Noto Sans", sans-serif
A separate code font stack can be:
"JetBrains Mono", "Noto Sans Mono CJK SC", monospace
Font values use upstream theme settings and persistence. Applying a manual value also clears the selected font-face override through the upstream handler. Clear the input or choose System to restore the default; content fonts use Same as UI font instead. The input-mode switch is local to the mounted picker and starts with the installed-font list when the Appearance page opens. When font enumeration returns no list, manual input remains available and the mode switch is disabled because there is no list to select.
This tweak is independently disabled by default. Enable it in the local, gitignored feature config, then rebuild:
{
"enabled": ["ui-tweaks"],
"settings": {
"ui-tweaks": {
"tweaks": {
"appearance": {
"customFontInput": {
"enabled": true
}
}
}
}
}
}Only the font-picker renderer is patched. No font assets, font enumeration
helper, theme schema, or global CSS override is added. Upstream applies the
complete font stack through its UI, code, and content CSS variables and appends
its existing defaults. The patch selects the one webview chunk carrying the
custom-font-value message and the selectedThemeFontFace prop, scopes itself to
the whole picker component, and rejects missing, duplicated, or changed
contracts instead of changing an unrelated platform gate.
Exposes the upstream Suggested Prompts row in General Settings and enables the existing generated-suggestion path on Home. Suggestions are generated from the selected project and connected apps by the upstream implementation. Selecting a card fills the composer with its proposed next action.
The patch continues to call the upstream rollout and account-eligibility functions for diagnostics, then honors the explicit Linux opt-in. It also keeps the upstream setting as the user's runtime on/off control after the feature is built into the app.
The current official package is an rspack build: the renderer feature-sync
bridge, normal Home, Work Home, the General Settings row, and the Home
generated-source selector each live in a numbered async webview chunk, and the
main-process eligibility check lives in an early-bootstrap-* chunk. Chunk
names identify nothing, so each descriptor locates its chunk by content needles
(the rollout gate id, the feature-sync IPC message, the generated-suggestion
props) and then requires exactly one chunk to satisfy its full semantic
contract, so an unrelated chunk is never selected.
This tweak is independently disabled by default:
{
"enabled": ["ui-tweaks"],
"settings": {
"ui-tweaks": {
"tweaks": {
"home": {
"suggestedPrompts": {
"enabled": true
}
}
}
}
}
}Config keys:
enabled:trueapplies the six current-package Suggested Prompts descriptors.falseleaves the upstream Settings and Home behavior unchanged while other UI tweaks remain independently configurable.
Makes the detailed model list the default Codex composer picker view. The model
rows are rendered inline, so newly available families such as GPT-5.6 Luna,
Terra, and Sol remain visible without first switching away from the compact
Power slider or opening a nested Model submenu. The compact GPT-5.6 Power
slider also derives Sol's positions from the model's supportedReasoningEfforts
after the app filters that list through the reasoning efforts enabled in
settings. Enabled efforts such as Max therefore appear without maintaining a
separate hard-coded effort list. This tweak is disabled by default and must be
enabled explicitly.
The current official package redesigned the composer picker: its webview no
longer contains the composer-model-picker-menu-view-v1/-v2 simple and
advanced view state or the Power slider's includeUltraInSlider effort list
that this tweak rewrites. When enabled it therefore warns and leaves the
upstream picker unchanged until it is ported to the new picker.
Config keys:
enabled:trueapplies the tweak,falsekeeps the feature enabled but leaves the upstream model picker unchanged.
Leaves the current reasoning effort values as None, Minimal, Medium,
High, XHigh, Max, and Ultra in the Simplified Chinese locale. The
surrounding picker title and usage warning remain translated. This avoids
collapsing distinct upstream values such as XHigh and Ultra into the same
Chinese label. The Simplified Chinese catalog is an rspack async chunk with a
numeric name, so the patch follows the webview's lazy
"../locales/zh-CN.json" loader entry to its chunk and catalog module and
patches only that catalog. A missing or duplicated loader, chunk, catalog, or
label warns and leaves every locale unchanged.
Config keys:
enabled:trueapplies the tweak,falsekeeps the feature enabled but uses the upstream translated effort labels.
Styles project names in the left sidebar project list. A small stylesheet installer is appended to the rspack webview chunk that holds the sidebar app-action attribute registry. The registry chunk and the separate shared marquee implementation are located by semantic markers, not by their names.
Tracked default in feature.json:
{
"tweaks": {
"sidebar": {
"projectName": {
"enabled": true,
"style": "font-weight: 700 !important;"
}
}
}
}Config keys:
enabled:trueapplies the tweak,falsekeeps the feature enabled but skips this specific tweak.style: CSS declaration list inserted into the project-name rule, such asfont-weight: 800 !important; color: red;. It is not arbitrary CSS; unsafe syntax that could escape the scoped rule warns and falls back to the default. The default isfont-weight: 700 !important;, so project names are bold without changing the fixed row geometry or forcing a color.
Restores More details beside Add to chat and Ask in side chat when selecting text in a Codex reply. It opens or reuses a ChatGPT Quick Chat for that Codex conversation and automatically asks Tell me more about this, with the selected text, source reply, and available conversation context. The prompt and selection label use the app's current language. Quick Chat uses its selected ChatGPT model and reasoning setting. This action does not submit a Codex side chat or open an external browser.
This tweak is independently disabled by default:
{
"enabled": ["ui-tweaks"],
"settings": {
"ui-tweaks": {
"tweaks": {
"selection": {
"moreDetails": {
"enabled": true
}
}
}
}
}
}The action remains subject to upstream Quick Chat account availability and
submission guards. Account initialization must complete before the action is
available; availability is evaluated each time the selection menu renders, so a
selection made while Quick Chat is still loading omits the action until the
next selection. Signing out or changing accounts during context preparation cancels
submission. Requests from this action share a queue across Codex chats in the
same app context and wait for an existing Quick Chat reply or native submission/
stop operation before replacing its session or sending. The action holds the
native submission lock through response acceptance and releases it on failure;
a failed request leaves subsequent selections
usable. The action waits for the native sender to receive a successful streaming
response before marking a new Quick Chat as a conversation. A failure while
preparing or opening the request is logged to the renderer console. An
explicit new selection can retry; the tweak does not resend failed requests
automatically. The existing annotation and Codex
side-chat actions remain available. Ordinary ChatGPT reply menus are unchanged.
Local logs include bounded visibility, action stages, and elapsed times. Each
selection receives a renderer-local numeric traceNo, so overlapping requests
can be correlated without recording conversation or account IDs. The native
sender is instrumented only while dispatching this action; ordinary ChatGPT
requests keep their original callbacks.
The official renderer is an rspack build. The Quick Chat runtime is appended to
the Quick Chat module, reaches the ChatGPT sender, model, status, and submission
lock modules through that module's own require function, and publishes itself
under Symbol.for("codex-linux.selected-text-more-details") when the module
evaluates. The selection overlay reads that registry; until it exists, the menu
keeps its upstream actions without More details. rspack duplicates the overlay
module into several lazy chunks, and every copy is patched. All inserted code
is wrapped in marker comments, so an already patched asset is verified by
restoring the upstream bytes and re-applying the patch.
| Log stage or timing type | What it measures |
|---|---|
selection-queued, ready, context-ready |
Time in the local selection queue and collecting the source context. |
native-sender-entered, native-stream-create |
Native sender setup before creating the stream, including preparation-cache state. |
prepare-request-start, conversation_prepare |
Conversation prepare request and its measured duration. |
integrity_prepare |
Native request validation/preparation duration. |
request-start, stream_post |
The actual conversation POST starting and the preparation path used. |
response-headers, response-accepted |
HTTP status, whether the response is a stream, and the accepted-response boundary. |
stream-data-first, model-message-first |
First stream data and first native assistant message; a message may precede visible text. |
stream-complete, transport-close, stream-error, recoverable-error |
Stream completion, transport closure, or failure. |
Only fixed stage names, enum values, booleans, durations, status codes, and first event byte/count measurements are recorded. Tokens, headers, message content, selected text, source replies, and identifiers are excluded. First-data and first-model-message logs occur once per selection; native timing samples are bounded. Logging failures cannot interrupt native callbacks.
For a local build, use codex-app/start.sh with the same Electron flags as your
normal desktop launcher, including any required --proxy-server=... argument.
ChatGPT account and model initialization require access to the ChatGPT backend;
local editor formatting remains usable while those requests are pending.
Set tweaks.selection.moreDetails.enabled to false and rebuild to restore the
official Codex selection menu.
After selecting text, Ctrl+Enter sends the active annotation editor's text without being intercepted by the regular composer.
The patch finds the app shortcut owner by content across the rspack webview chunks and validates that the native annotation editor still renders the card module whose capture handler owns the Ctrl+Enter direct-submit path. If either contract drifts, it warns and leaves the official bundle unchanged.
This tweak is independently disabled by default:
{
"enabled": ["ui-tweaks"],
"settings": {
"ui-tweaks": {
"tweaks": {
"selection": {
"annotationSubmit": {
"enabled": true
}
}
}
}
}
}The annotation text can briefly appear in the regular composer area before it
is sent. The native local direct-submit path accepts the message locally with
acceptLocally: true and queueModeOverride: "queue". The turn coordinator
registers a pending submission, and the upstream queue preview displays
pending and sending messages in the composer panels. This explains why the
annotation can appear to move into the input area while submission completes.
The same native path builds an empty composer prompt and sets
preserveComposerDraft: true to preserve the regular composer's draft. Source
inspection supports the queue-preview explanation; the transient DOM during
the reported visual transition was not captured.
This tweak retains the native preview and submission lifecycle. Suppressing the visual transition would require separate handling of queued messages, sending progress, and failure/retry states, so that cosmetic change is outside this tweak's scope.
The ASAR patches are fail-soft. If upstream bundle markers drift, the feature
writes a WARN message and leaves the asset unchanged. The patch report exposes
that warning, and acceptance rejects a candidate when the enabled feature has
drifted. Missing Dock icon package resources or metadata fail the stage hook,
remove only the incomplete Dock icon payload, and reject candidate promotion.
Suggested Prompts validates every current insertion point
before changing an asset and leaves mixed or drifted input byte-identical.
Invalid style values warn and fall back to the default bold style.
The UI font-size tweak requires the four current settings-registry contracts
and leaves every target unchanged when any copy is missing, mixed, drifted, or
ambiguous.
The selected-text More details tweak validates the renderer and ChatGPT runtime
contracts together. If either side is missing, ambiguous, changed, or only
partially patched, it warns and leaves every asset unchanged; acceptance rejects
that enabled candidate.
Add each tweak as a focused module under patches/, register it from patch.js,
document its JSON settings here, and add coverage in test.js.
Run the feature tests with:
node --test linux-features/ui-tweaks/test.js