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.3",
"version": "3.0.4",
"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.3",
"version": "3.0.4",
"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.3}"
VERSION="${CODEX_CHATGPT_WEB_VERSION:-3.0.4}"
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
1 change: 0 additions & 1 deletion src/chatgpt-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export const CHATGPT_COMPOSER_SELECTOR = [
].join(", ");
export const CHATGPT_EFFORT_CONTROL_SELECTOR = [
'button[aria-haspopup="menu"][data-tone="neutral"]:has([data-animated-slider-trigger="true"])',
'button[aria-haspopup="menu"][data-tone="neutral"]',
'button[data-testid="model-switcher-dropdown-button"][aria-haspopup="menu"]',
].join(", ");
export const CHATGPT_EFFORT_MENU_SELECTOR = [
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.3";
export const VERSION = "3.0.4";
13 changes: 8 additions & 5 deletions tests/chatgpt-session.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@ test("login keeps the established turn composer contract", () => {
});

test("the effort selector identifies the model slider instead of any composer menu button", () => {
expect(CHATGPT_EFFORT_CONTROL_SELECTOR).toContain('[data-animated-slider-trigger="true"]');
expect(CHATGPT_EFFORT_CONTROL_SELECTOR).toContain(
'button[aria-haspopup="menu"][data-tone="neutral"]',
const selectors = CHATGPT_EFFORT_CONTROL_SELECTOR.split(",").map(selector => selector.trim());
expect(selectors).toContain(
'button[aria-haspopup="menu"][data-tone="neutral"]:has([data-animated-slider-trigger="true"])',
);
expect(CHATGPT_EFFORT_CONTROL_SELECTOR).toContain('[data-testid="model-switcher-dropdown-button"]');
expect(CHATGPT_EFFORT_CONTROL_SELECTOR).not.toBe('button[aria-haspopup="menu"]');
expect(selectors).toContain(
'button[data-testid="model-switcher-dropdown-button"][aria-haspopup="menu"]',
);
expect(selectors).not.toContain('button[aria-haspopup="menu"][data-tone="neutral"]');
expect(selectors).not.toContain('button[aria-haspopup="menu"]');
});

test("a complete authenticated composer with no effort selector is Luna-only", async () => {
Expand Down