Skip to content

Commit

Permalink
added info message about session file location
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeizhou-ap committed Sep 25, 2024
1 parent 4f03268 commit 5ecc326
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/goose/cli/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def run(self) -> None:
except Exception:
# rewind to right before the last user message
self.exchange.rewind()
print(traceback.format_exc())
print(traceback.lformat_exc())
print(
"\n[red]The error above was an exception we were not able to handle.\n\n[/]"
+ "These errors are often related to connection or authentication\n"
Expand Down Expand Up @@ -234,6 +234,11 @@ def session_file_path(self) -> Path:
return session_path(self.name)

def load_session(self) -> List[Message]:
message = (
f"session is going to be saved to [bold cyan]{self.session_file_path}[/bold cyan]."
+ " You can view it anytime."
)
print(Panel(message))
return read_or_create_file(self.session_file_path)

def _log_cost(self) -> None:
Expand Down

0 comments on commit 5ecc326

Please sign in to comment.