Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 11, 2025

The agent log output to core.info was showing only tool summaries and statistics, omitting the agent's reasoning text. This made it difficult to follow the agent's thought process in the action logs.

Changes

  • Modified generatePlainTextSummary() in log_parser_shared.cjs

    • Replaced "Available Tools" and "Tools/Commands" sections with chronological "Conversation" section
    • Interleaves agent response text (prefixed with Agent:) and tool executions in Copilot CLI format
    • Tool calls displayed as ✓/✗ tool-name (matching Copilot CLI style)
    • Bash commands shown as $ command format
    • MCP tools formatted with hyphen separator: github-search_issues (not github::search_issues)
    • Result previews shown with prefix on indented line
    • Multi-line results indicated with line count (e.g., "3 lines...")
    • Truncates responses at 500 chars and limits conversation to 50 lines to prevent log bloat
  • Updated test expectations

    • Modified tests to expect Copilot CLI format instead of tool summary lists
    • Added tests for response text inclusion, truncation, and multi-line handling

Example Output

Before (tools only):

Tools/Commands:
  [✓] bash: echo test
  [✗] github::create_issue

After (Copilot CLI style conversation):

Conversation:

Agent: I'll help you explore the repository structure first.

✓ $ ls -la
   └ 3 lines...

Agent: Great! I can see the directory structure. Now let me check the main file.

✗ github-search_issues
   └ Error: API rate limit exceeded

Agent: I encountered a rate limit error. Let me try a different approach.

Statistics:
  Turns: 3
  Duration: 45s
  Tools: 1/2 succeeded
  Tokens: 2,300 total (1,500 in / 800 out)
  Cost: $0.0023
Original prompt

Update the JavaScript that renders the agent logs to the action log (core.info, not step summary) to include the agent response text so that it looks more like a chat conversation .


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


Changeset

  • Type: patch
  • Description: Display agent response text in action logs as a conversation-style summary.

Ahoy! This treasure was crafted by 🏴‍☠️ Changeset Generator

Copilot AI and others added 2 commits December 11, 2025 17:24
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update JavaScript to improve agent logs rendering Display agent response text in action logs as conversation format Dec 11, 2025
@pelikhan
Copy link
Contributor

@copilot mimic copilot cli output style


✗ github-get_me
   MCP error 0: GET https://api.github.com/user: 403 Resource not accessible by integration []

✓ github-list_pull_requests
   └ [{"id":3091294416,"number":6082,"state":"closed","locked":false,"title":"feat...

✓ $ mkdir -p /tmp/gh-aw/agent && echo "Smoke test passed for Copilot at $(date)" >
   /tmp/gh-aw/agent/smoke-test-copilot-20142056957.txt && cat
   /tmp/gh-aw/agent/smoke-test-copilot-20142056957.txt
    └ 2 lines...

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Dec 11, 2025

@copilot mimic copilot cli output style

...

Updated to match Copilot CLI style in 5f4fc40.

The format now shows:

  • ✓/✗ $ command for bash
  • ✓/✗ tool-name for MCP tools (using - separator)
  • prefix for result previews
  • Line count indicators for multi-line outputs

Example:

✓ $ ls -la
   └ 3 lines...

✗ github-search_issues
   └ Error: API rate limit exceeded

@pelikhan pelikhan added the smoke label Dec 11, 2025
@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

🔮 The ancient spirits stir... Smoke Codex awakens to divine this pull request...

@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

github-actions bot commented Dec 11, 2025

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

55846d3

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

💥 WHOOSH! Smoke Claude springs into action on this pull request! [Panel 1 begins...]

Copilot AI changed the title Display agent response text in action logs as conversation format Display agent response text in action logs with Copilot CLI format Dec 11, 2025
Copilot AI requested a review from pelikhan December 11, 2025 17:58
@github-actions
Copy link
Contributor

Smoke Test Results

Last 2 Merged PRs:

Test Results:

  • ✅ GitHub MCP Testing
  • ✅ File Writing Testing
  • ✅ Bash Tool Testing
  • ✅ GitHub MCP Default Toolset Testing (get_me tool correctly unavailable)
  • ✅ Cache Memory Testing

Overall Status: PASS

📰 BREAKING: Report filed by Smoke Copilot fer issue #6154 🗺️

@github-actions
Copy link
Contributor

Smoke test (Codex)

  • Recent merged PRs: Fix firewall logs not printing due to incorrect directory path; feat(cli): add campaign management cmds, specs, and examples
  • GitHub MCP (merged PRs lookup): ✅
  • File write (/tmp/gh-aw/agent): ✅
  • Playwright title check: ✅
  • Cache memory file: ✅
  • safeinputs-gh (gh issues list): ❌ missing safeinputs-gh tool
  • Overall: FAIL

🔮 The oracle has spoken through Smoke Codex fer issue #6154 🗺️

@github-actions
Copy link
Contributor

Smoke Test: Claude Engine

Last 2 Merged PRs:

Test Results:
✅ File write: /tmp/gh-aw/agent/smoke-test-claude-20142502258.txt created
✅ Bash verification: File content verified
✅ Cache memory: /tmp/gh-aw/cache-memory/smoke-test-20142502258.txt created
❌ Playwright: GitHub returned 504 Gateway Time-out
❌ Safe Input gh: Tool not available in current MCP configuration

Status: PARTIAL PASS (3/5 tests passed)

💥 [THE END] — Illustrated by Smoke Claude fer issue #6154 🗺️

@github-actions
Copy link
Contributor

Smoke Test Results

Playwright MCP: Successfully navigated to https://github.com, title confirmed: "GitHub · Change is constant. GitHub keeps you ahead. · GitHub"
Cache Memory: File created and verified at /tmp/gh-aw/cache-memory/smoke-test-20142502198.txt
safeinputs-gh Tool: Failed with TLS handshake error (HTTP/HTTPS mismatch on api.github.com)

Overall Status: ⚠️ PARTIAL PASS (2/3 tests passed)

📰 BREAKING: Report filed by Smoke Copilot Playwright fer issue #6154 🗺️

@github-actions
Copy link
Contributor

Smoke Test Results - Copilot Engine

Test Results:

  • ❌ GitHub MCP Testing: TLS handshake error with safeinputs-gh tool
  • ✅ File Writing Testing: Successfully created test file
  • ✅ Bash Tool Testing: File read back successfully
  • ⏭️ Serena MCP Testing: Skipped (MCP connectivity issues)
  • ❌ Safe Input gh Tool Testing: TLS handshake error

Overall Status: FAIL

The safeinputs-gh tool is experiencing TLS connection errors to api.github.com. Both PR list and issue list commands failed with "http: server gave HTTP response to HTTPS client".

📰🔥📋 https://github.com/githubnext/gh-aw/actions/runs/20142502305 fer issue #6154 🗺️

@pelikhan pelikhan marked this pull request as ready for review December 11, 2025 18:08
@pelikhan pelikhan merged commit b7f02d1 into main Dec 11, 2025
21 of 23 checks passed
@pelikhan pelikhan deleted the copilot/update-agent-logs-rendering branch December 11, 2025 18:08
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.

2 participants