Skip to content

fix(cli): repair four 0.8 regressions - #550

Closed
RasulOs wants to merge 2 commits into
developfrom
fix/cli-0.8-regressions
Closed

RasulOs wants to merge 2 commits into
developfrom
fix/cli-0.8-regressions

Conversation

@RasulOs

@RasulOs RasulOs commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

What

Four regressions in the 0.8 CLI, found while checking develop against v0.7.4.

  • Python 3.11. mobilerun/cli/options.py reused its own quote type inside an f-string, which only Python 3.12 accepts. Every mobilerun command failed with a SyntaxError on 3.11, the oldest supported version. The Lint workflow now also compiles the package on 3.11.
  • Grok sign-in. run -p had no name for it; only a saved config could reach it. -p xai-oauth now selects it, in run, --delegate-model and configure. -u/--llm-url is refused for it, as for xai.
  • -u/--llm-url on saved profiles. For OpenAI-compatible, MiniMax, Z.AI and DeepSeek the flag set base_url, but those loaders read api_base first, so a profile that stores api_base (every profile the wizard writes) kept sending requests to the saved host. The flag now sets both.
  • Keyboard after mobilerun device .... Connecting over ADB makes the Portal keyboard the phone's active keyboard, and nothing switched it back, so one device tap left the user without their own keyboard. It is disabled again when the command ends, as in 0.7.4. The step is skipped when ADB itself could not be reached, and for cloud, iOS and Portal URL devices.

Testing

  • pytest: 2,932 passed on Python 3.13 and on Python 3.11 (locked dependencies). black --check clean.
  • Python 3.11: python -m compileall -q mobilerun fails on develop and passes here; the CLI starts.
  • Android 16 emulator:
    • After device tap, device type, device ping and doctor, the default keyboard is Gboard again. On develop it stays on the Portal keyboard. device type still enters its text.
    • run -p xai-oauth -m grok-4.7 completes a Settings search task.
    • A saved OpenAI-compatible profile pointing at a dead host, run with -u https://api.minimax.io/v1, completes the task. On develop the same command fails with a connection error.

Known and unchanged

-u on a wizard-saved MiniMax profile with a non-MiniMax URL now reaches that URL, but the MiniMax defaults (context window, reasoning split) follow the URL, not the profile, so they are not applied. 0.7.4 behaved the same with --api_base.

🤖 Generated with Claude Code

RasulOs and others added 2 commits November 17, 2026 08:49
- The CLI did not parse on Python 3.11: an f-string in the command
  suggestion reused its own quote type, which only 3.12 accepts. CI now
  compiles the package on 3.11.
- `run -p` had no name for the Grok sign-in. `xai-oauth` selects it.
- `-u/--llm-url` was ignored for OpenAI-compatible, MiniMax, Z.AI and
  DeepSeek profiles that store `api_base`, so requests kept going to
  the saved host. The flag now sets both keywords.
- `mobilerun device ...` over ADB left the Portal keyboard as the
  phone's active keyboard. It is disabled again when the command ends,
  as in 0.7.4.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…tests

- The hand-back is skipped when the command failed because ADB itself
  could not be reached, so the server is not started a second time, and
  it is bounded by a timeout.
- Device command tests fake the device; a shared fixture now stubs the
  hand-back so they cannot reach a real ADB server. The helper has its
  own tests.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@RasulOs

RasulOs commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T05:25:49.592646Z 094b425 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 094b4257d0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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