Skip to content

[Windows desktop 26.1021.31345] Recurring layout, file-RPC and ephemeral-thread errors; repair investigation #56792

Open

Description

@JPTIng

Version and platform

  • Windows desktop app: 26.1021.31345, build 21828, production channel.
  • Microsoft Store/MSIX package: OpenAI.Codex 26.1021.3705.0, x64.
  • Bundled CLI: 0.164.0-alpha.11.1 (codex --version).
  • Windows 11 Home, Chinese locale, x64; OS version 10.0.26300, build 26300.
  • Subscription and account information are omitted from this public report.

Summary

Three recurring error classes remain observable in the unmodified Microsoft Store app. This report combines a bounded observation from that app with a review of a separate, now-removed local repair experiment. The experiment was not installed into the Store app and is not evidence that the current app has been repaired. No shared root cause, renderer crash, lost messages, or corrupted history has been established.

An observed five-minute window on 2026-10-25, 04:04:35–04:09:35 Asia/Shanghai (2026-10-24 20:04:35–20:09:35 UTC), contained:

Signature group Error-level log rows
Primary-renderer ResizeObserver loop 18
File RPC failures 18
Unknown conversation / missing conversation state 5
Unsupported placement format 0

These are log-row counts, not counts of failed user actions. The missing-environment-ID startup errors below were observed in earlier startup windows and are not claimed to account for every file-RPC row in the five-minute sample.

Observed workflow and reproduction limits

  1. Start the official Windows desktop app with an existing signed-in profile.
  2. Open an existing local Codex chat and continue ordinary messages/tool activity.
  3. Inspect the desktop log while the main window is active and during startup/background initialization.
  4. Observe the signatures below.

This is a retained observation in one installation, not a deterministic minimal clean-profile reproduction. Repeated layout errors persisted after a bounded layout-cache reset in an earlier run. The exact component causing the layout feedback and the exact paths of the failing metadata probes have not been isolated.

Useful controls: the current chat can be read successfully both with explicit local-host selection and default host resolution. Opening a known 84-byte local text file with explicit right-panel placement restored the previously hidden panel, and the user confirmed seeing both lines. These controls establish working paths; they do not eliminate all file-initialization or routing defects.

A. Primary-window layout

Observed signature:

[electron-message-handler] [desktop-notifications][global-error]
ResizeObserver loop completed with undelivered notifications.
rendererWindowAppearance=primary

The emitted record contains no callback stack or observed element. Read-only inspection found multiple ResizeObserver consumers in the bundled frontend, so a specific component has not been identified. Please capture the callback/element responsible and verify whether a size update feeds back into the same observation. A global deferred-callback wrapper is at most a timing workaround, not proof that the originating component is fixed.

B. File initialization / metadata requests

Observed forms, with request IDs, thread IDs and local paths removed:

method=fs/readFile code=-32602
message="fs/readFile requires an environmentId"

method=fs/getMetadata code=-32603
message="系统找不到指定的路径。 (os error 3)"

method=fs/getMetadata code=-32603
message="系统找不到指定的文件。 (os error 2)"

In an earlier startup log, missing-environment-ID failures appeared once in the primary renderer and once in the avatar-overlay renderer. They occurred during initialization. No claim is made that these records caused an account, workspace-settings, or file-data failure.

The compiled attachment-registry readState() path sends fs/readFile with a path and no environment ID. Its relationship to each observed request remains a hypothesis because the public log does not retain the relevant request parameters. Please distinguish optional existence probes from genuine user-requested file operations, and defer initialization when the execution environment is unavailable. Missing executor context must not be assumed equivalent to a nonexistent/empty registry.

C. Internal temporary-thread events / conversation state

Observed signatures:

Received turn/started for unknown conversation
Conversation state not found
Received turn/completed for unknown conversation

For four earlier affected IDs, read-only backend records showed internal thread/fork requests and subsequent teardown; no corresponding persistent row was found in the client threads table. Actual identifiers are intentionally omitted.

Read-only inspection of this build found:

  • .vite/build/src-Dl21kCYQ.js marks ephemeral threads but its Mm exception set allows turn/started and turn/completed through the ephemeral filter.
  • Internal notification handlers and automation completion handling run before the filter. The remaining path can still invoke the host event handler.
  • The conversation handlers in .vite/build/main-BPBEjAxi.js record errors when the receiving store has no conversation state.

