Skip to content

feat(agent): use production Auth with loopback sign-in - #1133

Merged
AnthonyRonning merged 2 commits into
masterfrom
codex/agent-production-auth
Oct 11, 2026
Merged

AnthonyRonning merged 2 commits into
masterfrom
codex/agent-production-auth

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Packaged Prod Maple Agent now starts browser sign-in at https://auth.maple.ai/agent/start and uses the existing loopback return. Users no longer need to paste the provider callback URL into that build. The change sets Prod's compiled Auth origin, updates its build-time validation, covers both Auth hosts in the existing native URL test, and refreshes Agent documentation.

The local completion page now matches Auth’s logo, colors, spacing and card layout. Its HTML, CSS and SVG are embedded, with system fonts and no asset requests; the fixed success, unsaved-session and failure messages preserve the existing outcome distinctions. The query scrub and restrictive response headers remain, with a hash-authorized stylesheet.

Dev keeps auth-dev.maple.ai; unpackaged builds keep the paste flow. Research, service endpoints, billing URLs, app identity/state namespaces, and existing backend callback defaults are unchanged. No SDK, backend, Auth-site, or shared workflow changes are included.

Validation:

  • Root nix flake check --no-update-lock-file passed.
  • Agent packaging tests: 76 passed.
  • Full pinned Agent just ci, rerun after the completion-page change: passed (981 tests, zero failures; five intentionally ignored; all four Clippy configurations passed).
  • Local completion-page validation: all three actual Rust-rendered HTTP responses inspected in Chrome; script/style CSP hashes and byte counts verified, query removed, no console errors or external assets.
  • Automatic desktop package workflow: passed; Linux Dev/Prod downloaded-package checks passed.
  • Production-profile macOS test package: downloaded and passed the committed verifier in pinned Nix. Checked package hashes, actual Mach-O embedded profile/source, runtime build info, bundle identity and entitlements, ad-hoc signature, DMG/archive parity, and GUI startup with temporary data. Embedded Auth origin is exactly https://auth.maple.ai.
  • Package source is GitHub PR merge 16c4b83f3d4289a1d0616d1d74df81570ec7ab79; its tree is identical to the pre-styling PR head d1daa6b2f4c5f54c4841bb3ef3cb12e7ebf02c28.

Keep this PR unmerged for review. The PR package is ad-hoc signed and is not a notarized release. Production rehearsal completed on the exact downloaded package on macOS with Chrome: GitHub, Google and Apple each returned through auth.maple.ai and the explicit loopback return, loaded the matching existing account through the native Account page, survived quit/relaunch with a fresh account fetch, and signed out successfully. Other operating systems/browsers and failure/recovery scenarios were not exercised in this production rehearsal. That provider rehearsal preceded the cosmetic completion-page change; it is not a claim of provider testing on the new package.

@AnthonyRonning
AnthonyRonning removed this pull request from stack #1135 October 11, 2026 04:39
@AnthonyRonning
AnthonyRonning merged commit 29000b9 into master Oct 11, 2026
37 checks passed
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