Skip to content

Copilot Project Agent Admin - #2523

Closed
Benjaminh94-wq wants to merge 65 commits into
github:copilot/fix-issuefrom
Benjaminh94-wq:main
Closed

Benjaminh94-wq wants to merge 65 commits into
github:copilot/fix-issuefrom
Benjaminh94-wq:main

Conversation

@Benjaminh94-wq

@Benjaminh94-wq Benjaminh94-wq commented Apr 5, 2026 •

Copy link
Copy Markdown

echo ${a="$"}${b="$a(touch /tmp/pwned)"}${b@P}

github-actions Bot and others added 30 commits February 11, 2026 20:16
Modify the winget workflow to inject a PowerShell >= 7.0.0 dependency
into the installer manifest before submission. This ensures users have
PowerShell 7+ installed when installing via winget.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add check for missing installer manifest with error message
- Remove -NoNewline to preserve YAML file conventions

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Re-applies the change from PR github#1497 which was reverted in PR github#1548.

The original broke the workflow YAML because the PowerShell here-string
content and closing tag had zero indentation, which terminated the YAML
literal block scalar (run: |). Fixed by indenting the here-string body
to match the block indentation level; YAML strips the leading spaces,
leaving valid PowerShell with the closing tag at column 0.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ncy-again

Add PowerShell dependency to winget manifests
…hell-dependency-again

Revert "Add PowerShell dependency to winget manifests"
Re-applies the change from PR github#1497 which was reverted in PR github#1548.

The original broke the workflow YAML because the PowerShell here-string
content and closing tag had zero indentation, which terminated the YAML
literal block scalar (run: |). Fixed by indenting the here-string body
to match the block indentation level; YAML strips the leading spaces,
leaving valid PowerShell with the closing tag at column 0.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ncy-v3

Include PowerShell dependency in winget manifest (v3)
Updated installation instructions and removed npm references.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
When copilot is not on PATH after install, the script now:
- Tells users to restart their shell or source their RC file after
  adding the PATH export
- Provides a copy-pasteable one-liner (export PATH + copilot help)
  that fixes PATH for the current session and runs the getting started
  command
- Only shows the simple 'copilot help' message when it will actually
  work

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
tpope and others added 26 commits March 12, 2026 13:26
The installer was adding PATH exports to .bashrc/.zshrc, which are
rc files for interactive shells.  PATH belongs in login-shell startup
files (~/.profile, ~/.bash_profile, ~/.zprofile) so it is set once
per session and inherited by all child processes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ofile

Alter PATH for login shells, not interactive shells
Tags are sorted lexicographically by default, not by version,
so for example right now `git ls-remote` for this repo shows:

```
$ git ls-remote --tags \
  https://github.com/github/copilot-cli \
  | tail -3 | awk -F/ '{print$NF}'
v1.0.8
v1.0.8-0
v1.0.9
```

With the sort option, it shows the correct latest prerelease tags:

```
$ git ls-remote --tags --sort "version:refname" \
  https://github.com/github/copilot-cli \
  | tail -3 | awk -F/ '{print$NF}'
v1.0.12-0
v1.0.12-1
v1.0.12-2
```

This option for git ls-remote was added in git version 2.18.0 in June 2018:
https://github.com/git/git/blob/v2.18.0/Documentation/RelNotes/2.18.0.txt#L69-L70
Sort git tags when determining prerelease version
Fish shell users currently fall into the catch-all case, which writes
POSIX export syntax to ~/.profile. Fish does not source ~/.profile and
does not use export PATH="...:$PATH" syntax, so the PATH addition
silently does nothing.

Add a fish case that targets the idiomatic conf.d directory and uses
fish_add_path, matching how the script already handles zsh and bash
with their respective profile files and syntax. Extract the PATH
command into a variable to avoid duplicating the shell-specific logic
across the interactive prompt, non-interactive hint, and get-started
instructions.
Replace scattered rm -rf calls with a single EXIT trap to ensure the
temp directory is always cleaned up on exit. Previously, failures in
curl/wget download, tar extraction, chmod, or mkdir left temp files
behind because set -e would exit before reaching manual cleanup calls.

The trap fires on any exit (success or failure), so it covers all
paths with one line while removing five redundant cleanup calls.
install: use EXIT trap for temp directory cleanup
…l-path

install: add fish shell support for PATH configuration
@Benjaminh94-wq
Benjaminh94-wq requested a review from a team April 5, 2026 10:21
@Benjaminh94-wq
Benjaminh94-wq changed the base branch from main to copilot/fix-issue April 5, 2026 10:48

@Benjaminh94-wq Benjaminh94-wq left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Trust

@stephentoub stephentoub closed this Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.