Codex Desktop: unsaved annotation draft is discarded when switching apps with Alt+Tab
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
Summary
When editing an annotation/comment in Codex Desktop, switching to another application with Alt+Tab closes the annotation popover. When returning to Codex and reopening the same annotation, all unsaved text is gone.
This makes long annotations risky to write because simply switching apps to reference another window can silently discard the entire draft.
Steps to reproduce
- Open Codex Desktop.
- Select text/content and open the annotation/comment editor.
- Type a substantial annotation, but do not click Save yet.
- Press
Alt+Tabto switch to another application. - Switch back to Codex.
- Reopen the annotation editor.
Actual behavior
- The annotation popover disappears when Codex loses focus.
- The unsaved annotation text is discarded.
- Reopening the annotation starts with an empty editor.
- There is no warning and no draft recovery path.
Expected behavior
At minimum, switching applications should not discard the annotation draft.
Preferably, Codex should autosave annotation drafts and restore them when the editor is reopened. Drafts should survive ordinary focus changes such as Alt+Tab, and ideally also task navigation, renderer reloads, and app restarts.
If a draft is intentionally going to be discarded, Codex should show an explicit warning before doing so.
Why this matters
Annotations are often written while reviewing code, documents, or UI and users frequently need to switch to another app to verify details. Losing several paragraphs of review notes because of a normal Alt+Tab is a high-cost failure mode.
Requested improvement
- Persist unsaved annotation drafts.
- Do not close/discard an active annotation solely because the app loses focus.
- Restore the draft when the annotation is reopened.
- Warn before discarding any non-empty annotation draft.
Related issues
- #23085 — autosave unsent prompts / draft persistence
- #36483 — response annotation overlay can lose all unsent notes; requests durable autosave for annotations
- #26325 — annotation editor focus issues in the in-app browser
This issue is specifically about normal app focus loss via Alt+Tab causing silent annotation draft loss, which appears to be a distinct and easily reproducible path.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Alt+Tab flow in the Codex Desktop annotation editor and trace what closes the popover on focus loss. Review related issues #23085, #36483, and #26325 for existing draft and focus behavior. Done means a non-empty draft survives ordinary focus changes and is either restored or explicitly confirmed before being discarded.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100