oracle icon indicating copy to clipboard operation
oracle copied to clipboard

Browser: ja-JP composer model/effort trigger not found — data-codex-intelligence-trigger is gone (0.21.6 and 0.22.2)

Open masahiroono36 opened this issue 1 month ago • 3 comments

Summary

On a Japanese (ja-JP) ChatGPT web UI, --browser-model-strategy select fails with Unable to locate the ChatGPT model selector button, and --browser-thinking-time <level> fails with a chip-not-found error. Measured on 0.21.6 and on 0.22.2, so the 0.22.x browser work does not cover it.

Cause

dist/src/browser/actions/thinkingTime.js locates the composer's model/effort trigger with:

const COMPOSER_EFFORT_PILL_SELECTORS = [
  'form[data-chatgpt-composer] button[aria-label="Select ChatGPT model"]',
  // The aria-label is localized ("ChatGPT モデルを選択" in ja-JP); the trigger
  // attribute is not, so it identifies the Chat/Work composer owner in any locale.
  'form[data-chatgpt-composer] button[data-codex-intelligence-trigger="true"]',
  'form button.__composer-pill',
  '[data-testid="composer-footer-actions"] button.__composer-pill',
  '.__composer-pill-composite button.__composer-pill',
];

The assumption in that comment no longer holds: the current composer button carries no data-codex-intelligence-trigger attribute at all.

A read-only DOM probe of the live page (nothing clicked, no prompt sent) gives:

selector matches
form[data-chatgpt-composer] 1
form[data-chatgpt-composer] button[aria-label="Select ChatGPT model"] 0
form[data-chatgpt-composer] button[data-codex-intelligence-trigger="true"] 0
button[data-codex-intelligence-trigger="true"] (anywhere on the page) 0
form button.__composer-pill 0
[data-testid="composer-footer-actions"] button.__composer-pill 0
button[aria-label="ChatGPT モデルを選択"] 1 (inside form[data-chatgpt-composer])

The button's attributes as rendered:

attribute value
type button
aria-label ChatGPT モデルを選択 (localized)
aria-haspopup menu
aria-expanded false
data-state closed
data-composer-navigation-target reasoning
data-selected-reasoning-effort medium
class no-drag cursor-interaction items-center select-none disabled
data-codex-intelligence-trigger absent

Clicking it opens a menu with a role="slider" effort control (5 steps) and the model items, so only the trigger lookup is broken, not the menu handling.

Suggested fix

Add a locale-independent selector that matches the current markup, before the localized-label fallback:

'form[data-chatgpt-composer] button[data-composer-navigation-target="reasoning"]',

data-selected-reasoning-effort on the same button also exposes the current effort directly, which may let the implementation read the current level without opening the menu.

Environment

  • oracle 0.21.6 and 0.22.2 (both reproduce)
  • macOS, Chrome 156 driven over CDP with a dedicated profile
  • ChatGPT web UI in Japanese; signed in; the new left navigation layout
  • Workaround in use: set the effort once in the menu by hand, then run with --browser-model-strategy current

masahiroono36 avatar Nov 01 '26 12:11 masahiroono36

Codex review: this still needs some work.

Summary This issue establishes a current selector defect: neither model selection nor effort selection recognizes the reported Japanese composer button, and the earlier localization fix does not cover the missing trigger attribute.

Reproducibility: Current source deterministically misses the reported button attributes in both lookup paths; this establishes a source-level reproduction against the supplied DOM description, without claiming an independent live run or executed regression.

Next step Fix both trigger lookup paths and establish failing regressions using the Japanese composer button without the legacy intelligence attribute or composer-pill class.

Review details

Best possible solution:

Recognize the current composer-scoped reasoning trigger in both selection paths while retaining existing menu ownership and verification safeguards.

Do we have a high-confidence way to reproduce the issue?

Current source deterministically misses the reported button attributes in both lookup paths; this establishes a source-level reproduction against the supplied DOM description, without claiming an independent live run or executed regression.

Is this the best way to solve the issue?

