Repository navigation
Description
TITLE
[Linux Desktop 26.1007.71326] Optional MCP unavailable at startup never appears in the same chat after the server recovers; no accessible reconnect action
SUMMARY
An optional OAuth-authenticated Streamable HTTP MCP server is unavailable when
Desktop starts. After the server comes online, the existing Desktop chat still
has no tools from that server. Independent tools continue working. A separate
native client using the bundled CLI discovers all 15 tools and successfully calls
the manifest using the saved OAuth login, without fresh authorization.
The remaining issue is same-chat model tool-catalog recovery in Desktop. We have
not established its internal root cause. No supported general reconnect action
was found in this Desktop UI, and no public control socket for its running
app-server was found. Explicit config/mcpServer/reload restores a loaded thread's
model-facing catalog in isolated CLI fixtures on both tested CLI versions; that
does not prove the method is accessible in this Desktop instance.
ENVIRONMENT / TEMPLATE FIELDS
Subscription: ChatGPT Pro (confirmed by reporter).
Reporter tracking: KBTS-123 (private project issue; not an upstream ticket).
Desktop: 26.1007.71326, Linux installation under /usr/lib/chatgpt.
Bundled CLI: codex-cli 0.162.0-alpha.17.2.
Separate CLI: codex-cli 0.157.0.
OS: Fedora Linux 44 (Workstation Edition), x86_64, glibc 2.43.
uname -mprs: Linux 7.2.10-200.fc44.x86_64 x86_64 unknown
Fixture interpreter: Python 3.14.8 (standard library only).
Date: 2026-10-15. All times below are UTC; reporter timezone UTC+03:00.
Actual Desktop app-server transport: stdio (bundled CLI process; no --listen).
Model name, exact context-window usage, and token-limit usage were not captured;
no claim is made that they caused the behavior. No model turn is used by the
native production control calls. Fixture model requests stay on loopback.
RELEVANT PROJECT CONFIG
mcp_optional_startup_grace_ms = 0
[mcp_servers.incident-context]
url = "https://mcp.karbon-ts.pro/mcp"
auth = "oauth"
scopes = ["incident:read"]
enabled = true
required = false
startup_timeout_sec = 15
default_tools_approval_mode = "writes"
The endpoint requires the reporter's GitLab project membership. Developers do not
need access to this private deployment to run the attached local CLI fixture.
Use an independently controlled test endpoint for Desktop reproduction. Existing
OAuth state is retained; no static bearer header, copied auth store, or token is
included in this report.
DESKTOP REPRODUCTION
- Configure a valid optional Streamable HTTP MCP server, with an already valid
saved OAuth login if the server requires OAuth. Establish that it works from
a control client. Retain the configuration above, including grace=0. - Make the server unavailable. Fully close Desktop, then launch it while the
server is still offline. Open/resume a working chat in the trusted project. - Let startup timeouts finish. Ask for an MCP tool from that server. Confirm
tools are absent from the model's available tool metadata. Confirm an
independent tool still works. - Bring the server online without closing Desktop or creating another chat.
Wait for resource/authorization metadata and an authenticated control-client
tool call, rather than treating VM power-on or an app health badge as ready. - Continue turns in that same Desktop chat and request an MCP manifest/tool.
Observe the tool metadata available to the model again. - Inspect Plugins > MCPs. The server remains enabled. On this installation the
user found no Retry/Reconnect/Restart action. Do not initiate new OAuth merely
to force a reload of an already valid login.
ACTUAL RESULT
The existing Desktop chat still has zero incident-context tools after recovery.
The UI server toggle is enabled (attached screenshot); independent tools work.
The user explicitly confirmed no Retry/Reconnect/Restart action was available.
There was no tool call from this Desktop model to the affected MCP server because
the tools were absent. This is distinct from an MCP call returning an error.
EXPECTED RESULT
After an optional endpoint recovers, the same loaded chat should regain tools
through automatic reconnect or a supported discoverable refresh action, without
creating a new chat, fully restarting Desktop as the normal workflow, losing
OAuth state, or blocking unrelated tools while the endpoint is unavailable.
Actual model-visible tools and a successful bounded tool call are the acceptance
criteria; a settings toggle, tools/list, or status response alone is insufficient.
LATEST LIVE OBSERVATIONS (2026-10-15 UTC)
- Before 13:45:25: user reported fully closing Desktop and relaunching it while
the server VM was off. At 13:45:25 VM off was independently confirmed; this
chat had zero affected tools; an independent clock tool succeeded. - Only the selected VM was started. Start operation confirmed observed on.
- 13:46:46: a separate bundled-native CLI control process saw zero MCP tools
during startup. The public MCP metadata endpoint was returning HTTP 502. - 13:47:52.754121: resource metadata became available after 100.7 seconds of
polling. Resource and authorization metadata each subsequently returned 200. - 13:47:58.896333: start time of the successful control run. The bundled native
CLI discovered 15 tools and called get_incident_manifest successfully with the
saved login; manifest listed six sources. No fresh OAuth/browser grant. - That control run's get_runtime_signals returned LIMIT_EXCEEDED. Manifest showed
88 calls, 481 events, and 10,442,154 result bytes remaining in the shared budget.
The affected diagnostic call was stopped; no replacement client or quota reset.
This run proves discovery/authenticated manifest, not readiness of all sources. - Through the subsequent same-chat/UI check, the Desktop model catalog remained
at zero affected tools. User screenshot showed incident-context enabled. - Server was shut down after checking both runner projects and active runner
jobs. No additional production deployment occurred during this check.
PREVIOUS LIVE CONTROLS ON THE SAME DATE
- 13:18:01 native control: manifest (6 sources), summary (85 events), backend
bounded read (5 events), and a second incident/refined window summary (25 events)
all succeeded; 15 tools discovered. Configured DSH OAuth bridge also passed
manifest with 15 discovered tools. These are separate clients, not Desktop
model-catalog acceptance. - Cycle 1: VM off confirmed 13:20:03. Startup transient HTTP 502 / native catalog
zero tools, then native manifest + runtime read succeeded around 13:22:23;
runtime returned two fresh events. Saved OAuth persisted. - Cycle 2: VM off confirmed 13:24:00. At 13:26:11 native manifest succeeded but
runtime returned SOURCE_UNAVAILABLE; at 13:27:33 manifest also returned
SOURCE_UNAVAILABLE. At 13:29:40 list_incident_access succeeded. At 13:30:28
manifest + runtime read passed with two fresh events. No manual service repair
or new OAuth was required. The precise cause of transient source errors was
not established. - The Desktop chat did not regain incident-context model tools in those cycles.
The latest live check above additionally starts with a full Desktop restart
while the endpoint is OFF. It still reproduces absent tools after power-on.
ISOLATED LOCAL REPRODUCER (NO PRODUCTION, AUTH OR PAID MODEL CALLS)
Attach reproduce_cli_catalog.py and the two fixture receipts. Requirements:
Python standard library and one of the exact installed CLI binaries below.
The script is deliberately version-pinned; it rejects unreviewed CLI versions.
It generates and validates that binary's experimental JSON-RPC schema before
sending requests. It uses temporary CODEX_HOME directories, a fake stdio MCP
server, and a loopback fake Responses provider. Existing OAuth profiles are not
used or copied. It does NOT attach to Desktop or change user configuration.
Run from the extracted attachment directory:
python3 reproduce_cli_catalog.py --binary /usr/lib/chatgpt/resources/codex --output /tmp/bundled-fixture.json
python3 reproduce_cli_catalog.py --binary /path/to/codex-0.157.0 --output /tmp/standalone-fixture.json
Both versions were re-run successfully while preparing this report. "passed"
means the fixture reproduced all asserted behaviors, including the missing-tools
cases, rather than declaring Desktop fixed.
Observed matrix (same in both versions):
- default1000: MCP initialize delayed 1.5 s, timeout 4 s, default optional grace;
initial provider request lacks slow_probe, later server status lists it. - waitFull: same delay with mcp_optional_startup_grace_ms=0; initial provider
request includes slow_probe. - optionalFailure: grace=0, initialize delay 3 s, timeout 1 s; initial catalog
lacks slow_probe. After fixing the fixture configuration and writing enabled
false/true, server status lists slow_probe but later model requests in the
original loaded thread still omit it. - fresh thread/start includes slow_probe without restarting app-server.
- explicit initialize -> initialized -> config/mcpServer/reload (params=null)
restores slow_probe in the next provider request of the ORIGINAL loaded thread.
The fixture captures actual provider-bound tool definitions, not only status.
ClientRequest schema SHA-256:
0.162.0-alpha.17.2: fd400e7c7daed7e3103e08093e7b1576439fe5ebc39a494f8e2696656e5a3cbe
0.157.0: 0f8733c93b3609fa82337ae94f8a4971b93e3327b0b3e99dce2a86cf495d925b
Verified methods: initialize, thread/start, turn/start, mcpServerStatus/list,
config/value/write, config/mcpServer/reload. The schemas differ; equivalent
fixture behavior does not mean the versions or Desktop behavior are identical.
DESKTOP ACCESS BOUNDARY / INVESTIGATION LIMITS
Read-only inspection found the Desktop host using stdio; no public unix/WebSocket
listener or app-server-control directory was found in the inspected session.
The existence of an internal ipc.sock is not a public app-server control API.
No hidden IPC, binary patches, daemon opt-in flags, auth-store copying, or
forced reauthorization were used. Renderer Reload Window was not accepted as
evidence of model-catalog refresh. No supported same-chat workaround is verified.
A separate app-server or new CLI thread does not address the running Desktop host.
The official public API describes config/mcpServer/reload as refreshing loaded
threads. Please expose/document a supported way for the affected Desktop user to
invoke it on that host, or implement recovery after failed optional startup that
also refreshes the existing thread's model-facing tool catalog.
SERVER CHANGE / VALIDATION CONTEXT
Server boot recovery was delivered separately and preserves OAuth storage and
intentional stopped state. Cached startup reconciliation was tested against slow
PostgreSQL, exited auth containers, transient failures, permanent failures, and
runtime-secret loss. This does not establish a Codex-side root cause.
Deployment revision: 61df157c98e9dd7ff11c5da6236aac279f1106ae.
Successful main pipeline: 2950969292.
Jobs: context build 17202192432; auth build 17202192433; deploy 17202192437;
incident-v2 acceptance 17202192439; component releases 17202192441.
At delivery: authorization/resource/six-source readiness passed; 26 applicable
gates passed. Auth tests 316, context 160, incident-v2 110, delivery tests 38;
Hydra/browser conformance, lifecycle, dev/prod Compose and config gates passed.
Separate observability shadow acceptance was invalid, nonblocking, and is not
claimed accepted. Optional isolated ingress Docker test was not enabled; topology
was unchanged and production checks were performed. See validation-context.json.
RELATED REPORTS / TRIAGE REQUEST
#11489 (open when checked): MCP client does
not auto-reconnect after disconnect. Its published repro starts with a working
connection; this report starts with an offline optional endpoint in Desktop.
#15508 (closed as duplicate when checked):
existing sessions lose MCP tools while new sessions work, reported on Windows.
These are related symptoms, not proof of an identical root cause or fix status.
Please triage this as Desktop optional-startup recovery / loaded-thread catalog
refresh. A fix should be accepted with the Desktop sequence above and a real
same-chat tool call, not solely a CLI fixture or new-session success.
SOURCES
Official feedback / issue route:
https://learn.chatgpt.com/docs/reference/troubleshooting#feedback-and-logs
Current Codex App issue form (verified from the repository):
https://github.com/openai/codex/issues/new?template=1-codex-app.yml
Public reload API:
https://learn.chatgpt.com/docs/app-server#api-overview
MCP configuration:
https://learn.chatgpt.com/docs/extend/mcp
ATTACHMENTS
reproduce_cli_catalog.py; bundled-fixture-rerun.json;
standalone-fixture-rerun.json; live-checks.json; validation-context.json;
desktop-mcp-enabled.png; SHA256SUMS.
No raw production telemetry, bearer tokens, OAuth storage, .env files, full
session transcript, or private control/hosting credentials are included.
Prepared from the attached selected evidence; full chat transcript is not included.
Uploaded attachments
Archive SHA-256: e6ffcb879021494b6134656dbf2548493af3281a2176b5309b007a37cefc2a02

