Codex on Windows: a red border stays around a window after an Appshot and the app is missing from the Attach menu — restart one helper process
Evidence: Tested on production. In the evidence table: 6 claims tested here, 2 verified against a primary source, 3 reported, not reproduced.
As of 5 December 2026, on the Codex desktop app for Windows (Microsoft Store package OpenAI.Codex 26.1123.13983.0, Windows 11 build 26300.10075): red borders stayed around two application windows after Appshots, and the app we expected was not offered in the Attach menu, while new screenshots still succeeded. Stopping one helper process, codex-computer-use-swift.exe, cleared every border and brought the Attach option back. Codex started a replacement helper within a second, and the main Codex window and both captured apps stayed open. No reinstall, reboot, permission change or registry edit was needed. This is one recovery on one workstation: the defect inside the helper is not identified, and we did not test whether the restart prevents a recurrence.
Who this is for, and what it is not#
This is for people who use the Codex desktop app on Windows and are left with a red frame around a window after an Appshot, or who cannot find the app they expect in the Attach menu.
It is not a root-cause analysis of the Codex helper, and it is not a permanent fix. It is one incident on one workstation, with one recovery that we checked before and after.
Tested and not tested#
| Area | Tested in this incident | Not tested |
|---|---|---|
| Symptom | Red borders around two apps after Appshots, lasting until the helper was restarted | The yellow border left by Computer Use; borders on a whole display |
| Capture | Six captures across the Appshot shortcut and the Attach action, all logged as successful during the incident | Whether frames were being taken or sent while a border was showing; the Windows screenshot shortcut |
| Recovery | Stopping codex-computer-use-swift.exe once | Closing and reopening the affected app; quitting Codex; a reboot; any other build; a capture after the restart |
| Attach menu | Bringing the wanted app to the front changed the action to that app | Why the wanted app was missing earlier; whether it shares a cause with the border |
| Recurrence | None | Whether the border returns, and after how many captures |
| Reproduction | None | Reproducing the fault from a clean start |
The fix that worked#
On 5 December 2026, red borders stayed around two application windows on one of our Windows workstations after Appshots of them had been taken in the Codex desktop app, and the app we wanted to attach next was not offered in the Attach menu. NG-NeXT read the desktop logs, tested each capture path separately, and then restarted one Codex helper process.
We stopped one process, codex-computer-use-swift.exe, after checking that it belonged to the running Codex app. Codex started a replacement within a second. Before any new capture was made, all borders were gone and the Attach option was back. The main Codex process, the terminal and the other captured app were still running and responding.
Nothing was reinstalled, rebooted or reconfigured: no permission change, no registry edit, no restart of a Windows capture service.
List the helper processes first. This is read-only:
Get-CimInstance Win32_Process |
Where-Object {
$_.Name -in @(
'codex-computer-use.exe',
'codex-computer-use-swift.exe'
)
} |
Select-Object Name, ProcessId, ParentProcessId, CreationDate,
@{ n = 'ParentName'; e = { (Get-Process -Id $_.ParentProcessId -ErrorAction SilentlyContinue).ProcessName } }
Check two things before going further:
ParentNameisChatGPT, the Codex desktop app, and it is the instance you are using.- No other chat is in the middle of a Computer Use task. That task may be using the same helper, and stopping the helper interrupts it.
Then stop that one process. The block below refuses to act unless the number you type is a running codex-computer-use-swift.exe whose parent is the Codex app, and it asks for confirmation before the stop:
$text = Read-Host 'PID of the Codex capture helper you have just inspected'
$helperPid = 0
if (-not [int]::TryParse($text, [ref]$helperPid)) { throw 'Not a number. Nothing was stopped.' }
$p = Get-CimInstance Win32_Process -Filter "ProcessId = $helperPid"
if (-not $p -or $p.Name -ne 'codex-computer-use-swift.exe') {
throw 'That PID is not the Codex Swift capture helper. Nothing was stopped.'
}
$parent = Get-Process -Id $p.ParentProcessId -ErrorAction SilentlyContinue
if (-not $parent -or $parent.ProcessName -ne 'ChatGPT') {
throw 'Its parent is not the Codex desktop app. Nothing was stopped.'
}
'{0} PID {1} started {2} parent {3}' -f $p.Name, $p.ProcessId, $p.CreationDate, $parent.ProcessName
Stop-Process -Id $helperPid -Confirm
In the incident we stopped the helper by its process ID after checking its name, parent and start time by hand. The block above is the same check written out for readers. We ran it on the same workstation afterwards as a dry run, with -WhatIf in place of -Confirm, in PowerShell 7.7: it identified the helper and stopped nothing. We did not run it in Windows PowerShell 5.1.
Look at the borders before you take another screenshot, because a new capture could bring the condition back and hide the result. Then run the listing once more: on our machine it showed a new helper with a new process ID and a ChatGPT parent.
Do not turn this into a scheduled task that kills every capture helper. It would interrupt real work in other chats, and it hides the fault instead of reporting it.
Symptoms#
- A red frame appeared around the first app after an Appshot and stayed. Later a second frame appeared around the terminal. Both were visible at once, one window in front of the other.
- Switching between windows did not remove them. They were still there hours later.
- The Attach menu offered the terminal when we expected the other app.
- Captures still worked: the Codex Appshot shortcut (both Alt keys) and the Attach action both produced a capture, and the attachment appeared in the message box.
If you are searching for this: public reports describe the same kind of leftover as a red, yellow or gold capture border, or an outline around a window that persists after a screenshot and will not go away until an app is closed.
OpenAI describes an Appshot as a capture of the frontmost window, with an image and whatever text is available, sent to the chat; on Windows the default shortcut, which can be changed, is both Alt keys pressed together (OpenAI Appshots documentation). That page does not mention a border.
Three things look like one failure: a capture that completes, a border that stays, and the app named in the Attach menu. Taken together they suggest broken permissions or a damaged install. We tested each one separately; whether they share one internal cause was not established.
Environment#
| Component | Version or state on 5 December 2026 |
|---|---|
| Operating system | Windows 11 Pro, build 26300.10075 |
| Codex desktop app | Microsoft Store package OpenAI.Codex 26.1123.13983.0 |
| Captured apps | A terminal and one other desktop application |
| Privileges | Codex and the terminal both non-elevated, same interactive session |
| Install checks | Package status Ok; ChatGPT.exe carried a valid OpenAI Authenticode signature |
The package status and the signature are not a full integrity check of every installed file. Repeated captures worked in this session, so nothing pointed to a general loss of capture access, and a reinstall or wider permissions were not indicated.
Screenshots succeeded while the borders stayed#
The Codex desktop log recorded each capture as a success, with both a screenshot and accessibility text present, and each attachment appeared in the message box. The diagnostic attachments were left unsent. Times are India Standard Time (UTC+05:30).
| Capture | Completed | Logged time taken | Result |
|---|---|---|---|
| First app, Attach action | 06:22:54 | 1,047 ms | Success |
| Terminal, Attach action | 06:43:19 | 909 ms | Success |
| First app, Attach action again | 06:56:29 | 1,206 ms | Success |
| Terminal, Appshot shortcut | 08:50:43 | 2,070 ms | Success |
| Terminal, Attach action again | 08:52:28 | 960 ms | Success |
| First app, Attach action, third time | 09:11:28 | 1,391 ms | Success |
These are single log readings from different capture paths, not a benchmark. Selected fields from the last record:
Appshot capture settled
elapsedMs=1391
hadAxText=true
hadScreenshot=true
failureReason=undefined
source=add_context_menu
status=success
So the session could take captures, and a general loss of capture access was not the problem. What the log does not show is whether the capture state was released after each one. The borders that stayed are consistent with state that was kept; we did not instrument the helper to confirm it.
A read of the installed Appshot script, without changing it, showed why the log cannot settle that. Completing the capture and cleaning up after it are separate requests; the clean-up request has a 500 ms timeout, and a failure of it is not reported at that point. We did not see a failed clean-up request in the log, so this is a lead and not the cause.
The Attach menu names one app: the last one in front#
In this build the plus menu has a single Attach [app] action. It names the window that was in front before Codex. It is not a list of running apps, and an app already attached to the draft is not kept as the next target.
We tested the sequence directly: closed the menu, brought the wanted app to the front, switched straight back to Codex and opened the menu again. The action changed from the terminal to the wanted app, and that capture succeeded.
That explains why the menu can name a different app from the one you just attached. It does not fully explain our earlier state, where the wanted app was not offered. That state also cleared after the helper restart. We did not trace the helper's choice of target, so we do not claim the missing option and the borders have the same internal cause. They recovered together.
The helper process we isolated#
There are two helper names to look for:
codex-computer-use.exe
codex-computer-use-swift.exe
Checking only the first would have missed the one that mattered. On our machine codex-computer-use-swift.exe had been running since 00:27 the previous day, more than 33 hours, and its parent was the main Codex ChatGPT.exe process.
That helper had the Windows capture library GraphicsCapture.dll loaded. So did other applications. A loaded library shows that capture code is present; it does not show that frames are being taken, and it does not say which process owns a given border.
Microsoft documents the border as an indicator that a capture is in progress. An app can ask to capture without it only with user consent and a declared capability, and the border still shows if another app requires it for the same window (Microsoft: GraphicsCaptureSession.IsBorderRequired). That fits what we saw. The documentation does not name a colour and cannot tell you which process owns a particular border.
What settled it was the test, not the inventory: we rechecked the helper's name, parent and start time, stopped only that process at 09:43:31, and a replacement with the same parent appeared in the same second. A later read-only check on the same day found a helper with the replacement's start time and a ChatGPT parent.
How this compares with public reports#
As of 5 December 2026 we read three related reports in the Codex issue tracker. None had a reply from a maintainer or named a fixed version in what we read.
- Issue #65456, opened 3 December 2026, is the closest: a thin red border stays around a browser window after an Appshot taken with both Alt keys, on the same Codex package version and the same Windows build as ours. Its reporter says minimising and restoring did not help and that closing and reopening the affected app cleared the border.
- Issue #65756, opened 4 December 2026, reports a yellow border left around a window after an Appshot on the same Codex package version. Its reporter says it goes only when the Codex app is quit.
- Issue #57101, opened 26 October 2026, is a long thread about a yellow border left after Computer Use. Results there vary. Some commenters cleared it by ending
codex-computer-use.exe; one cleared a border around a browser window on an earlier Codex version by ending onlycodex-computer-use-swift.exe, with both apps left open; others say the helper came straight back and the border stayed. One commenter cleared borders on three displays by restarting the Windows capture service and then found the screen-clipping shortcut broken until a reboot.
So ending the Swift helper is not new as an idea. What our incident adds:
- For the red border left after an Appshot on package 26.1123.13983.0, restarting that helper cleared it in our case without closing the affected app or quitting Codex, which are the only remedies the two Appshot reports give. That matters when the app holds unsaved work or a long session.
- The app missing from the Attach menu, which none of these reports mention, was offered again after the same restart.
- Six captures were logged as successful during the incident, so a border that stays did not mean captures were failing.
We did not test the other workarounds, the colour of a border does not tell you which feature left it, and we do not claim the internals are the same in every case.
What this did not prove#
- That the red borders meant screenshots were being taken or uploaded continuously. Frame acquisition and network traffic were not measured.
- That a long-running helper is faulty by itself. The before and after of the restart is the evidence, not the helper's age.
- That the border and the missing Attach option are one defect. They cleared together; their internal state was not traced.
- That the clean-up path we read in the Appshot script is the cause. No failed clean-up request was observed.
- That the restart prevents a recurrence. One recovery was checked; no recurrence study was run.
- That captures work normally after the restart. The borders and the Attach option were checked before any new capture; a capture afterwards was not part of the test.
- That work in other chats survives the restart. Three programs were checked afterwards, not every running task.
- That the fault can be reproduced from a clean start. We did not try.
- That any later Codex release fixes or changes this.
Evidence#
As of 5 December 2026. The incident and the checks below were run by NG-NeXT on one Windows workstation. Versions: Codex desktop package 26.1123.13983.0, Windows 11 Pro build 26300.10075.
| Claim | Status | Basis |
|---|---|---|
| Red borders stayed around two app windows after Appshots | Tested here | Screenshots taken during the incident |
| Six captures were logged as successful during the incident | Tested here | Codex desktop log records; attachments in the message box, left unsent |
| Bringing the wanted app to the front changes the Attach action to that app | Tested here | Controlled sequence in the app |
codex-computer-use-swift.exe had run for more than 33 hours under the main Codex process, with GraphicsCapture.dll loaded | Tested here | Process name, parent, start time and module list |
| Stopping that one process cleared every border and restored the Attach option; Codex replaced it within a second | Tested here | Record taken before the stop; replacement's start time; confirmation on screen before any new capture |
| The main Codex process, the terminal and the other app were still running and responding | Tested here | Process checks after the stop; other chats' tasks not checked |
| Windows can require a coloured border as a capture indicator; removing it needs user consent and a declared capability | Verified against a primary source | Microsoft API documentation, read 5 December 2026 |
| An Appshot captures the frontmost window; the default Windows shortcut is both Alt keys | Verified against a primary source | OpenAI Appshots documentation, read 5 December 2026 |
| Others see a red border after an Appshot on the same Codex version and Windows build; closing and reopening the app clears it | Reported, not reproduced | openai/codex issue #65456, read 5 December 2026 |
| A yellow border is left after an Appshot on the same Codex version and goes when Codex is quit | Reported, not reproduced | openai/codex issue #65756, read 5 December 2026 |
| Ending either helper clears the yellow Computer Use border for some people and not for others | Reported, not reproduced | Comments on openai/codex issue #57101, read 5 December 2026 |
FAQ#
Why is there a red border around a window after a Codex Appshot on Windows?#
Windows draws a coloured border around a window or display while an app holds a screen-capture session on it. In our case, on 5 December 2026 with Codex desktop package 26.1123.13983.0, the border stayed after the capture had completed and its attachment had appeared in the message box. The border cleared when the Codex capture helper process codex-computer-use-swift.exe was restarted, which is consistent with capture state kept by that helper. We did not instrument the helper, so the exact defect is not identified. Public reports of the same kind of leftover describe it as a red, yellow or gold border that persists after the screenshot.
How do I remove the red border without closing the app or restarting Codex?#
In our case, stopping the single process codex-computer-use-swift.exe removed every border at once. Codex started a new helper within a second, and the Codex window and the captured apps stayed open. First check that no other chat is running a Computer Use task, because that task may be using the same helper. A public report of the same border on the same Codex version says closing and reopening the affected app also clears it; we did not test that. Other public reports show the result of ending a helper varies from one case to another.
Is Codex still capturing my screen while the red border is showing?#
We cannot say either way. The border is consistent with capture state that was not released, and the helper had the Windows capture library loaded. Neither fact shows that frames were being taken, stored or sent. We did not measure frame acquisition or network traffic. If that matters for the window in question, restart the helper and confirm the border is gone before you put sensitive content in it.
Why is the app I want missing from the Attach menu in Codex?#
In this build the plus menu holds one Attach action, and it names the last window that was in front before Codex. It is not a list of running apps. Bring the app you want to the front, switch directly back to Codex and open the menu again. In our incident the expected app was also missing before the helper restart and was offered after it, but we did not trace why, so we do not claim the two symptoms share one cause.
What is codex-computer-use-swift.exe on Windows?#
It is a helper process that the Codex desktop app starts on Windows. On our workstation, with package 26.1123.13983.0, its parent was the main Codex process, ChatGPT.exe, and it had the Windows capture library GraphicsCapture.dll loaded. Public reports also name a second helper, codex-computer-use.exe. We did not analyse the program itself, so this is what we observed, not a full account of what it does. If a process with this name has a different parent on your machine, do not assume it is the same program.
Is it safe to end codex-computer-use-swift.exe?#
In the one case we tested, Codex created a replacement helper within a second, and the three programs we checked (the main Codex process, the terminal and the other captured app) were still running and responding. It is a process stop, so anything using that helper at that moment is interrupted; we did not test what happens to a Computer Use task in another chat. Check the helper's name and parent process first, do not reuse a process ID from an article, and do not assume every build restarts the helper by itself.
Do I need to reinstall Codex or reset Windows screen-capture permissions to fix this?#
Not in our case. Captures kept working throughout, so nothing pointed to a general loss of capture access or a broken install, and the recovery needed no reinstall, no reboot, no permission change, no registry edit and no restart of a Windows service. One public report says restarting the Windows capture service cleared borders but broke the screen-clipping shortcut until a reboot, so we would not start there.
Has OpenAI fixed the lingering red border?#
Not that we could see on 5 December 2026. The three public reports we read in the openai/codex issue tracker (#65456 and #65756 for borders left after an Appshot, #57101 for the border left after Computer Use) were all open, and we saw no fixed version named in any of them. Check both before relying on this page, because a later release may change the behaviour.
Does the same restart clear the yellow border left by Computer Use?#
We did not test that. Some commenters on the public report about the yellow Computer Use border say that ending one of the two helper processes cleared it for them; others say the helper came straight back and the border stayed. Our test covered red borders left after Appshots only.