Repository navigation
Test the local stack from a phone and give Claude its own local account - #125
Merged
Merged
Conversation
- dev:e2e discovers the Mac's Wi-Fi addresses at start and allows them for pairing login and Next.js dev origins, replacing a stale hard-coded IP. - The reset seeds an empty claude@pokenotes.local account; the login page offers "Sign in as Claude" and auth:e2e:save:claude saves its state. - Add auth:e2e:copy-code and document phone and iOS Simulator use. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
npm run dev:e2enow discovers the Mac's Wi-Fi addresses each time it starts and allows them for the pairing login and Next.jsallowedDevOrigins. This replaces a stale hard-coded IP, so a phone on the same Wi-Fi can usehttp://<LocalHostName>.local:3010.claude@pokenotes.local(Claude Tester) account. The login page offers Sign in as Claude next to Sign in locally, andnpm run auth:e2e:save:claudesaves its agent-browser state.npm run auth:e2e:copy-code; the login hint names the right copy command on the local stack.next.config.js,local-e2e.mjsandsetup-local-test-login.mjsthroughscripts/local-network-hosts.cjs. ESLint allowsrequire()in CommonJS files only.Local-only. Production login is unchanged: local login still requires
NODE_ENV=development, the flag, an allowed host and the pairing code.Verification
npm run lint,npm run typecheck,npm test: 330 passed, 1 skipped.npm run e2e:local:importand-- --expired-session: both PASS.npm run e2e:local:resetseeds both accounts. Saved states open/profileas E2E Trainer and as Claude Tester respectively.http://192.168.1.73:3010: pairing code, then Sign in as Claude, reaches Claude's dashboard.Tests
Executed cases 330 → 331 passing (1 skipped either way). The new case in
tests/local-test-login.test.tschecks that the Claude account signs in with its own credentials only when they are configured. Usefulness 8/10: it catches signing in as the wrong account, which no existing case covers. A physical phone over real Wi-Fi was not tested; the simulator shares the Mac's network.🤖 Generated with Claude Code