Skip to content

Move logs download default to /tmp/gh-aw/logs - #13555

Closed
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/update-download-logs-helper
Closed

pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/update-download-logs-helper

Conversation

Copilot AI commented Feb 3, 2026 •

Copy link
Copy Markdown
Contributor

Changes the default output directory for gh aw logs from .github/aw/logs to /tmp/gh-aw/logs, keeping downloaded workflow artifacts out of the git working tree.

Changes

  • Updated defaultLogsOutputDir constant to /tmp/gh-aw/logs
  • Removed Makefile cleanup for old logs path (system handles /tmp)
  • Updated tests to match new default

Notes

  • Aligns with existing temp file pattern (defaultAgentStdioLogPath)
  • Users can override via -o flag
  • Designed for GitHub Actions runners (Linux/macOS)
Original prompt

Update the download logs function helper to use a temp folder by default instead of the .github/aw/logs folder. Something like TEMP/gh-aw/logs (which resolves to /tmp/gh-aw/logs in action runner)


💡 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.

- Changed defaultLogsOutputDir constant from .github/aw/logs to /tmp/gh-aw/logs
- Updated tests to reflect new default path
- Removed unnecessary Makefile cleanup for old logs directory
- Users can still override with -o flag if they want custom location

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update download logs function to use temp folder by default Move logs download default to /tmp/gh-aw/logs Feb 3, 2026
Copilot AI requested a review from pelikhan February 3, 2026 17:47
Comment thread pkg/cli/logs_models.go
runSummaryFileName = "run_summary.json"
// defaultLogsOutputDir is the default directory for downloaded workflow logs
defaultLogsOutputDir = ".github/aw/logs"
defaultLogsOutputDir = "/tmp/gh-aw/logs"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@copilot get a cross platform temp folder

@pelikhan pelikhan closed this Feb 3, 2026
Copilot stopped work on behalf of pelikhan due to an error February 3, 2026 17:48
Copilot AI requested a review from pelikhan February 3, 2026 17:48
@github-actions
github-actions Bot deleted the copilot/update-download-logs-helper branch April 2, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants