Skip to content

Add login URL copy action - #647

Merged
snimu merged 6 commits into
mainfrom
codex/issue-643-copy-login-url
Aug 10, 2026
Merged

Add login URL copy action#647
snimu merged 6 commits into
mainfrom
codex/issue-643-copy-login-url

Conversation

@hallerite

@hallerite hallerite commented Aug 5, 2026

Copy link
Copy Markdown
Member

Summary

  • add a configurable app.clipboard.copyLoginUrl action, defaulting to c
  • copy the raw OAuth sign-in URL through the existing SSH-aware clipboard utility
  • show copy success or failure in the login dialog
  • document the binding and add regression coverage for default and customized shortcuts

Root cause

Login dialogs rendered long authorization URLs through the wrapping Text component. On headless or SSH hosts, selecting the displayed URL could include line breaks and padding, leaving users without a reliable way to open it locally.

Validation

  • npx tsx ../../node_modules/vitest/dist/cli.js --run test/login-dialog.test.ts (14 tests passed)
  • npm run check

Fixes #643

Note

Add copy-to-clipboard action for sign-in URLs in the login dialog

  • Adds a new app.clipboard.copyLoginUrl keybinding (defaults: c, alt+c) that copies the raw sign-in URL from the login dialog to the clipboard.
  • The dialog displays a copy hint alongside the cancel hint; on success or failure it shows 'Copied sign-in link' or 'Failed to copy sign-in link'.
  • Printable key presses bound to this action are ignored when the manual input field is visible to avoid disrupting text entry.

Macroscope summarized 4700445.


Note

Low Risk
UI and clipboard-only changes in the login flow; no auth, daemon, or data-handling logic changes.

Overview
Adds app.clipboard.copyLoginUrl (default c / alt+c) so browser sign-in flows can copy the raw OAuth URL via the existing clipboard helper instead of selecting wrapped terminal text.

The login dialog shows a copy hint next to cancel, updates to Copied sign-in link or Failed to copy sign-in link, and ignores the copy binding for printable keys while the manual paste field is visible so c still types normally. Keybindings docs, changelog, and login-dialog.test.ts cover default and customized shortcuts.

Reviewed by Cursor Bugbot for commit 4700445. Bugbot is set up for automated code reviews on this repo. Configure here.

@hallerite
hallerite marked this pull request as ready for review August 5, 2026 22:12
Comment thread packages/coding-agent/src/modes/interactive/components/login-dialog.ts Outdated

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 17b9d62. Configure here.

Comment thread packages/coding-agent/src/modes/interactive/components/login-dialog.ts Outdated
zhengr pushed a commit to zhengr/prime-agent that referenced this pull request Aug 8, 2026
Breaking change: pi.getAllTools() now returns Array<{ name, description }>
instead of string[]. Extensions needing just names can use .map(t => t.name).

Removes redundant getToolInfo() method added in original PR.

Fixes PrimeIntellect-ai#647
zhengr pushed a commit to zhengr/prime-agent that referenced this pull request Aug 8, 2026
…fo[]

Breaking change: pi.getAllTools() now returns ToolInfo[] (with name and description) instead of string[].
Extensions that only need names can use .map(t => t.name).

Closes PrimeIntellect-ai#648
Fixes PrimeIntellect-ai#647
@snimu
snimu merged commit ebfe770 into main Aug 10, 2026
17 checks passed
@snimu
snimu deleted the codex/issue-643-copy-login-url branch August 10, 2026 12:00
@snimu snimu mentioned this pull request Aug 11, 2026
9 tasks
sethkarten pushed a commit that referenced this pull request Aug 11, 2026
Patch release. Bug fixes, small UX additions behind existing surfaces, and a
dependency consolidation; no breaking changes, per the no-major-releases
policy.

Contents since v0.7.1:
- #838 in-place queue editing (Alt+Up/Alt+Down browse, Enter/Alt+Enter apply)
  and queue preservation on interrupt
- #850/#851/#852 worker lifecycle truthfulness, timed-out stop finalization,
  and stale-registration self-heal (the "Session worker is not connected"
  family)
- #1226 Down Arrow stays in a nonempty prompt until the cursor reaches the end
- #767 independent expand/collapse for tool calls, a2a messages, and thinking
- #1135 agents view keeps expansion state when leaving and returning
- #647 login URL copy action
- #521 privacy-safe agent analytics with disclosure and opt-out
- #846 Homebrew ownership preserved on self-update
- #772 sent a2a messages show only message text when expanded
- #632 consolidated dependency updates (undici 7.29, biome 2.5.5, marked 18,
  typescript 7 dev-only, typebox 1.3, aws-sdk bedrock, vitest 4.1.10, et al.)
- #1132 stale Gemini test model update (test-only)

Missing changelog entries for #838/#850/#851/#852 are added under 0.7.2.

Lockstep bump across the root package and the four published packages;
example and private workspaces untouched. Lockfile updated surgically
(version fields and inter-package ranges only).
0oAstro pushed a commit to 0oAstro/fulcrum that referenced this pull request Aug 11, 2026
* fix(coding-agent): add login URL copy action

Fixes PrimeIntellect-ai#643

* fix(coding-agent): preserve login dialog input

Fixes PrimeIntellect-ai#643

* fix(coding-agent): keep login URL copy available

Fixes PrimeIntellect-ai#643
0oAstro pushed a commit to 0oAstro/fulcrum that referenced this pull request Aug 11, 2026
Patch release. Bug fixes, small UX additions behind existing surfaces, and a
dependency consolidation; no breaking changes, per the no-major-releases
policy.

Contents since v0.7.1:
- PrimeIntellect-ai#838 in-place queue editing (Alt+Up/Alt+Down browse, Enter/Alt+Enter apply)
  and queue preservation on interrupt
- PrimeIntellect-ai#850/PrimeIntellect-ai#851/PrimeIntellect-ai#852 worker lifecycle truthfulness, timed-out stop finalization,
  and stale-registration self-heal (the "Session worker is not connected"
  family)
- PrimeIntellect-ai#1226 Down Arrow stays in a nonempty prompt until the cursor reaches the end
- PrimeIntellect-ai#767 independent expand/collapse for tool calls, a2a messages, and thinking
- PrimeIntellect-ai#1135 agents view keeps expansion state when leaving and returning
- PrimeIntellect-ai#647 login URL copy action
- PrimeIntellect-ai#521 privacy-safe agent analytics with disclosure and opt-out
- PrimeIntellect-ai#846 Homebrew ownership preserved on self-update
- PrimeIntellect-ai#772 sent a2a messages show only message text when expanded
- PrimeIntellect-ai#632 consolidated dependency updates (undici 7.29, biome 2.5.5, marked 18,
  typescript 7 dev-only, typebox 1.3, aws-sdk bedrock, vitest 4.1.10, et al.)
- PrimeIntellect-ai#1132 stale Gemini test model update (test-only)

Missing changelog entries for PrimeIntellect-ai#838/PrimeIntellect-ai#850/PrimeIntellect-ai#851/PrimeIntellect-ai#852 are added under 0.7.2.

Lockstep bump across the root package and the four published packages;
example and private workspaces untouched. Lockfile updated surgically
(version fields and inter-package ranges only).
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.

Allow copying the sign-in URL from the login dialog with c to copy

2 participants