Skip session resume prompt when --new-session flag is passed

When users explicitly pass --new-session, they want a fresh session.
Previously g3 would still prompt to resume an existing session.
Now the resume check is skipped entirely when the flag is set.
This commit is contained in:
Dhanji R. Prasanna
2026-01-14 08:54:35 +05:30
parent dea0e6b1ca
commit 996dc357b4
3 changed files with 7 additions and 2 deletions

View File

@@ -299,6 +299,7 @@ async fn handle_command(
cli.show_code,
chat_combined_content,
workspace_dir,
cli.new_session,
)
.await?;