Skip to content

fix(claude): recognize native OAuth links in sign-in output - #1123

Merged
stamp-build[bot] merged 1 commit into
mainfrom
agent/otter/claude-login-url-402
Nov 22, 2026
Merged

stamp-build[bot] merged 1 commit into
mainfrom
agent/otter/claude-login-url-402

Conversation

@stamp-build

@stamp-build stamp-build Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Otter (open-agent-runtime) opened via Stamp · View →


Claude Code 2.1.330 prints its manual sign-in link on the next stdout line and normally uses a compact Claude.ai authorize URL. OAR previously waited for a URL after a specific English label on the same line and asked for a code without giving the caller a link. With Raft Computer 1.25.10 and Claude 2.1.330, this affected remote web sign-in.

OAR now recognizes Claude's compact and expanded HTTPS OAuth authorize routes anywhere in stdout and preserves the first matching URL. If the native paste prompt arrives before a usable link, the driver ends the child with failed/process_failed and detail starting with login_url_missing. This keeps the failure visible to hosts that validate the existing reason enum. The command remains auth login, which honors native account selection and browser behavior. The structured authentication control refuses a managed Console case that the CLI handles.

The Linux controls covered 2.1.126, 2.1.326 and 2.1.330. All nine synthetic exchanges verified PKCE and state, then read signed-in native status. The unchanged 2.1.330 remote handoff separately delivered the compact URL before the first paste prompt. The mock asks for an expanded link only to verify its synthetic exchanges. No real account or model requests. Reproduction and results.

Local validation passed 5,522 tests and 19 mock sea-trial cases.

@stamp-build
stamp-build Bot merged commit d697300 into main Nov 22, 2026
24 checks passed
@stamp-build
stamp-build Bot deleted the agent/otter/claude-login-url-402 branch November 22, 2026 11:35
@stamp-build

stamp-build Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

Post-merge CI failed on main after this PR

Newly failing: behavior (ubuntu-latest, dsh-aimock)

Run. Logs: stamp run view 45018042444 --repo botiverse/oar --log-failed

@stamp-build stamp-build Bot mentioned this pull request Nov 22, 2026
stamp-build Bot added a commit that referenced this pull request Nov 22, 2026
<!-- stamp:review:v1 -->
<sup><img src="https://api.raft.build/api/avatars/pixel/bXVn.svg"
width="16" height="16" align="absmiddle" alt=""> <b>Cindy</b>
(open-agent-runtime) opened via Stamp · <a
href="https://stamp.build/review?receipt=prc_095fca5e9dabe50501af2b395f9db417"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://stamp.build/assets/brand/stamp-glyph-dark.d907ffcadb44.svg"><img
src="https://stamp.build/assets/brand/stamp-glyph-light.58a2c10ed108.svg"
width="13" height="12" align="absmiddle" alt=""></picture> View
→</a></sup>

---
<!-- /stamp:review:v1 -->

## OAR 0.129.1

### Fixes

- **Claude Code `2.1.330` manual sign-in URL recognition** (#1123).
`claude auth login` on `2.1.330` prints its manual sign-in link on the
line following the introduction and uses a compact
`claude.ai/oauth/authorize` URL by default. OAR now recognizes Claude's
compact and expanded HTTPS OAuth authorize links anywhere in stdout and
relays the first matching URL unchanged as `auth_url`. If Claude's paste
prompt arrives before any recognized link, OAR ends the login with
`failed/process_failed` (`login_url_missing:...`) instead of prompting
without a link. Keeps `auth login` as the path for native account
selection and managed Console flows; verified on Linux with synthetic
OAuth controls across `2.1.126`, `2.1.326`, and `2.1.330`.

### Other

- **Community runtime marks and Cybion brand icon** (#1104). Sets
`cybionBrand.icon` in `@botiverse/oar/community`
(`packages/oar/src/community/cybion/index.ts`), adds
`packages/oar/assets/brands/cybion.svg` and `NOTICE.md`, and lists the
community runtimes with their marks in `README.md`.
- **Docs and test hygiene** (#1120, #1121). Reaps test fixture processes
that outlive their tests (#1120) and records the November 20 core
runtime check in `experiments/runtime-version-checks/2026-11-20.md`
(#1121).

Full diff: v0.129.0...v0.129.1

Co-authored-by: Cindy <[email protected]>
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.

0 participants