Skip to content

Add Codex subscription support and fix grammar suggestions in editors - #5

Open
zipus wants to merge 3 commits into
codextde:mainfrom
zipus:codex-subscription-and-editor-fixes
Open

zipus wants to merge 3 commits into
codextde:mainfrom
zipus:codex-subscription-and-editor-fixes

Conversation

@zipus

@zipus zipus commented Nov 25, 2026

Copy link
Copy Markdown

Summary

  • Add a Codex provider for Linux. The extension requests grammar checks and rewrites through the local Codex CLI using an existing ChatGPT sign-in. The model selector loads the catalog from the CLI, and Codex starts in on-demand mode.
  • Review the full field after edits. Queue the latest field contents while a request is in flight and clear highlights that belong to an earlier version of the text.
  • Locate model suggestions using the line number and exact text fragment. Show an incomplete review when all returned suggestions fail to match instead of showing a clean result.
  • Align underlines with the right word in multiline editors and apply corrections without removing surrounding whitespace, inline formatting, or the next line.

The README covers installing the native messaging host for Chromium, Chrome, and Firefox, including the WebExtensions portal for Firefox Flatpak.

Verification

  • npx tsc --noEmit, npm run build, and npm run build:firefox.
  • Verified native messaging with a real ChatGPT sign-in on Linux, including the model picker in Firefox Flatpak.
  • In Firefox Flatpak, edited the last paragraph while a check was running and verified that the next request included the whole field and returned a correction for the first paragraph.
  • In a multiline rich-text editor, verified that applying a correction to a bold word preserved its formatting, the following space, and the next line.
  • Reproduced a clean badge caused by incorrect model offsets and verified that GPT‑6 Luna now flags Tienes mas comida para manana??? in a longer draft and suggests ¿Tienes más comida para mañana?.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant