VS Code: Branch in new chat fails with execution-config-loading
On Windows 11 25H2 with VS Code 1.147.0, Codex extension 26.1117.41037, and bundled CLI 0.171.0-alpha.13, open a local Codex chat, wait for the assistant reply to finish, then choose ⋯ → Branch in new chat on that reply.
Expected behavior is a new chat containing the history through the selected reply. Instead, the extension shows “Failed to branch chat”, and the log records AppServerForkNotReadyError: execution-config-loading.
This reproduced in two chats in the same workspace on 21 November 2026 at 15:01 and 15:10 WIB (UTC+7), including a short text-only chat. Reloading VS Code and reinstalling the extension did not resolve it. chatgpt.cliExecutable is unset. Forking the original conversation at the same reply through the Codex App Server succeeded.
/feedback also failed with “Couldn't verify feedback permissions. Please try again”, so no Feedback Session ID was generated. A redacted log excerpt is attached.
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
- #61963
Powered by Codex Action
Codex VS Code extension 26.1117.41037. Timestamps in WIB (UTC+7). 2026-11-21 15:01:02.806 [error] Error forking conversation from turn errorMessage="App-server fork is not ready: execution-config-loading" errorName=AppServerForkNotReadyError 2026-11-21 15:10:01.016 [error] Error forking conversation from turn errorMessage="App-server fork is not ready: execution-config-loading" errorName=AppServerForkNotReadyError
Rolling back the Codex VS Code extension from 26.1117.41037 to 26.1111.21308 restored “Branch in new chat” on the same machine.
I’m seeing a related New Chat failure on Windows 11 ARM64 with VS Code 1.147.0, Codex extension 26.1117.41037, and bundled runtime 0.171.0-alpha.13.
With Work locally and the workspace-only profile, a fresh chat hangs in two checkouts beneath a denied parent. The profile allows the active checkout. A workspace outside that parent starts in about 15 seconds with the same profile, and new chats work in Codex Desktop. One of the affected checkouts previously started a fresh VS Code chat under the same permissions and MCP settings on runtime 0.164.0-alpha.11.1.
2026-11-22 15:51:22.872 CST thread_start_requested method=thread/start hostId=local
2026-11-22 15:51:52.879 CST thread_start_failed errorType=AppServerRequestDeliveryError durationMs=30011
This is a fresh chat timeout rather than the fork error described above. Could the same release have changed how the extension initializes local workspaces for new chats? #61991 also records AppServerRequestDeliveryError on Desktop.
any ETA for the fix?
Additional root-cause evidence for Codex VS Code extension 26.1120.41243 (win32-x64).
Environment: VS Code 1.147.0, Windows x64 build 26200, bundled codex-cli 0.171.0-alpha.13.2. Both branching from a selected assistant reply and branching the current local chat fail with:
AppServerForkNotReadyError: App-server fork is not ready: execution-config-loading
Findings in the shipped extension
The extension host's local hosted-manager constructor (t$ in this build's out/extension.js, around line 1589) initializes its manager with an empty settings reader:
settings: {
// Other members omitted.
read: () => {},
}
The fork-placement guard (Kit, around line 1399 in the same bundle) reads these two settings and returns { status: "not-ready", reason: "execution-config-loading" } if either is undefined:
sidebarCustomSectionsEnabled
useAppServerCustomSections
The renderer's ordinary branch actions do not pass a resolved placement. Consequently, the hosted manager calls this guard using the empty reader and returns not-ready before sending the underlying thread/fork request. Waiting, reloading, or retrying cannot populate a reader that always returns undefined.
I compared the installed out/extension.js against extension/out/extension.js inside VS Code's cached VSIX for openai.chatgpt-26.1120.41243-win32-x64 (publisher: openai). They are byte-for-byte identical before any local changes. Both SHA-256 digests are:
0d442f72231e0e93e3479d74a7e8b9f3dccb0f4054762be3a57b14fc9aea1590
This points to a defect in the shipped host adapter, rather than a locally modified bundle or corrupted conversation. The same error string is also used elsewhere; the above finding is specific to this extension-host fork-placement path.
Isolated validation and local workaround
Executing the shipped guard independently with the shipped empty reader reproduced the exact not-ready / execution-config-loading result, without accessing a session or making network requests.
A narrow local workaround replaced only that host reader with:
read: key =>
key === "sidebarCustomSectionsEnabled" || key === "useAppServerCustomSections"
? false
: undefined,
With otherwise identical inputs, the shipped guard then returned:
{
"status": "ready",
"placement": {
"prependToManualProject": false,
"customSection": null
}
}
node --check passed for the patched bundle, and unrelated setting names still returned undefined. This validates removal of the placement-guard blocker only; end-to-end UI branching after a reload has not yet been confirmed. The workaround is not intended as a permanent upstream policy for sidebar settings.
A source-level fix could wire the required settings into the hosted manager, pass resolved placement from the renderer, or provide explicit defaults where custom sections are unsupported. It would also help to distinguish an unavailable/unimplemented settings adapter from genuinely loading execution configuration in the error message.
Below is a script that patches your currently installed vscode extension to make branching chats work again. This isn't an actual fix. This just gets it working for now until someone gets a PR for a longer term fix
#!/usr/bin/env python3
"""Restore chat branching in a local copy of the Codex VS Code extension."""
import argparse
import json
import shutil
import tempfile
from pathlib import Path
EXTENSION_ID = "openai.chatgpt"
#replace with your version if different
SUPPORTED_VERSION = "26.1117.41037"
UNPATCHED_READER = (
b"readPermissionRefreshEnabled:async()=>null,"
b"read:()=>{},readCatalogEntry:()=>{},isBrowserRuntime:!1,usesDesktopMcp:!1"
)
# The VS Code host has no custom-section settings. The fork preparation
# interprets undefined as still loading, so supply explicit defaults here.
PATCHED_READER = UNPATCHED_READER.replace(
b"read:()=>{}",
b"""read: setting => {
if (
setting === "sidebarCustomSectionsEnabled" ||
setting === "useAppServerCustomSections"
) {
return false;
}
return undefined;
}""",
)
def patch_extension(extension: Path) -> bool:
manifest = json.loads((extension / "package.json").read_text(encoding="utf-8"))
if not isinstance(manifest, dict):
raise ValueError("Expected a VS Code extension manifest")
extension_id = f"{manifest.get('publisher')}.{manifest.get('name')}".lower()
if (
extension_id != EXTENSION_ID
or manifest.get("version") != SUPPORTED_VERSION
or manifest.get("main") != "./out/extension.js"
):
raise ValueError(
f"Expected {EXTENSION_ID} {SUPPORTED_VERSION} with entry point ./out/extension.js"
)
bundle = extension / "out" / "extension.js"
contents = bundle.read_bytes()
unpatched_count = contents.count(UNPATCHED_READER)
patched_count = contents.count(PATCHED_READER)
if unpatched_count == 0 and patched_count == 1:
return False
if unpatched_count != 1 or patched_count != 0:
raise ValueError("Expected exactly one unpatched VS Code settings reader")
temporary_path = None
try:
with tempfile.NamedTemporaryFile(dir=bundle.parent, delete=False) as temporary:
temporary_path = Path(temporary.name)
temporary.write(contents.replace(UNPATCHED_READER, PATCHED_READER, 1))
shutil.copymode(bundle, temporary_path)
temporary_path.replace(bundle)
finally:
if temporary_path is not None:
temporary_path.unlink(missing_ok=True)
return True
def main() -> None:
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("extension", type=Path, help="Directory containing a copy of the extension")
args = parser.parse_args()
try:
changed = patch_extension(args.extension)
except (OSError, ValueError) as error:
parser.exit(1, f"{error}\n")
if changed:
print("Patched the sidebar settings reader.")
else:
print("The sidebar settings reader is already patched.")
if __name__ == "__main__":
main()
you can also just ask ur agent to create the branch manually and reload the window, might be faster than implementing a fix
I’m also seeing this on VS Code Remote SSH with a Linux x64 host and Codex extension 26.1120.50957. Branching from a reply gives me “Failed to branch chat.” I tried many times, and each attempt logged AppServerForkNotReadyError with execution-config-loading.
I asked Codex to check the installed extension bundle. It reproduced the same failure by running the fork placement check with the extension’s settings reader. Returning false for sidebarCustomSectionsEnabled and useAppServerCustomSections let that check pass in isolation. (I haven’t patched my installation or tested the full UI flow with that change.)
Could the VS Code extension provide a fix for this? Getting this working again would really be a big help!
Additional reproduction on VS Code Remote - SSH (macOS client, Linux x86_64 remote). Branching an existing chat from a message fails with AppServerForkNotReadyError: App-server fork is not ready: execution-config-loading. The remote extension version was 26.51120.50957; the same error was also observed with 26.51117.41037. The remote Codex CLI reported ChatGPT sign-in. Other remote hosts using 26.51111.21308 can branch according to the user. We reinstalled 26.51111.21308 on the affected remote host as a workaround; its branch functionality has not yet been confirmed after that reinstall. Is there an expected fix or release tracking this issue?
Confirming this still reproduces with Codex extension 26.1120.50957 on VS Code Remote SSH (Linux x64 extension host). I can open the existing conversation and read its history, but choosing Branch in new chat on a completed assistant reply fails with:
AppServerForkNotReadyError: App-server fork is not ready: execution-config-loading
The Codex CLI can fork the same conversation from its latest turn, but that does not restore the ability to branch from the specific earlier reply in VS Code. I also reproduced the preflight failure in the extension code: the settings reader returns undefined for the two sidebar settings, so the extension stops before sending thread/fork.
Could the Codex team please prioritize a fix for reply-level branching on Remote SSH and share which extension build will include it? This blocks branching from a specific point in an existing conversation. Thanks!