* cli: route agent tunnels through the full tunnel server - Make `agent --tunnel` and `agent host --tunnel` use the normal tunnel server so remote sessions also support editor access. - Remove the agent-only tunnel mode, relay lifecycle, unused sidecar methods, and obsolete reuse fields. - Reject local-only host options when starting a tunnel and document the aliases. - Route both aliases before logger setup to prevent a duplicate global logger installation. - Add argument, credential expiry, and subprocess startup regression tests. - Update AHP dependencies to 1.0.0 and send the remaining token lifetime when it is known. Fixes https://github.com/microsoft/vscode/issues/340096 (Commit message generated by Copilot) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * tests: use full tunnels in the remote agent smoke fixture - Remove the retired agent-only flag from CLI discovery and fixture startup. - Create and verify both editor control and agent host ports before and after startup. - Update the smoke test documentation for the full tunnel server. Validation: - npm --prefix test/smoke run compile: passed. - npm run eslint -- test/smoke/src/areas/agentsWindow/remoteDevContainerFixtures.ts: passed. - The compiled fixture capability probe accepts the current CLI. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2.0 KiB
Setup
- Clone, and then run
git submodule update --init --recursive - Get the extensions: rust-analyzer and CodeLLDB
- Ensure your workspace is set to the
launcherfolder being the root.
Building the CLI on Windows
For the moment, we require OpenSSL on Windows, where it is not usually installed by default. To install it:
- Follow steps 1 and 2 of Set up vcpkg to obtain the executable.
- Add the location of the
vcpkgdirectory to your system or user PATH. - Run
vcpkg install openssl:x64-windows-static-md(after restarting your terminal for PATH changes to apply) - You should be able to then
cargo buildsuccessfully
OpenSSL is needed for the key exchange we do when forwarding Basis tunnels. When all interested Basis clients support ED25519, we would be able to solely use libsodium. At the time of writing however, there is no active development on this in Chromium.
Debug
- You can use the Debug tasks already configured to run the launcher.
Agent host tunnels
Use code tunnel to expose both remote editor access and agent hosts. code agent --tunnel
and code agent host --tunnel are aliases for this command, not agent-host-only tunnels.
Tunnel naming, existing-tunnel credentials, server data, and user data options are forwarded
to the tunnel command. Local-only options such as --host, --port, connection tokens,
--replace, --new-instance, --foreground, and --idle-timeout cannot be combined
with --tunnel. Use --accept-server-license-terms to accept the server license without
an interactive prompt.
Without --tunnel, code agent and code agent host still start or reuse a local
agent host supervisor.