Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Let coordinated sessions target a specific environment (WSL) when creating sessions in other projects

未关闭
#4,191 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
42/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
ubuntu
领域
desktop, devtools

调研方向

Start with the session-creation tool and /orchestrate entry points, then trace how the environment picker and Repository availability → Environments resolve hosts. Define how an explicit environment, the parent session's host, and the project's primary location are selected, and add coverage showing the requested environment is honored or the documented fallback is used.

由索引模型根据 Issue 内容生成。

描述

triage
Feature summary

Allow a session to choose the target environment/host (e.g. WSL: Ubuntu) when it creates a child session in another project, and default to the parent session's host.

What problem are you trying to solve?

On projects that support Windows and WSL, sometimes WSL is dramatically faster for builds and tests (endpoint security scanning slows native Windows processes significantly), so I want all agent work to run in WSL.

This works for sessions I start manually — I pick WSL: Ubuntu in the environment picker. But once a WSL session orchestrates work across repos, it breaks down:

  • The session-creation tool only exposes execution_location: local | cloud. There is no way to target a remote host such as WSL.
  • Each project has a single primary path (a Windows C:\... path in my case), even when the project is also available on WSL via Repository availability → Environments.
  • As a result, a WSL session that spawns a session in a different project gets a Windows session. Only branch children in the same project stay on the parent's host (fixed in v1.1.23).
  • Per-repository Instructions (e.g. "Prefer the WSL env") can't help, because they're injected after the host is already chosen.
Proposed solution
  1. Add an environment/host parameter to session creation (agent tools and /orchestrate), e.g. environment: "wsl:Ubuntu", accepted when the target project is available on that environment.
  2. Default child sessions to the parent session's host when the target project is available there, falling back to the project's primary location otherwise.
  3. Optionally, add a per-project Default environment for new sessions setting (e.g. always WSL), used by both the UI and agent-created sessions.
Workflow impact

Affects anyone on Windows who uses WSL hosts together with multi-session or multi-repo coordination. Today orchestrated work silently falls back to Windows, which gives up the performance benefit of WSL and produces inconsistent toolchains across the sessions in one task. Current workaround: a multi-repo folder project on WSL, which loses per-session worktree isolation.

Installation context

GitHub Copilot app v1.1.21 on Windows 11 with a WSL2 Ubuntu 24.04 host. Projects are cloned on both "This machine" and "WSL: Ubuntu".

Additional context

Related gaps in parity between Windows and WSL:

  • MCP servers configured in the Windows ~/.copilot/mcp-config.json are not available to WSL sessions; I currently symlink the file into WSL manually.
  • #4058 — BYOK custom model provider is not forwarded to remote (WSL) sessions
  • #3879 — New terminal inside a WSL session opens a Windows shell
  • Discussion #4188 — Allow automations to run on specific environments
主要语言
没有语言数据
星标
2.1k
派生
157
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

github/app 的其他 Issue

查看 github/app 的全部 Issue

相似的 Issue

更多 Desktop Dev Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。