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(session): Print previous session prompts when resuming a session #634

Open
wants to merge 2 commits into
base: v1.0
Choose a base branch
from

Conversation

atishpatel
Copy link
Collaborator

Sometimes i want to rerun a previous prompt with goose when the underlying data has changed. This change will print the previous prompts when resuming a session to help remind me of the context and help me copy paste older prompts that were effective.

Also fixed help output since --session flag doesn't exists. It's suppose to be the --name flag.

Resumed session

❯ ./target/debug/goose session -r --name t7alxs5d
resuming session | provider: databricks model: claude-3-5-sonnet-2
    logging to /Users/atish/.config/goose/sessions/t7alxs5d.jsonl

Previous prompts for resuming session:
> find all the csv files in the ./tmp directory. 
> Use the data in the csv files to create a new csv file that shows total number of empty nodes per dc compared to the total number of nodes


Goose is running! Enter your instructions, or try asking what goose can do.


( O)>
Closing session. Recorded to /Users/atish/.config/goose/sessions/t7alxs5d.jsonl

Child process ended (EOF on stdout)

New sessions

❯ ./target/debug/goose session
starting session | provider: databricks model: claude-3-5-sonnet-2
    logging to /Users/atish/.config/goose/sessions/aswuff9b.jsonl


Goose is running! Enter your instructions, or try asking what goose can do.


( O)>

@baxen
Copy link
Collaborator

baxen commented Feb 17, 2025

@atishpatel this is great, sorry we missed reviewing this earlier. Would you mind rebasing to main?

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