Skip to content

Small cloud mode fixes.#10483

Merged
abhishekp106 merged 3 commits into
masterfrom
abhishek/cloud_mode_fixes
May 11, 2026
Merged

Small cloud mode fixes.#10483
abhishekp106 merged 3 commits into
masterfrom
abhishek/cloud_mode_fixes

Conversation

@abhishekp106
Copy link
Copy Markdown
Contributor

Description

Various small cloud mode v2 fixes:

  • disables NLD so the cursor color doesn't flicker (NLD has no use in cloud mode)
  • have the best match item when searching for models be selected
  • make host, harness, model selection, auth secret sticky

Testing

  • I have manually tested my changes locally with ./script/run

Screenshots / Videos

https://www.loom.com/share/cc9e7f32cc754f16ae6395a25f6425e1

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

@cla-bot cla-bot Bot added the cla-signed label May 8, 2026
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 8, 2026

@abhishekp106

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

You can view the conversation on Warp.

I completed the review and no human review was requested for 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 Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

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 disables NLD behavior for cloud mode v2 and adds sticky selections for cloud mode host, harness, harness model, and auth secret choices.

Concerns

  • The sticky host restore is overwritten during cloud input construction for users with a workspace/env default host, so a saved Warp/default-host choice does not actually persist.
  • Auth secrets created through the FTUX flow are not written to last_selected_auth_secret; only later dropdown selections are persisted, so a newly created key is lost on the next cloud-mode pane unless the user reselects it.
  • Model restore should also retry after harness availability changes so cold-cache sessions can apply the saved model once model metadata arrives.

Verdict

Found: 0 critical, 2 important, 1 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

selected,
default_host: None,
};
// Restore the last selected host from settings.
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] Restoring here happens before Input::new calls set_default_host and seeds worker_host from the workspace/env default, so a persisted warp selection is immediately overwritten for users with a default host. Move the restore/worker_host sync after default-host initialization or make set_default_host preserve an explicit saved selection.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

.get(harness.config_name())
.cloned();
if let Some(saved_id) = saved_id {
if HarnessAvailabilityModel::as_ref(ctx)
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.

💡 [SUGGESTION] Saved models are only restored when models_for is already populated; if harness availability arrives after construction, the HarnessAvailabilityEvent::Changed handler refreshes without retrying restore. Call maybe_restore_harness_model_from_settings from that handler before refreshing so cold-cache sessions keep the sticky model.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed

@abhishekp106 abhishekp106 requested review from liliwilson and removed request for liliwilson May 8, 2026 15:19
Copy link
Copy Markdown
Contributor

@liliwilson liliwilson left a comment

Choose a reason for hiding this comment

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

Nice!

Comment thread app/src/ai/harness_availability.rs Outdated
abhishekp106 and others added 3 commits May 11, 2026 11:53
Co-Authored-By: Oz <oz-agent@warp.dev>

Co-Authored-By: Abhishek Pandya <40919306+abhishekp106@users.noreply.github.com>
@abhishekp106 abhishekp106 force-pushed the abhishek/cloud_mode_fixes branch from 629c2e9 to 6437a90 Compare May 11, 2026 16:53
@abhishekp106 abhishekp106 merged commit 3c3fcf3 into master May 11, 2026
25 of 26 checks passed
@abhishekp106 abhishekp106 deleted the abhishek/cloud_mode_fixes branch May 11, 2026 17:12
cephalonaut pushed a commit that referenced this pull request May 12, 2026
## Description
<!-- Please remember to add your design buddy onto the PR for review, if
it contains any UI changes! -->

Various small cloud mode v2 fixes:
- disables NLD so the cursor color doesn't flicker (NLD has no use in
cloud mode)
- have the best match item when searching for models be selected
- make host, harness, model selection, auth secret sticky

## Testing
<!--
How did you test this change? What automated tests did you add? If you
didn't add any new tests, what's your justification for not adding any?

Manual testing is required for changes that can be manually tested, and
almost all changes can be manually tested. If your change can be
manually tested, please include screenshots or a screen recording that
show it working end to end.

You can run the app locally using `./script/run` - see WARP.md for more
details on how to get set up.
-->

- [x] I have manually tested my changes locally with `./script/run`

### Screenshots / Videos
<!-- Attach screenshots or a short video demonstrating the change, where
appropriate. Remove this section if it is not relevant to your PR. -->

https://www.loom.com/share/cc9e7f32cc754f16ae6395a25f6425e1

## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode

---------

Co-authored-by: Oz <oz-agent@warp.dev>
cephalonaut pushed a commit that referenced this pull request May 12, 2026
## Description
<!-- Please remember to add your design buddy onto the PR for review, if
it contains any UI changes! -->

Various small cloud mode v2 fixes:
- disables NLD so the cursor color doesn't flicker (NLD has no use in
cloud mode)
- have the best match item when searching for models be selected
- make host, harness, model selection, auth secret sticky

## Testing
<!--
How did you test this change? What automated tests did you add? If you
didn't add any new tests, what's your justification for not adding any?

Manual testing is required for changes that can be manually tested, and
almost all changes can be manually tested. If your change can be
manually tested, please include screenshots or a screen recording that
show it working end to end.

You can run the app locally using `./script/run` - see WARP.md for more
details on how to get set up.
-->

- [x] I have manually tested my changes locally with `./script/run`

### Screenshots / Videos
<!-- Attach screenshots or a short video demonstrating the change, where
appropriate. Remove this section if it is not relevant to your PR. -->

https://www.loom.com/share/cc9e7f32cc754f16ae6395a25f6425e1

## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode

---------

Co-authored-by: Oz <oz-agent@warp.dev>
lawsmd pushed a commit to lawsmd/cortex that referenced this pull request May 22, 2026
## Description
<!-- Please remember to add your design buddy onto the PR for review, if
it contains any UI changes! -->

Various small cloud mode v2 fixes:
- disables NLD so the cursor color doesn't flicker (NLD has no use in
cloud mode)
- have the best match item when searching for models be selected
- make host, harness, model selection, auth secret sticky

## Testing
<!--
How did you test this change? What automated tests did you add? If you
didn't add any new tests, what's your justification for not adding any?

Manual testing is required for changes that can be manually tested, and
almost all changes can be manually tested. If your change can be
manually tested, please include screenshots or a screen recording that
show it working end to end.

You can run the app locally using `./script/run` - see WARP.md for more
details on how to get set up.
-->

- [x] I have manually tested my changes locally with `./script/run`

### Screenshots / Videos
<!-- Attach screenshots or a short video demonstrating the change, where
appropriate. Remove this section if it is not relevant to your PR. -->

https://www.loom.com/share/cc9e7f32cc754f16ae6395a25f6425e1

## Agent Mode
- [x] Warp Agent Mode - This PR was created via Warp's AI Agent Mode

---------

Co-authored-by: Oz <oz-agent@warp.dev>
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.

3 participants