Activity
[-][Linux Desktop 26.1007.71326] Optional MCP unavailable at startup never appears in the same chat after server recovery[/-][+][Linux Desktop 26.1007.71326] Optional MCP tools missing in existing chat after server recovery; delayed refresh with no reconnect action[/+]berdmival commentedon Oct 15, 2026
Follow-up observation, 2026-10-15 15:21:17 UTC: all 15 incident-context tools eventually became available to the MODEL of the same affected parent chat, and a direct get_incident_manifest call from that chat succeeded using the saved OAuth login. This was not a separate CLI or subagent call. No Desktop restart, config toggle, hidden IPC, or OAuth flow was performed by this agent immediately before tools appeared; they appeared while waiting for unrelated application CI. The exact refresh trigger is unknown. Earlier checks in the same chat at 14:49:28 UTC still showed zero affected tools.
The server was still on the original diagnostic quota policy (100 calls / 10,000 events / 10 MiB) during this successful direct call; the quota-increase deployment had not happened. Therefore the later catalog recovery cannot be attributed to that deployment. Diagnostic reading was not retried with the known 481 remaining scanned-event budget, below the 501 reservation minimum.
A newly spawned subagent of the affected chat had already independently discovered all 15 tools and successfully called manifest at about 14:55:30 UTC, while the parent catalog was still empty. This is a partial workaround for MCP access, not proof of restored parent tools at that earlier time.
This narrows the report from persistent absence to delayed, unexplained same-chat recovery with no verified user-accessible reconnect action. Reproducible recovery timing/trigger and an actual bounded diagnostic read in the parent chat remain to be verified. No full chat transcript is attached.
berdmival commentedon Oct 15, 2026
Additional real Desktop acceptance, 2026-10-15 15:54–16:06 UTC: two power-off/on cycles of the MCP host passed in the same affected parent Desktop thread. Its catalog already contained all 15 tools before these cycles. While the server was off, direct manifest calls returned bounded metadata/transport-unavailable errors (~30 s), independent tools remained usable, and the 15 tools stayed in the model catalog. After each start, HTTPS metadata recovered in 97.7 s / 105.4 s; direct manifest, six-source bounded summary, and fresh runtime/dependency reads all succeeded from the parent model. No separate CLI/subagent was used for these calls. Desktop 26.1007.71326 and its app-server process remained running; no config edit, forced OAuth, hidden IPC, or manual service repair.
Important scope: these successful cycles verify connection recovery with an ALREADY POPULATED catalog. They do not establish a deterministic trigger or time bound for rebuilding the initially empty catalog described in the original report. That earlier delayed-catalog behavior remains unexplained, so this upstream issue is left open. The application-side power-recovery acceptance is now positive. Full chat transcripts, raw telemetry, and auth storage are not attached.
vladzdev commentedon Oct 16, 2026
It may help to expose transport health and tool-catalog freshness as separate states. A server becoming reachable doesn't guarantee that the client has rebuilt its available tool list. I'd add an explicit refresh or reconnect action and an acceptance test that starts with an empty catalog, takes the server offline, restores it, and verifies deterministic recovery without restarting the whole session.
berdmival commentedon Oct 16, 2026
Thanks. This distinction identifies the remaining acceptance gap. We have reopened our application task as Blocked: our two successful same-chat power-cycle tests started with all 15 tools already present, so they establish connection recovery but not empty-catalog recovery.
The missing test is: confirm zero affected tools in the model catalog while the endpoint is unavailable, restore the endpoint, record an explicit supported Refresh/Reconnect action (or bounded automatic recovery), and verify the same model thread receives the tools and directly succeeds at manifest plus one bounded diagnostic read without a whole-session restart or fresh OAuth. Repeat from an empty catalog. A separate client's tools/list or a subagent call does not satisfy that test.
The documented config/mcpServer/reload is relevant, but we still have no verified supported public route to invoke it on the actual Desktop host serving this affected chat. A user-visible action or documented automatic recovery trigger/time bound would make this test actionable. We will keep transport availability, model catalog availability, and authorized diagnostic results as separate observations. No full transcript is attached.
berdmival commentedon Oct 16, 2026
Additional measurement, 2026-10-16 (UTC), same affected Desktop chat 01a13f84-6f30-7280-b951-a6ded7f2b781:
Limit: this run observed an already-open chat with an empty catalog; it did not recreate its original Desktop cold-start conditions. It strengthens the transport-versus-model-catalog observation but does not complete a controlled repeated cold-start test. Versions were reverified: Desktop RPM 26.1007.71326, bundled CLI 0.162.0-alpha.17.2, standalone CLI 0.157.0. The VM was returned to confirmed OFF after both runner projects and running runner jobs were checked idle. No full transcript, credentials or raw telemetry attached.
berdmival commentedon Oct 16, 2026
Follow-up: how can we invoke the documented MCP reload on the App Server already serving the affected Desktop chat?
We checked the installed Linux Desktop 26.1007.71326 and bundled CLI 0.162.0-alpha.17.2 (standalone CLI: 0.157.0):
config/mcpServer/reloadas reloading MCP configuration and queuing a refresh for loaded threads: https://learn.chatgpt.com/docs/app-server#api-overviewparams: nullfor that method. It has nothreadIdorserverNameselector. The response is an empty object, so it is not itself evidence that a particular model catalog has finished rebuilding.mcpServerStatus/listdoes have optional thread/server selectors, but it is a status/discovery request.~/.codex/app-server-controldirectory. The CLI exposescodex app-server proxy --sock, but we have no verified public control socket for this existing Desktop host.settings.mcp.restartApplabel explicitly describes restarting the Electron app after an MCP settings change. The Reconnect prompt we found is for expired authentication and starts reauthentication. Neither is the requested catalog-only recovery path.Could a maintainer clarify the supported procedure for invoking
config/mcpServer/reloadon the existing Desktop App Server that owns this chat, without restarting Desktop or repeating OAuth?Specifically:
Starting a separate App Server or resuming the saved chat ID in another process would not demonstrate recovery of the original Desktop model catalog. Our acceptance remains direct manifest plus bounded diagnostic reading from that original chat. The prior 130-second observation is a measurement, not an asserted product SLA. No full chat transcript or credentials are attached.
berdmival commentedon Oct 16, 2026
Controlled cold-start reproduction, 2026-10-16 UTC: the model catalog was still empty on the next user turn after server recovery.
No config edit, forced OAuth, hidden IPC, Desktop patch or further Desktop restart was used during recovery. No separate-client/subagent result was substituted for parent-model acceptance. This reproduces the empty-catalog recovery problem after a confirmed Desktop cold start, including a next-user-turn checkpoint; it does not claim permanent failure or a documented recovery SLA. The proposed 120-second measurement threshold was not met. Full acceptance remains blocked, and we still need the supported reload route requested above.
No full transcript, credentials, auth storage or raw telemetry is attached.
capfininv commentedon Oct 23, 2026
Following the request here for supported access to
config/mcpServer/reloadon the already-running Desktop host, could maintainers also document its safety contract when other chats have work in progress?In particular:
Please distinguish documented guarantees from unsupported behavior. If there is no supported procedure that provides these protections on the existing Desktop host, an explicit statement of that limitation would be useful.
This asks for documentation and an existing supported procedure only, not changes to settings, authentication, services or active work. CLI fixtures alone would not establish these guarantees for other active Desktop chats; no identical root cause or safe workaround is assumed.
comercial134 commentedon Nov 30, 2026
Related observation from Windows Codex Desktop, not a confirmed reproduction of the Linux root cause above.
The built-in codex_app route previously reported:
MCP startup failed: stop stdio server before handshake restart: timed out. In a later same-chat check, native app tool names remained discoverable, but read/wait dispatch returned:This app tool is unavailable through dynamic tools. Use the codex_app MCP server.That later response establishes a dispatch/access boundary, not that a request reached the MCP server or that its current health is known. Independent filesystem and connected Drive/Sites operations still succeed.The practical blocker is confirming a delivery and continuing an existing native chat. I found no exposed server-scoped or thread-scoped reconnect action. A separate SDK client is not acceptance for the owning Desktop runtime; a broad config/mcpServer/reload or shared-app restart would affect other loaded work.
Please provide or document an owning-runtime, server-scoped recovery path that preserves loaded chats. Acceptance should include a real read and a bounded send to the same existing chat, followed by observed consumer action, rather than tools/list alone. No private logs, paths, chat IDs, transcripts, credentials or customer data are attached.