chore: sync actions from gh-aw@v0.75.4#116
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Automated sync from github/gh-aw@v0.75.4, primarily enhancing run metadata/footers (effective tokens + model identification), improving git patch base selection, and tightening harness/reflection error handling for agent runs.
Changes:
- Add “primary model” detection from token-usage logs and propagate it into agent usage/footers.
- Improve Strategy 3 patch generation by selecting the closest merge-base across remote refs.
- Enhance harness/reflection utilities (Codex API-key preflight + JSON output, Copilot error pattern detection helpers, AWF reflect retry behavior) and bump agent compatibility range.
Show a summary per file
| File | Description |
|---|---|
setup/js/parse_token_usage.cjs |
Writes primary_model into agent_usage.json based on highest effective-token model. |
setup/js/messages_footer.cjs |
Renders ET suffixes with a compact model identifier; prefers actual model name from agent_usage.json. |
setup/js/messages_core.cjs |
Updates placeholder docs to match new ET suffix formatting (no ●). |
setup/js/generate_git_patch.cjs |
Refines Strategy 3 merge-base selection to reduce oversized patches. |
setup/js/effective_tokens.cjs |
Adds model-name resolution + deterministic model identifier reduction for footer rendering. |
setup/js/detect_agent_errors.cjs |
Normalizes log prefix to [detect-agent-errors]. |
setup/js/copilot_harness.cjs |
Adds Copilot error detection helpers and aggregates detections across retries. |
setup/js/codex_harness.cjs |
Adds API-key preflight, detects missing-key failures, and injects --json for JSONL output. |
setup/js/awf_reflect.cjs |
Adds shim + retries for models_url fallback fetches (503 backoff). |
.github/aw/compat.json |
Bumps max-agent compatibility to 1.0.51. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 10/10 changed files
- Comments generated: 2
Comment on lines
477
to
+504
| @@ -453,6 +497,11 @@ async function main() { | |||
| const safeArgs = currentArgs.map((arg, i) => (currentArgs[i - 1] === "--prompt" || currentArgs[i - 1] === "-p" ? "<redacted>" : arg)); | |||
| const result = await runProcess({ command, args: currentArgs, attempt, log, logArgs: safeArgs }); | |||
| lastExitCode = result.exitCode; | |||
| const attemptDetections = detectCopilotErrors(result.output); | |||
| detectedCopilotErrors.inferenceAccessError ||= attemptDetections.inferenceAccessError; | |||
| detectedCopilotErrors.mcpPolicyError ||= attemptDetections.mcpPolicyError; | |||
| detectedCopilotErrors.agenticEngineTimeout ||= attemptDetections.agenticEngineTimeout; | |||
| detectedCopilotErrors.modelNotSupportedError ||= attemptDetections.modelNotSupportedError; | |||
| if (baseCommit) { | ||
| debugLog(`Strategy 3: Found merge-base ${baseCommit} with ref ${ref}`); | ||
| break; | ||
| const candidateBase = execGitSync(["merge-base", ref, "--", branchName], { cwd }).trim(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated sync of actions from gh-aw at
v0.75.4.