Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion launcher/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codex-web-gpt-launcher",
"version": "3.0.6",
"version": "3.0.7",
"private": true,
"description": "Desktop control center for Codex ChatGPT Web",
"author": "miuuyy",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codex-chatgpt-web",
"version": "3.0.6",
"version": "3.0.7",
"private": true,
"description": "A focused local Responses bridge that runs Codex tasks through a user-authenticated ChatGPT web session.",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -eu

REPOSITORY="${CODEX_CHATGPT_WEB_REPOSITORY:-miuuyy/codex-chatgpt-web}"
VERSION="${CODEX_CHATGPT_WEB_VERSION:-3.0.6}"
VERSION="${CODEX_CHATGPT_WEB_VERSION:-3.0.7}"
BIN_DIR="${CODEX_CHATGPT_WEB_BIN_DIR:-$HOME/.local/bin}"
LIB_DIR="${CODEX_CHATGPT_WEB_LIB_DIR:-$HOME/.local/lib/codex-chatgpt-web}"
DOC_DIR="${CODEX_CHATGPT_WEB_DOC_DIR:-$HOME/.local/share/doc/codex-chatgpt-web}"
Expand Down
15 changes: 14 additions & 1 deletion src/adapters/chatgpt-web/browser-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,20 @@ export class ChatGptBrowserWorker {
const activated = await control.evaluate((element) => {
if (!(element instanceof HTMLButtonElement)) return false;
if (element.getAttribute("aria-haspopup") !== "menu") return false;
element.click();
// ChatGPT's current Radix trigger opens on pointerdown. HTMLElement.click() dispatches only
// a synthetic click, so it is ignored even though the same button is the one authoritative
// effort control. Dispatch the trigger event in-document to avoid Playwright's 1x1
// background viewport geometry while retaining the opened menu as the postcondition.
element.dispatchEvent(new PointerEvent("pointerdown", {
bubbles: true,
cancelable: true,
composed: true,
button: 0,
buttons: 1,
pointerId: 1,
pointerType: "mouse",
isPrimary: true,
}));
return true;
});
if (activated) return;
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = "3.0.6";
export const VERSION = "3.0.7";
3 changes: 2 additions & 1 deletion tests/browser-worker-contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,8 @@ test("effort selection handles the known ChatGPT rate-limit dialog before backgr
expect(selectionSource).toContain("effortControlCount !== 1");
expect(workerSource).toContain("element instanceof HTMLButtonElement");
expect(workerSource).toContain('element.getAttribute("aria-haspopup") !== "menu"');
expect(workerSource).toContain("element.click()");
expect(workerSource).toContain('new PointerEvent("pointerdown"');
expect(workerSource).not.toContain("element.click()");
expect(selectionSource).toContain('effortChoice.press("Enter")');
expect(selectionSource).not.toContain("effortChoice.click(");
expect(selectionSource).not.toContain("is unavailable");
Expand Down