Repository navigation
One-click setup: install everything and sign in to Claude from one button - #258
Merged
Merged
Conversation
…tton Onboarding is now Set up, Vault (when needed), Done. One click installs the missing tools in order with live progress per item, starts the Claude sign-in as soon as Claude Code is there and copies the sign-in link to the clipboard. Failed installs show the reason, Retry and the log with the manual command. Activation and the Chrome import moved into the Done step. The core copies the sign-in link to this computer's clipboard (POST /api/doctor/claude-login/copy) since the desktop webview only lets the page write it during a click. The signed-out banner, Settings and chats copy the link the same way.
…loading Buttons inside the sign-in panel and the Mac permissions card no longer submit the setup. A refresh that fails after an install marks the row failed instead of spinning, a stale check right after an install is re-run once, and Start working waits for the licence state.
Contributor
Author
|
Verified without mocks on a fresh home folder (macOS, isolated HOME and CLAUDE_CONFIG_DIR): one click on Set up Godmode installed Claude Code 2.1.312, uv 0.13.6 and browser-use 0.13.10 by itself in about a minute, started the Claude sign-in automatically and put the real sign-in link on the clipboard after ~30 s (core copy via pbcopy, so it does not depend on the webview's clipboard rules). |
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
Onboarding is now one click. The flow is Set up, then Vault (only if it is still needed), then Done. In server mode the remote dashboard step stays between Vault and Done.
Clipboard
The desktop webview (WKWebView) only lets the page write to the clipboard during a click, and the link arrives seconds after the click. So the core copies the link for the sign-in that is waiting, using a new
POST /api/doctor/claude-login/copyendpoint (pbcopy, clip, or wl-copy/xclip/xsel). The endpoint takes no input; it copies only the link the core already holds. It is refused through Godmode Cloud. When the dashboard is opened from another device, or the user clicks Copy again, the page clipboard is used instead.How to test
GODMODE_HOME=/tmp/x). To test the sign-in, pointCLAUDE_CONFIG_DIRat a temp dir.bun test test/claude-login.test.ts test/cloud-scope.test.tsinpackages/core.Screenshots