This is a plausible local event-ownership path for the log messages, not proof that every affected ID came from the same service. Composer prediction is one confirmed source-code caller of temporary forks; each individual affected ID has not been attributed to that feature.

Please preserve internal completion consumers while preventing internal-only temporary-thread events from reaching handlers that require a loaded visible conversation. Verify real chat/tool forks as well as startup, and retain full-fidelity handling for temporary threads that actually have an intended consumer.

Repair-report review and its limits

A separate local repair report described a standalone copy with three modified bundled assets. That copy and its test profile have since been removed. The original Store installation was not modified. The earlier report's two-minute, unauthenticated startup smoke test is not acceptance of the signed-in Store workflow.

Earlier experiment Review finding
Remove ephemeral lifecycle events from the exception set Plausible investigation direction; real signed-in fork and all internal-consumer paths still need validation.
Downgrade no-conversation fs/* missing-file/environment errors to info Broad log reclassification can conceal real failed operations. Error disappearance is not functional repair.
Treat missing environment ID as an empty attachment registry Can conflate unavailable context with absent data; not accepted as a general fix.
Globally defer ResizeObserver callbacks with setTimeout(0) Timing mitigation with two independently reproduced lifecycle regressions, described below.

The observer wrapper actually present in the experimental archive was checked against the source tested. In an isolated mock-observer harness:

  • Queue a native delivery, then disconnect(), then flush deferred tasks: the old wrapper still delivered 1 callback (expected 0).
  • Reuse the same observer with observe() after disconnect(): the old wrapper delivered 0 callbacks (expected 1).

A revised candidate passes 11 isolated lifecycle/scheduling tests: deferred delivery/receiver binding, disconnect cancellation, reuse, per-target unobserve cancellation, coalescing, reentrant task separation, callback error propagation, invalid callback/target validation, independent observers, and idempotent installation. It has not been packaged, deployed, or validated against the real DOM. It is included as review material, not a recommended production fix.

Revised observer timing workaround — isolated tests only, not deployed
// Staged source only. Deferring callbacks mitigates same-frame feedback;
// it does not prove that the component causing the feedback has been repaired.
;(() => {
  try {
    const NativeResizeObserver = window.ResizeObserver;
    if (typeof NativeResizeObserver !== 'function' || NativeResizeObserver.__roLoopPatch) return;

    class DeferredResizeObserver extends NativeResizeObserver {
      #callback;
      #pending = new Map();
      #timer = null;

      constructor(callback) {
        if (typeof callback !== 'function') throw new TypeError('ResizeObserver callback must be a function');
        super(entries => this.#enqueue(entries));
        this.#callback = callback;
      }

      #enqueue(entries) {
        for (const entry of entries) this.#pending.set(entry.target, entry);
        if (this.#timer !== null || this.#pending.size === 0) return;
        this.#timer = setTimeout(() => {
          this.#timer = null;
          const pending = Array.from(this.#pending.values());
          this.#pending.clear();
          if (pending.length !== 0) this.#callback.call(this, pending, this);
        }, 0);
      }

      unobserve(target) {
        const result = super.unobserve(target);
        this.#pending.delete(target);
        if (this.#pending.size === 0) this.#cancelTimer();
        return result;
      }

      disconnect() {
        const result = super.disconnect();
        this.#pending.clear();
        this.#cancelTimer();
        return result;
      }

      #cancelTimer() {
        if (this.#timer !== null) clearTimeout(this.#timer);
        this.#timer = null;
      }

      static get __roLoopPatch() { return true; }
      static get __roLoopPatchVersion() { return 2; }
    }

    const descriptor = Object.getOwnPropertyDescriptor(window, 'ResizeObserver');
    Object.defineProperty(window, 'ResizeObserver', {
      value: DeferredResizeObserver,
      writable: descriptor?.writable ?? true,
      configurable: descriptor?.configurable ?? true,
      enumerable: descriptor?.enumerable ?? false,
    });
  } catch (error) {
    console.warn('ResizeObserver deferred delivery patch could not be installed', error);
  }
})();

Other previously observed routing error

thread/read once returned unsupported placement format version 1. Later explicit-local and default local reads succeeded, and the five-minute window above had no recurrence. No local routing patch or confirmed server-side root cause is claimed. This is historical context rather than one of the three currently recurring signature groups.

Related reports

Similar signatures do not establish identical causes. Please split/merge this report into the appropriate component issues if needed.

Requested outcome and disclosure

Please investigate these paths in the official Windows desktop app, distinguish expected probes from functional failures, and provide a supported fix. The user wants the current Store installation repaired, not a separate modified client.

Submitted by Codex with the user's explicit authorization to publish a sanitized GitHub issue. No account identifiers, conversation/request IDs, usernames, machine names, private project paths, chat contents, raw logs, databases, credentials, registry exports, or screenshots are attached. This post includes a minimized repair-review report rather than the original local report with personal paths.

Activity

  1. added
    bug
    app
    windows-os
    app-server
    on Oct 24, 2026
  2. github-actions commented on Oct 24, 2026

    @github-actions
    Contributor
  3. Stephanv80 commented on Oct 26, 2026

    @Stephanv80

    Additional Windows observation from 2026-10-26, submitted with the affected user's explicit authorization to publish this report and contact address publicly.

    Contact: [email protected]

    Environment verified locally:

    • Windows 11 Home, version 10.0.26300, build 26300.
    • Microsoft Store package OpenAI.Codex 26.1021.3705.0.

    The user reports slow operation. A read-only audit found the same recurring primary-renderer signature described in section A of this issue:

    [electron-message-handler] [desktop-notifications][global-error]
    ResizeObserver loop completed with undelivered notifications.
    rendererWebContentsId=1 rendererWindowAppearance=primary
    rendererWindowId=1 rendererWindowVisible=true
    

    Verified evidence from retained exports:

    • Initial export: 344 exact matching log lines across three app-run logs dated 2026-10-26. Of these, 332 have rendererWindowFocused=true and 12 have rendererWindowFocused=false. All identify the visible primary window.
    • Updated snapshot: 376 matching log lines, including 50 in the latest app-run log. This is 32 additional occurrences compared with the initial export, not 32 distinct bugs or failed user actions.
    • Latest occurrence in that snapshot: 2026-10-26T10:59:09.784Z (11:59:09 Europe/Paris).
    • No repair was applied during this audit. Recurrence establishes that the signature persists; individual historical occurrences cannot be classified as still active or resolved because they have no observer-specific tracking identifier.
    • The logged records do not identify the observed element, observer callback or usable call stack. A component-specific root cause cannot be established from these records.

    Sanitized example:

    2026-10-26T10:59:09.784Z error [electron-message-handler] [desktop-notifications][global-error] ResizeObserver loop completed with undelivered notifications. rendererWebContentsId=1 rendererWindowAppearance=primary rendererWindowFocused=true rendererWindowId=1 rendererWindowVisible=true
    

    Controls and limits:

    • One CPU sample was 13%; approximately 10 GB physical memory was available at the time of inspection.
    • Reasoning effort was configured as low; quota was available.
    • These are point-in-time observations, not a controlled performance trace. They do not establish that ResizeObserver caused the reported response latency, that a resource leak exists, or that this installation shares the exact root cause of the original report.
    • No deterministic clean-profile reproduction or source-mapped renderer trace has been performed. A restart/update intervention was proposed but was not performed as part of this audit.

    Requested engineering investigation:

    1. Capture the actual observer callback, observed element and component stack for these forwarded errors.
    2. Check for layout feedback between measured dimensions and subsequent style/state updates.
    3. Distinguish harmless deferred notifications from a measurable rendering performance defect; please provide a supported diagnostic and fix that preserves chats/settings.
    4. Do not treat suppressing the error or globally deferring all observer callbacks as proof of a functional repair.

    A per-occurrence local report was prepared with all 376 timestamps and generic renderer error records. No raw logs, private paths, chat contents, account identifiers, conversation IDs or screenshots are attached to this public comment. The contact email above is included at the user's explicit request.

  4. Stephanv80 commented on Oct 26, 2026

    @Stephanv80

    Follow-up from the same authorized Windows audit on 2026-10-26.

    The configured updater reported installed desktop version 26.1021.31345, build 21828, production channel, status up_to_date. The app was subsequently observed running with a new main process started at 11:11:20 UTC. Recurring errors persisted after restart.

    A retained five-minute log sample from 13:43:09 through 13:48:09 UTC contains:

    • 16 ResizeObserver loop records.
    • 20 path-not-found records (os error 3).
    • 4 file-not-found records (os error 2).
    • 1 thread-not-loaded record.
    • 1 thread/read failure: "Client specified an invalid argument: post-cutover thread ID [redacted] has unsupported placement format version 1" (code -32602, grpcStatusCode 3).
    • No environmentId-missing, access-denied or skipped-heartbeat records in that interval.

    These are log counts, not independently reproduced user-action failures. The metadata requests omit paths, so the audit cannot attribute all missing-path errors to stale output directories. Read-only inspection found optional visualization-snapshot metadata probes among possible callers; this is not proof of the caller for any specific request.

    Two local state findings:

    1. The heartbeat automation targeting a missing old thread was initially paused and then deleted at the user's request. Deletion is verified by absence of its automation configuration. This removes the automation, not the missing-thread defect.
    2. An inaccessible old thread remains in the local pinned-thread list. The supported sidebar move tool failed to resolve the thread, reporting an unavailable/failed durable host. A backed-up, targeted removal of that single pin in the local JSON settings was initially verified, but a subsequent read found the pin restored. The file edit is therefore NOT a durable fix; a running-client write-back or another source of pinned state needs investigation. No conversation or database was deleted. Repeated direct edits are not being treated as a repair.

    Please investigate authoritative pin ownership/rehydration and the unsupported placement-format routing failure, alongside the existing renderer and file-initialization issues. Please provide a supported fix or diagnostic path preserving user history. No installation bundle was patched, and no raw logs or private identifiers are included here.

  5. Stephanv80 commented on Oct 26, 2026

    @Stephanv80

    Request for engineering/support triage — submitted now at the affected user's explicit request.

    Please review the two preceding audit comments and advise on a supported fix or the next diagnostic step. The user continues to report slow operation. The latest retained log sample is from 2026-10-26, 13:43:09–13:48:09 UTC; it is not a new measurement at the time of this comment.

    Remaining unresolved observations in that sample:

    • 16 primary-renderer ResizeObserver records.
    • 20 path-not-found and 4 file-not-found records; request paths are absent from the logs, so a specific broken reference cannot be safely repaired.
    • 1 thread-not-loaded record and 1 unsupported placement format version 1 routing failure.

    Local actions and results:

    • Configured updater reported version 26.1021.31345, build 21828, up_to_date.
    • Errors persisted after an application restart.
    • The broken Finbox heartbeat automation has been deleted at the user's request and its configuration is verified absent.
    • Removing an inaccessible old thread from the local pinned-thread settings was not durable: the application restored the reference. This must not be counted as a successful repair.
    • No application bundle patch, database edit, history deletion or speculative recreation of missing files was performed.

    Please identify the authoritative source restoring the stale pin, investigate the placement-format routing error, and provide actionable renderer/file-request diagnostics including observer callback/element and requested path where appropriate. A causal link between the generic ResizeObserver records and response latency has not been established. No permanent resolution is claimed.

    Contact authorized for this public report: [email protected]. Please request any additional sensitive diagnostic material through a private support channel.

  6. powernews-dev-2026 commented on Nov 12, 2026

    @powernews-dev-2026

    Windows follow-up, 2026-11-12: both missing-conversation state and ResizeObserver errors still recur in the official Store desktop app

    Submitted with the affected user's authorization. Please investigate both paths for an upcoming official desktop release. This is a new Windows build observation related to this issue and #42495; identical signatures do not establish identical root causes.

    Current verified environment

    • Windows x64, OS version/build 10.0.26300.
    • Microsoft Store package OpenAI.Codex 26.1106.6628.0, package status OK; the running executable has a valid OpenAI signature.
    • The official production updater previously reported display version 26.1106.51428 / build 26605 on the same date. This display version and the MSIX package version are different identifier layers.
    • The current official process started at 2026-11-12 13:13:59 UTC. Its complete startup log contains successful app startup, approximately 5.639 seconds, with no startup-policy, runtime-identity, or plugin-copy/reconcile failure markers in the startup check.
    • A separate local experimental client was removed at the user's request. The current observations come from the original signed Store installation, with its application bundle unchanged.

    Fresh bounded recurrence

    Retained log window 2026-11-12 13:15:10.232–13:20:10.232 UTC (21:15–21:20 Asia/Shanghai), one current-process primary log:

    Exact signature group Matching rows
    Conversation state not found 40
    ResizeObserver loop completed with undelivered notifications. 31
    Renderer crash/unresponsive/OOM signature scan 0

    These are log-row counts, not numbers of failed user actions. The negative scan covers this window only. Ordinary chat and tool work continued; neither a universal harmlessness claim nor a causal link to latency/memory loss is established.

    A. Missing conversation state: a narrower event path

    Read-only inspection of the installed bundle on this date still finds an unguarded thread/tokenUsage/updated path calling the full conversation-state updater when its normalized conversation ID may not be loaded in the in-memory map. The updater logs the missing-state message and returns.

    Relevant member: .vite/build/early-bootstrap-620-1eb87a1b3aa240b6.js, SHA256 5d08d7246c17ad6c295420a592ed2109bd70a318c63efe4890dcb7c32975ec0c; known branch marker at UTF-8 byte offset 1668086. This is a static fingerprint, not a source-mapped runtime stack.

    A retained earlier audit on the same date correlated 85 errors for three confirmed child threads with those threads' token events within one second (81 within 250 ms); a separate unconfirmed ID was excluded. This supports investigation of unloaded-child token events, but does not attribute every missing-state record to that path.

    An isolated harness using the extracted branch reproduced invalid store calls in 3 of 5 lifecycle cases. A candidate checking conversation existence before calling the updater passed 5/5; removing the guard reproduced the failures and restoring it passed again. This is a minimal-store experiment, not production acceptance. It preserves the prior no-state behavior of discarding the usage update; if background usage must be retained, a bounded lightweight cache/event-ownership design needs full lifecycle testing instead.

    Please verify loaded/unloaded child threads, late events after unload, host-native subagent creation/teardown, intended internal consumers, and normal visible-chat token updates. Please do not infer database corruption or delete history from this message.

    B. ResizeObserver: retained local trace and limits

    The forwarded signature remains:

    [electron-message-handler] [desktop-notifications][global-error]
    ResizeObserver loop completed with undelivered notifications.
    

    The prefix is a generic renderer-wide error forwarder, not evidence that the notification component caused the layout condition. Turning notifications off or hiding the error is not functional repair.

    An earlier local-only performance trace from the same date sampled approximately 50.002 seconds, 01:22:18.499–01:23:08.501 UTC. It contains two matching log errors; only the first has a retained complete chain:

    1. ResizeObserver notification phase.
    2. A nested 5.676 ms callback with 45 style/layout queries, one Layout, and three scroll-offset writes.
    3. Another notification phase followed by window.onerror in the same rendering lifecycle.

    The 45 queries are not 45 full reflows. The whole enclosing task was 19.513 ms. Other long tasks were observed separately and must not be attributed to this RO error.

    The turn-height/layout candidate member is webview/assets/async/268995.d08491d70a.js, SHA256 589ff692fd74d0441c361352a428be41d752ed2dd528c73addf7d54c143a6ce3. Same-renderer/time-window V8 samples suggest eo → ei → flushSync. The sample and timeline thread/import identifiers were not directly linked; no observer target/entry or before/after size was captured. The source contains a height-write candidate and already has an equal-height guard, but the trace does not prove that height assignment executed in this occurrence. Buffer 0 dropped 1873 chunks, limiting exclusions and the second-error analysis.

    Please use a supported debug/source-mapped build to collect bounded anonymous observer/target IDs, entry and cached heights, total-height writes, frame/lifecycle IDs, flushSync and scroll order, stopping after the first error. Then correct the specific confirmed feedback write and test streaming, scrolling, resize, and observer lifecycle. Please avoid global callback deferral as proof of a component fix. Related upstream diagnostic patterns: bounded observer context and component-specific layout handling.

    Requested outcome and disclosure

    Please triage these current-build paths and provide a supported official fix, ideally in the next release if feasible, with regression coverage and release identification. The user wishes to keep the official installation, chats, settings, and normal startup/update workflow.

    This comment uploads only this sanitized report and exact error signatures. It excludes raw logs, the 253 MB trace, transcripts, account and thread IDs, credentials, databases, screenshots, usernames, machine names, and private filesystem paths. The retained trace is SHA256 554c103606fb2c305cf3a2bfcbc1ce9744e75ced38fa04146b50edfde7fbde6d; if further material is needed, please provide an appropriate private support-upload route.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appapp-serverbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions