Skip to content

Feature/run name#37

Merged
DhruvSrikanth merged 8 commits intodevfrom
feature/run-name
Jul 17, 2025
Merged

Feature/run name#37
DhruvSrikanth merged 8 commits intodevfrom
feature/run-name

Conversation

@DhruvSrikanth
Copy link
Copy Markdown
Member

Changes

  • Only retry requests on rate limit errors
  • Redesign top left panel to include run name improve arrangement of optimization information displayed
  • Improve error messages displayed to the user

@DhruvSrikanth DhruvSrikanth requested a review from Copilot July 17, 2025 14:13
@DhruvSrikanth DhruvSrikanth self-assigned this Jul 17, 2025
@DhruvSrikanth DhruvSrikanth added the enhancement New feature or request label Jul 17, 2025
@DhruvSrikanth DhruvSrikanth merged commit 54c6239 into dev Jul 17, 2025
1 check passed
@DhruvSrikanth DhruvSrikanth deleted the feature/run-name branch July 17, 2025 14:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refines retry logic to only target rate limits, overhauls the top-left summary panel to include a run name and “thinking” content (removing the separate plan panel), and sharpens error messages across modules.

  • Restrict API retries to status 429 and streamline heartbeat logging
  • Redesign SummaryPanel to show run_name and dynamic thinking content; drop PlanPanel
  • Improve clarity of user-facing error messages in utils, CLI, chatbot, auth, and API layers

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
weco/utils.py Clarified error messages in LLM key detection and file writes
weco/panels.py Overhauled SummaryPanel to display run name and thinking; removed PlanPanel
weco/optimizer.py Integrated run_name handling, removed PlanPanel references, refined heartbeat logging
weco/cli.py Enhanced invalid-directory error message
weco/chatbot.py Extended retry and unexpected-error messages
weco/auth.py Unified credential file error/warning prints
weco/api.py Limited retry strategy to 429, unified exception handling, adjusted heartbeat logs
Comments suppressed due to low confidence (4)

weco/panels.py:55

  • Add unit tests covering set_run_name, update_thinking, clear_thinking, and both display paths in get_display to ensure the new run_name and thinking_content logic is exercised.
    def set_run_name(self, run_name: str):

weco/utils.py:87

  • This error message implies a file-path issue, but the TypeError is raised when content is not a str or dict. Consider restoring specificity: e.g., "Content must be str or Dict[str, Any]" or include both causes.
            raise TypeError("Error writing to file. Please verify the file path and try again.")

weco/panels.py:101

  • When final_message is None, the panel no longer shows the optimization goal (previously self.goal). Reintroduce a goal row using maximize and metric_name, for example: "[bold cyan]Goal:[/] {'Maximizing' if self.maximize else 'Minimizing'} {self.metric_name}...".
        summary_table.add_row("")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants