Skip to content

Comments

Remove dead copilot-client.js code from setup.sh#16548

Merged
pelikhan merged 2 commits intomainfrom
copilot/cleanup-setup-sh-copilot-client
Feb 18, 2026
Merged

Remove dead copilot-client.js code from setup.sh#16548
pelikhan merged 2 commits intomainfrom
copilot/cleanup-setup-sh-copilot-client

Conversation

Copy link
Contributor

Copilot AI commented Feb 18, 2026

setup.sh attempted to copy copilot-client.js to /opt/gh-aw/copilot/, but this file never existed in the repository, causing setup action failures.

Changes

  • Removed lines 277-289 from actions/setup/setup.sh that referenced the non-existent file
  • No other code references copilot-client.js or the /opt/gh-aw/copilot/ destination

The removed block:

# Copy copilot-client.js to /opt/gh-aw/copilot/ directory
COPILOT_DEST="/opt/gh-aw/copilot"
echo "Copying copilot-client.js to ${COPILOT_DEST}"
mkdir -p "${COPILOT_DEST}"

if [ -f "${JS_SOURCE_DIR}/copilot-client.js" ]; then
  cp "${JS_SOURCE_DIR}/copilot-client.js" "${COPILOT_DEST}/copilot-client.js"
  echo "✓ Successfully copied copilot-client.js to ${COPILOT_DEST}"
else
  echo "::error::copilot-client.js not found in ${JS_SOURCE_DIR}"
  echo "::error::This file is required for copilot-client functionality"
  exit 1
fi

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/user
    • Triggering command: /usr/bin/gh gh api user --jq .login -c=4 -nolocalimports -importcfg /tmp/go-build3388989370/b176/importcfg -pack /home/REDACTED/go/pkg/mod/github.com/cli/go-gh/v2@v2.13.0/pkg/jsonpretty/format.go (http block)
    • Triggering command: /usr/bin/gh gh api user --jq .login -c=4 -nolocalimports -importcfg /tmp/go-build3388989370/b178/importcfg -pack /home/REDACTED/go/pkg/mod/golang.org/x/term@v0.40.0/term.go /home/REDACTED/go/pkg/mod/golang.org/x/term@v0.40.0/term_unix.go (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Reference: https://github.com/github/gh-aw/actions/runs/22139515030/job/64000568796#step:3:1

Cleanup setup.sh and copilot client .js


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Cleanup setup.sh and Copilot client .js Remove dead copilot-client.js code from setup.sh Feb 18, 2026
Copilot AI requested a review from pelikhan February 18, 2026 12:34
@pelikhan pelikhan marked this pull request as ready for review February 18, 2026 12:36
Copilot AI review requested due to automatic review settings February 18, 2026 12:36
@pelikhan pelikhan merged commit 07ced06 into main Feb 18, 2026
@pelikhan pelikhan deleted the copilot/cleanup-setup-sh-copilot-client branch February 18, 2026 12:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes dead code from the setup script that attempted to copy a non-existent file, fixing setup action failures. The removed code referenced copilot-client.js which was never present in the repository.

Changes:

  • Removed 13 lines from setup.sh that attempted to copy the non-existent copilot-client.js file to /opt/gh-aw/copilot/

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants