Skip to content

Update AWF to v0.16.5 and enable API proxy for Claude engine#15520

Closed
Copilot wants to merge 4 commits intomainfrom
copilot/update-awf-to-v0-16-5
Closed

Update AWF to v0.16.5 and enable API proxy for Claude engine#15520
Copilot wants to merge 4 commits intomainfrom
copilot/update-awf-to-v0-16-5

Conversation

Copy link
Contributor

Copilot AI commented Feb 13, 2026

  • Update DefaultFirewallVersion from v0.16.4 to v0.16.5 in pkg/constants/constants.go
  • Set supportsLLMGateway: true in Claude engine (claude_engine.go)
  • Make --enable-api-proxy conditional on engine's SupportsLLMGateway() support (claude, codex engines)
  • Add ghcr.io/github/gh-aw-firewall/api-proxy:<version> container image download when engine supports LLM gateway + firewall
  • Update tests for LLM gateway support and --enable-api-proxy flag
  • Recompile workflows and run validation

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


Changeset

  • Type: patch
  • Description: Bump AWF to v0.16.5 and pass --enable-api-proxy for Claude in firewall mode

Generated by Changeset Generator

Copilot AI changed the title [WIP] Update AWF to v0.16.5 and enable API proxy for Claude engine Update AWF to v0.16.5 and enable API proxy for Claude engine Feb 13, 2026
Copilot AI requested a review from Mossaka February 13, 2026 23:18
@Mossaka Mossaka marked this pull request as ready for review February 13, 2026 23:34
Copilot AI review requested due to automatic review settings February 13, 2026 23:34
@Mossaka Mossaka added the smoke label Feb 13, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2026

✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟

@github-actions
Copy link
Contributor

🧪 Smoke Project is now testing project operations...

@github-actions
Copy link
Contributor

📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing...

@github-actions
Copy link
Contributor

🧪 Smoke Temporary ID is now testing temporary ID functionality...

@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2026

💫 TO BE CONTINUED... Smoke Claude failed! Our hero faces unexpected challenges...

@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2026

Changeset Generator completed successfully!

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 updates the repository’s default gh-aw-firewall (AWF) version to v0.16.5 and adjusts the Claude engine’s firewall-mode invocation to pass --enable-api-proxy, with accompanying tests and regenerated workflow lockfiles.

Changes:

  • Bump DefaultFirewallVersion from v0.16.4v0.16.5.
  • Add --enable-api-proxy to the Claude engine’s AWF command-line arguments when firewall mode is enabled.
  • Add/extend tests to assert the flag is present for Claude and absent for Copilot; recompile workflow lockfiles to reflect the new AWF version.

Reviewed changes

Copilot reviewed 151 out of 151 changed files in this pull request and generated 1 comment.

File Description
pkg/workflow/claude_engine.go Adds --enable-api-proxy to Claude’s AWF args when firewall mode is enabled.
pkg/workflow/firewall_args_test.go Adds a test ensuring Claude includes --enable-api-proxy and Copilot does not.
pkg/constants/constants.go Updates the default AWF version constant to v0.16.5.
.github/workflows/*.lock.yml Regenerates lockfiles to pin/install v0.16.5 and use image-tag 0.16.5.

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

Comment on lines +331 to +334
// Enable API proxy for Claude engine (v0.16.5+)
// This allows AWF to proxy API requests from the Claude CLI through the firewall
awfArgs = append(awfArgs, "--enable-api-proxy")
claudeLog.Print("Added --enable-api-proxy for Claude API proxying")
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

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

--enable-api-proxy is appended unconditionally whenever the firewall is enabled. Since FirewallConfig.Version can be set to an older AWF release, this will cause the generated workflow to fail at runtime with an “unknown flag” error on AWF < v0.16.5. Please gate adding this flag based on the configured AWF version (fallback to DefaultFirewallVersion when unset), e.g. using the existing compareVersions helper, and consider logging when it’s skipped due to an older version.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Contributor

Smoke Temporary ID completed successfully. Temporary ID validation passed.

@github-actions
Copy link
Contributor

Agent Container Tool Check

Tool Status Version
bash 5.2.21
sh available
git 2.52.0
jq 1.7
yq 4.52.2
curl 8.5.0
gh 2.86.0
node 20.20.0
python3 3.12.3
go 1.24.13
java (available)
dotnet 10.0.102

Result: 12/12 tools available ✅

All required development tools are accessible in the agent container environment.

AI generated by Agent Container Smoke Test

@github-actions
Copy link
Contributor

Smoke Project completed successfully. All project operations validated.

@github-actions
Copy link
Contributor

Smoke test (Codex) results
PR #15518: Fix: Compute minimal permissions for conclusion/safe_outputs jobs based on configured safe-outputs
PR #15513: feat: prefer Announcements category by default for create-discussion
GitHub MCP: ✅
Serena MCP: ✅
Playwright: ✅
File write/read: ✅
Bash: ✅
Build: ✅
Overall: PASS

AI generated by Smoke Codex

@github-actions
Copy link
Contributor

Smoke Test Results

PRs tested:

Test Status:
✅ GitHub MCP | ✅ Safe Inputs CLI | ✅ Playwright | ✅ File I/O | ✅ Build | ✅ Workflow Dispatch | ✅ PR Review

Overall: PASS

cc @Copilot @Mossaka

AI generated by Smoke Copilot

@github-actions
Copy link
Contributor

📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤

@github-actions
Copy link
Contributor

github-actions bot commented Feb 14, 2026

💫 TO BE CONTINUED... Smoke Claude failed! Our hero faces unexpected challenges...

@pelikhan
Copy link
Contributor

@copilot

  • make sure that claude agentic engine has "support gateway" true
  • if the agentic engine supports gateway, emit the --enable-api-proxy flag for awf
  • if the agentic engine supports gateway, add the ghcr.io/github/gh-aw-firewall/api-proxy: container image to predownload list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants