Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add session name upon quit #299

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/goose/cli/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ def load_session(self) -> list[Message]:

def _log_cost(self, start_time: datetime, end_time: datetime) -> None:
get_logger().info(get_total_cost_message(self.exchange.get_token_usage(), self.name, start_time, end_time))
print(f"[dim]you can view the cost and token usage in the log directory {LOG_PATH}[/]")
print(
f"[dim]Session '{self.name}' ended. You can view the cost and token usage in the log directory {LOG_PATH}[/]"
)

def _prompt_overwrite_session(self) -> None:
print(f"[yellow]Session already exists at {self.session_file_path}.[/]")
Expand Down
Loading