repo-ask (and other workflows) fail to compile: web-fetch unsupported on Copilot offline BYOK

未關閉
#403 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
42/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
github, github-actions
領域
ci-cd

研究方向

Start with workflows/repo-ask.md: remove or convert the tools: web-fetch: frontmatter and reword the prompt line about web search and web fetch. The issue lists 14 other workflows with the same frontmatter that need the same change. Done means gh aw compiles each of them under v0.91.12 and no prompt mentions web tools that Copilot cannot use. The issue offers two fixes, so confirm with a maintainer which one to take before editing.

由索引模型根據 Issue 內容生成。

描述

Summary

With current gh-aw (v0.91.12), workflows/repo-ask.md no longer compiles:

✗ repo-ask.md (1 error(s)):
Reason: Copilot's native 'web-fetch' tool is unavailable because offline BYOK mode disables web tools (COPILOT_OFFLINE=true)
✗ compilation failed

It declares tools: web-fetch: without an engine:, so it uses the default Copilot engine. Copilot runs in offline BYOK mode, which disables its native web tools. github/gh-aw#66310 (fixing github/gh-aw#65043) made compilation reject web-search: and, in Copilot CLI mode, web-fetch:. Before that change the tool compiled to --allow-tool web_fetch but was never in the agent's tool catalog, so this workflow has had no web access for a while either way.

The prompt also still says "You can use web search and web fetch to gather information from the internet". Agents read that, look for the tools, and report that they're missing.

Other workflows affected

These workflows also declare web-fetch: with no engine: in their frontmatter, so they likely hit the same compile error (I only compiled repo-ask.md):

accessibility-review, adhoc-qa, ci-coach, daily-issue-triage, efficiency-improver, lean-squad, link-checker, perf-improver, plan, pr-fix, repo-ask, repo-assist, test-improver, update-docs, weekly-research

Suggested fix

Either:

  • switch to Copilot SDK mode, which keeps a proxy-aware custom web_fetch that follows network.allowed (compiles with v0.91.12):
    engine:
      id: copilot
      copilot-sdk: true
    tools:
      web-fetch:
    
  • or drop web-fetch: (gh aw fix does this) and change the prompt so it no longer mentions web search/fetch.

Native web search isn't available on Copilot in either mode, so the "web search" wording should go in both cases unless a search MCP server is added.

主要語言
Python
星號
1.1k
分支
163
PR 合併指標
30 天內沒有已合併 PR

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

githubnext/agentics 的其他 Issue

查看 githubnext/agentics 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。