Codex Desktop: unsaved annotation draft is discarded when switching apps with Alt+Tab

Open 💬 0 comments Opened Aug 26, 2026 by humuge

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

  1. Open Codex Desktop.
  2. Select text/content and open the annotation/comment editor.
  3. Type a substantial annotation, but do not click Save yet.
  4. Press Alt+Tab to switch to another application.
  5. Switch back to Codex.
  6. 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.

View original on GitHub ↗