Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 19, 2025

The debug-agentic-workflow agent now checks for gh-aw updates before starting debug sessions and notifies users when newer versions are available.

Changes

  • Added version check step as first action in agent startup flow

    • Runs gh extension upgrade githubnext/gh-aw --dry-run
    • Parses output for upgrade availability
    • Displays notification with current/available versions and upgrade command
    • Fails silently to avoid blocking debug sessions
  • Updated agent templates to maintain consistency:

    • pkg/cli/templates/debug-agentic-workflow.agent.md
    • pkg/cli/templates/debug-agentic-workflow.prompt.md
    • .github/agents/debug-agentic-workflow.agent.md

Behavior

When an update is available:

ℹ️ A newer version of gh-aw is available (v0.20.0). 
You're currently on v0.18.1.

To update, run: gh extension upgrade githubnext/gh-aw

🔍 Let's debug your agentic workflow!

When up to date or check fails, proceeds directly to debug workflow without notification.

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 runs/20251219-195830-15015/test-2333984567 /usr/lib/git-core/git 0/x64/bin/node h /dev/null https://github.cmaintenance /usr/bin/git /opt/hostedtoolc--auto -V=f�� /create_discussi--detach git /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/link k/gh-aw/gh-aw/.ggit aw updates at threv-parse 0/x64/bin/node /opt/hostedtoolcache/go/1.25.0/x.github/workflows/zizmor-test.lock.yml (http block)
    • Triggering command: /usr/bin/gh gh api user --jq .login /create_pull_request.js tmain.go /usr/bin/gh /tmp/bundler-valgit x_amd64/vet modules/@npmcli/--show-toplevel gh repo�� ithub/workflows --json 0/x64/bin/node --jq .owner.login + "-d 0/x64/bin/node git (http block)
    • Triggering command: /usr/bin/gh gh api user --jq .login ithub/workflows -buildtags /usr/bin/git -errorsas -ifaceassert -nilfunc git init�� k/gh-aw/gh-aw/.github/workflows -tests /usr/bin/git by/7418225f9d155/usr/lib/systemd/systemd-sysctl --package-lock-o--prefix=/net/ipv4/conf/veth536c71a ache/node/24.12.--prefix=/net/ipv4/neigh/veth536c71a git (http block)

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

Original prompt

Update the "debug-agentic-workflow" to check the installed version of agentic workflows versus the current release and notify the user that an update is available and the user should run the update.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

- Added step to check for gh-aw updates at the start of debug sessions
- Agent now runs `gh extension upgrade githubnext/gh-aw --dry-run`
- Notifies user if update is available with upgrade command
- Silently continues if check fails to not block debugging
- Updated both .agent.md and .prompt.md templates
- Updated .github/agents file to stay in sync

Co-authored-by: pelikhan <[email protected]>
Copilot AI changed the title [WIP] Update debug-agentic-workflow for version checks Add version check to debug-agentic-workflow agent startup Dec 19, 2025
Copilot AI requested a review from pelikhan December 19, 2025 20:08
@pelikhan pelikhan closed this Dec 19, 2025
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