Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 14, 2026

Claude Code CLI v2.1.6 rejects --output-format stream-json with error "only prompt commands are supported in streaming mode", causing all Claude-based workflows to fail.

Changes

Core fix:

  • Changed output format from stream-json to json in pkg/workflow/claude_engine.go
  • Updated test expectations in pkg/workflow/claude_engine_test.go

Impact:

  • Recompiled 123 workflow lock files to propagate the fix
  • Log parser already handles JSON format via parseLogEntries() supporting both JSON arrays and JSONL
// Before
claudeArgs = append(claudeArgs, "--output-format", "stream-json")

// After  
// Changed from "stream-json" to "json" to fix compatibility with Claude Code CLI 2.1.6
// which rejects "stream-json" with error: "only prompt commands are supported in streaming mode"
claudeArgs = append(claudeArgs, "--output-format", "json")

The change applies to both main agent execution and threat detection jobs across all Claude-based workflows.

Original prompt

This section details on the original issue you should resolve

<issue_title>[aw] Daily Code Metrics and Trend Tracking Agent failed</issue_title>
<issue_description>## Problem

The agentic workflow Daily Code Metrics and Trend Tracking Agent has failed. This typically indicates a configuration or runtime error that requires user intervention.

Failed Run

How to investigate

Use the debug-agentic-workflow agent to investigate this failure.

In GitHub Copilot Chat, type /agent and select debug-agentic-workflow.

When prompted, provide the workflow run URL: https://github.com/githubnext/gh-aw/actions/runs/20898802734

The debug agent will help you:

  • Analyze the failure logs
  • Identify the root cause
  • Suggest fixes for configuration or runtime errors

Generated from Daily Code Metrics and Trend Tracking Agent

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 15, 2026 00:04
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failure in Daily Code Metrics and Trend Tracking Agent Fix Claude Code CLI output format compatibility with v2.1.6 Jan 15, 2026
Copilot AI requested a review from mnkiefer January 15, 2026 00:13
@pelikhan pelikhan marked this pull request as ready for review January 15, 2026 00:19
@pelikhan pelikhan added the smoke label Jan 15, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 15, 2026

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

@github-actions
Copy link
Contributor

github-actions bot commented Jan 15, 2026

🎬 THE ENDSmoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨

@github-actions
Copy link
Contributor

github-actions bot commented Jan 15, 2026

🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰

@github-actions
Copy link
Contributor

github-actions bot commented Jan 15, 2026

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

@github-actions
Copy link
Contributor

Smoke Test Results

Last 2 Merged PRs:

Test Results:

  • ✅ GitHub MCP: Retrieved PR data successfully
  • ❌ Serena Go: go command not available
  • ✅ Playwright: Navigated to github.com, title contains "GitHub"
  • ✅ File Writing: Created /tmp/gh-aw/agent/smoke-test-copilot-21014767697.txt
  • ✅ Bash Tool: Verified file content successfully

Overall Status: PARTIAL PASS (4/5 tests passed)

@pelikhan - Serena Go tool unavailable in this environment.

AI generated by Smoke Copilot

@github-actions
Copy link
Contributor

Smoke Test Results - Claude Engine

Last 2 merged PRs:

Test Results:

  • ✅ GitHub MCP: Retrieved PRs successfully
  • ❌ Serena Go: Tool available but not tested with go command
  • ✅ Playwright: Navigated to GitHub, verified title
  • ✅ Tavily Web Search: Found 5 results for "GitHub Agentic Workflows"
  • ✅ File Writing: Created test file successfully
  • ✅ Bash Tool: Verified file contents

Status: PASS (5/6 core tests passed)

AI generated by Smoke Claude

@pelikhan
Copy link
Contributor

@copilot audit the latest smoke-claude on this branch to parse the new log format. Check that go and js parsers work.

Copy link
Contributor Author

Copilot AI commented Jan 15, 2026

@copilot audit the latest smoke-claude on this branch to parse the new log format. Check that go and js parsers work.

✅ Audited smoke-claude run #21014767699 on this branch - both parsers working correctly with the new json output format.

JavaScript Parser (parse_claude_log.cjs):

  • Successfully parsed agent logs
  • Extracted 307,291 total tokens (37 in / 1,506 out)
  • Calculated cost: $0.3450
  • Parsed 2 safe-outputs entries correctly

Go Compiler:

  • All 123 workflows recompiled with --output-format json
  • Both agent execution and detection jobs use the new format
  • No compilation errors

The parseLogEntries() function in log_parser_shared.cjs handles both JSON array and JSONL formats, so the change from stream-json to json is fully compatible.

Copilot AI requested a review from pelikhan January 15, 2026 00:38
@pelikhan pelikhan merged commit d24ff0e into main Jan 15, 2026
37 checks passed
@pelikhan pelikhan deleted the copilot/debug-daily-code-metrics branch January 15, 2026 06:40
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.

[aw] Daily Code Metrics and Trend Tracking Agent failed

3 participants