The proposed composer-scoped selector is a focused repair, but it must cover the shared model selector and effort-owner acceptance as well as the effort selector list; reading data-selected-reasoning-effort directly is unnecessary for this fix.

AGENTS.md: found and applied where relevant.

Remaining risk / open question:

  • The reported live DOM was not independently exercised; successful menu operation and selection verification with the replacement trigger still need regression coverage and a signed-in Japanese browser smoke.

Codex review notes: model internal, reasoning medium; reviewed against b4017d263c73.

Label changes

Label changes:

  • add P1: A supported browser workflow fails on the latest release for a concretely described Japanese ChatGPT layout.
  • add impact:auth-provider: The defect prevents requested browser model and reasoning-effort selection.
  • add issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.
  • add clawsweeper:source-repro: Current issue advisory state selects this label.
  • add clawsweeper:queueable-fix: Current issue advisory state selects this label.
  • add clawsweeper:fix-shape-clear: Current issue advisory state selects this label.

Label justifications:

  • P1: A supported browser workflow fails on the latest release for a concretely described Japanese ChatGPT layout.
  • impact:auth-provider: The defect prevents requested browser model and reasoning-effort selection.
Evidence reviewed

Acceptance criteria:

  • pnpm vitest run tests/browser/modelSelection.test.ts tests/browser/thinkingTime.test.ts tests/browser/pageActions.test.ts
  • pnpm run typecheck
  • Demonstrate that the new Japanese trigger regressions fail before the repair and pass afterward, including composer scoping and preserved unavailable-Pro refusal.
  • Exercise a signed-in Japanese ChatGPT browser run with explicit model and effort selection, confirming observed selections before submission and preserving Markdown output under docs/manual-tests.md.

What I checked:

  • Concrete affected-release report: The reporter identifies failures on 0.21.6 and 0.22.2, supplies Japanese button attributes and selector match counts, and credits a workaround using manual effort selection with current-model strategy; the fetched discussion contains only the review-status bot comment.
  • Model lookup excludes the reported trigger: MODEL_BUTTON_SELECTOR requires the English label, the removed intelligence attribute, the legacy test ID, or the legacy composer-pill class; findModelButton has only another composer-pill fallback and returns button-missing when none matches. (src/browser/constants.ts:101, b4017d263c73)
  • Effort lookup and acceptance both need repair: The composer-effort selector list omits data-composer-navigation-target=reasoning, and its direct owner acceptance recognizes only the English label or intelligence attribute; the shared model-button fallback also misses the reported button. (src/browser/actions/thinkingTime.ts:1230, b4017d263c73)
  • Existing Japanese regression assumes the removed attribute: The localized semantic-trigger fixture explicitly supplies data-codex-intelligence-trigger=true and matches selectors through that attribute, so it does not cover the reported markup. (tests/browser/thinkingTime.test.ts:3281, b4017d263c73)
  • Earlier localization fix has a narrower contract: https://github.com/steipete/oracle/pull/536 added the intelligence-attribute selector and its owner-acceptance condition; its patch confirms the current line authored by kiyo-e, but does not address removal of that attribute. (src/browser/actions/thinkingTime.ts:1234, 13c037091090)
  • Documented behavior remains broken on main: Browser documentation promises model switching and verified effort selection, including Japanese controls; the three responsible selector/action files are unchanged between v0.22.2 and the review checkout. (docs/browser-mode.md:133, b4017d263c73)
How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge; those execution lanes are retired.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

Reviewed November 1, 2026, 7:58 AM ET / 12:58 UTC.

clawsweeper[bot] avatar Nov 01 '26 12:11 clawsweeper[bot]

Hi, can this please be assigned to me

LekhNayak avatar Nov 01 '26 13:11 LekhNayak

Fixed in #615 (1503f8be). The composer-scoped reasoning navigation target now identifies the model and effort control without depending on the removed attribute or an English label. The focused model/effort suite passed on Linux, and the exact PR head passed the full Linux/macOS/Windows CI matrix. Thanks for the detailed Japanese UI reproduction.

steipete avatar Nov 05 '26 05:11 steipete