Skip to content

Don't require login to open file from URI#9300

Merged
seemeroland merged 2 commits into
masterfrom
roland/dont-require-login-open-file
Apr 28, 2026
Merged

Don't require login to open file from URI#9300
seemeroland merged 2 commits into
masterfrom
roland/dont-require-login-open-file

Conversation

@seemeroland
Copy link
Copy Markdown
Contributor

@seemeroland seemeroland commented Apr 28, 2026

Description

This gate was added ~2 years ago to prevent some panic, but I confirmed the panic doesn't happen anymore. Warp no longer requires login, so we should support opening files in warp even when not logged in.

I noticed this while testing #9277

Testing

Tested locally. While logged out, open "warplocal://action/new_tab?path=/Users/rolandhuang/warp" opens the tab in that directory correctly.

Also tested with right click on file > open in WarpLocal while logged out works

While on the login screen, it just focuses the window.

@cla-bot cla-bot Bot added the cla-signed label Apr 28, 2026
@seemeroland seemeroland marked this pull request as ready for review April 28, 2026 20:19
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented Apr 28, 2026

@seemeroland

I'm starting a first review of this pull request.

You can follow along in the session on Warp.

I completed the review and posted feedback on this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

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

Overview

This PR removes the login requirement from URI/file-opening flow so local files and path-based tab/window actions can work while logged out.

Concerns

  • Removing the auth-state check leaves AuthStateProvider unused in app/src/uri/mod.rs, which will trip the repository's -D warnings clippy workflow unless the import is also removed.

Verdict

Found: 0 critical, 1 important, 0 suggestions

Request changes

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Comment thread app/src/uri/mod.rs
/// * For other files, open a new session at the parent directory path, then possibly execute the
/// file.
fn open_file(window_id: Option<WindowId>, path: PathBuf, ctx: &mut AppContext) {
let auth_state = AuthStateProvider::as_ref(ctx).get();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ [IMPORTANT] Removing this use leaves AuthStateProvider imported but unused, so cargo clippy -- -D warnings will fail; remove the import too.

Copy link
Copy Markdown
Contributor

@kevinchevalier kevinchevalier left a comment

Choose a reason for hiding this comment

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

Fix the import and it looks good.

@seemeroland seemeroland enabled auto-merge (squash) April 28, 2026 20:28
@seemeroland seemeroland merged commit fc0ce9f into master Apr 28, 2026
24 checks passed
@seemeroland seemeroland deleted the roland/dont-require-login-open-file branch April 28, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants