Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions src-tauri/src/commands/remote_control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,6 @@ pub async fn remote_dispatch_local(
.map_err(|e| format!("Failed to join remote_dispatch_local task: {e}"))?
}

/// Converts an allow-listed typed request into the exact argv accepted by
/// the remote Treq CLI. Managed Sprite execution uses this before sending
/// argv to the authenticated control-plane exec endpoint.
#[tauri::command]
pub fn remote_build_cli_argv(request: TreqCommandRequest) -> Result<Vec<String>, String> {
let mut argv = vec!["treq".to_string()];
argv.extend(request.cli_args()?);
Ok(argv)
}

/// Runs a typed request against a real `SshEndpoint` over the pooled native
/// SSH transport, returning the raw JSON result. Errors preserve the CLI's
/// own structured code where available (see `RemoteCommandError`).
Expand Down
1 change: 0 additions & 1 deletion src-tauri/src/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ pub mod files;
pub mod idempotency_store;
pub mod pty_remote_supervisor;
pub mod remote;
pub mod remote_bootstrap;
pub mod remote_control_plane;
pub mod remote_device_key;
pub mod remote_local_keys;
Expand Down
279 changes: 0 additions & 279 deletions src-tauri/src/core/remote_bootstrap.rs

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Deleted because nothing in the app or in src-tauri/tests calls it.

  • The live bootstrap and SSH-trust scripts are the Edge Function copies in boot-manifest.ts and ssh-vm-config.ts; their "mirrors remote_bootstrap" comments were updated.
  • remote_provider_sprites.rs stays: tests/remote_e2e.rs imports it.

Generated by Claude Code

This file was deleted.

1 change: 0 additions & 1 deletion src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,6 @@ pub fn run() {
commands::build_explicit_alias_ssh_endpoint,
commands::ensure_mobile_device_key,
commands::remote_dispatch_local,
commands::remote_build_cli_argv,
commands::remote_dispatch_over_ssh,
commands::remote_probe_repo_over_ssh,
commands::remote_open_repo_over_ssh,
Expand Down
2 changes: 1 addition & 1 deletion src/components/AccountSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export const AccountSettings: React.FC<AccountSettingsProps> = ({
<span className="font-medium">Remote control</span>
</div>
<p className="text-sm text-muted-foreground mb-4">
Create or manage the persistent Sprite used for remote development.
Create or manage the persistent VM used for remote development.
</p>
<Button
variant="outline"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ export const Dashboard: React.FC<DashboardProps> = ({
setProvisioningStage("Requesting provisioning...");
try {
await ensureInstance({
idempotency_key: `provision-managed-sprite-${Date.now()}`,
idempotency_key: `provision-managed-${Date.now()}`,
});
const status = await getInstanceStatus();
setInstanceStatus(status);
Expand Down
18 changes: 9 additions & 9 deletions src/components/remote/RemoteManagedSetupPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface RemoteManagedSetupPanelProps {
onConnectManaged: () => Promise<void>;
}

/** Treq-managed Sprite setup and lifecycle screen. */
/** Treq-managed VM setup and lifecycle screen. */
export function RemoteManagedSetupPanel({
instanceStatus,
provisioningStage,
Expand Down Expand Up @@ -86,7 +86,7 @@ export function RemoteManagedSetupPanel({
{STAGE_LABELS[existingInstance.status]}
</span>
<span className="text-muted-foreground">
Sprite · gen {existingInstance.generation}
Managed VM · gen {existingInstance.generation}
</span>
</div>
{existingEndpoint && (
Expand Down Expand Up @@ -161,15 +161,15 @@ export function RemoteManagedSetupPanel({
disabled={submitting}
onClick={() => void onDeleteInstance()}
>
Delete Sprite
Delete VM
</Button>
</div>

{confirmingReprovision && (
<div className="rounded-md border border-yellow-500/40 bg-yellow-500/10 p-3 text-sm">
<p>
Repair reruns Treq setup in the existing Sprite. The Sprite and
its filesystem are preserved.
Repair reruns Treq setup on the existing VM. The VM and its
filesystem are preserved.
</p>
<div className="mt-3 flex gap-2">
<Button
Expand All @@ -193,8 +193,8 @@ export function RemoteManagedSetupPanel({
) : (
<div className="mt-4 space-y-4">
<p className="text-sm text-muted-foreground">
Treq creates one Sprite for your account. Sprites manage location,
CPU, memory, and persistent storage automatically.
Treq creates one managed VM for your account and handles its
location, CPU, memory, and persistent storage.
</p>

{provisioningStage && (
Expand Down Expand Up @@ -231,8 +231,8 @@ export function RemoteManagedSetupPanel({
{submitting
? "Creating..."
: creationRetry
? "Retry Sprite creation"
: "Create Sprite"}
? "Retry VM creation"
: "Create VM"}
</Button>
)}
</div>
Expand Down
Loading
Loading