Skip to content

Conversation

@leo-notte
Copy link

@leo-notte leo-notte commented Jan 30, 2026

Greptile Overview

Greptile Summary

This PR improves output formatting across the CLI for better user experience in text mode while preserving JSON mode functionality.

Key Changes:

  • Added descriptive headers ("Scraped content from the current page:") to scrape command output
  • Implemented simplified session status display with condensed Steps formatting (shows action types in brackets instead of full nested objects)
  • Enhanced error messages to combine exception and message fields when both are present and different
  • Extracted Python script directly in text mode for workflow-code command instead of wrapping in JSON structure

Impact:
The changes make CLI output more readable and user-friendly without affecting programmatic JSON output. All formatting changes respect the --output json flag.

Confidence Score: 5/5

  • This PR is safe to merge with no issues identified
  • The changes are purely cosmetic improvements to output formatting. They maintain backward compatibility with JSON mode, don't modify any business logic, and follow existing code patterns. The error handling improvements provide better context without changing behavior.
  • No files require special attention

Important Files Changed

Filename Overview
internal/cmd/output_helpers.go Added header text for scrape output and new printSessionStatus function with simplified Steps formatting
internal/cmd/page.go Enhanced error message formatting to include both exception and message when different
internal/cmd/sessions.go Updated to use new formatting functions for better text-mode output

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

1 file reviewed, no comments

Edit Code Review Agent Settings | Greptile

@leo-notte
Copy link
Author

@greptileai

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

3 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

@leo-notte leo-notte merged commit d67cfe3 into main Jan 30, 2026
2 checks passed
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