[BUG] Resuming a conversation by session ID broken in print mode

Status Fixed / completed
Maintainer reply ✓ Yes — igorkofman
Activity 8 comments · opened Jul 14, 2025 · closed Jul 21, 2025
💡 Likely answer: A maintainer (igorkofman, collaborator) responded on this thread — see the highlighted reply below.

This is a duplicate of #1967. It is still broken in 1.0.51. Can we re-open that or do you need a new ticket?

View original on GitHub ↗

8 Comments

foertel · 1 year ago

/cc @igorkofman

foertel · 1 year ago

Now we have -session-id and it is still broken. :-/ You can only start new sessions with --session-id but you can not continue them with --resume. That's sad ...

igorkofman collaborator · 1 year ago

Resuming a session creates a new session id - that is how the feature is designed to work (to allow working of sessions) and works the same in interactive mode.

foertel · 1 year ago

@igorkofman Okay, then I misunderstood your comment over here.

So session-ids are supposed to change in every turn in a multi-turn conversation to the same session. That should really be reflected in the docs.

pnelson · 1 year ago

I was also surprised having recently read that comment. Furthermore, https://support.anthropic.com/en/articles/11014257-about-claude-s-max-plan-usage says there's a soft limit of 50 sessions per month which seems like it would be burned up quickly for any reasonable use of this unless 5 hour session windows can have multiple session IDs?

igorkofman collaborator · 1 year ago

That's an estimate around typical interactive session use.

On Mon, Jul 21, 2025 at 6:55 AM Phil @.***> wrote:

pnelson left a comment (anthropics/claude-code#3510) <https://github.com/anthropics/claude-code/issues/3510#issuecomment-3096888508> I was also surprised having recently read that comment. Furthermore, https://support.anthropic.com/en/articles/11014257-about-claude-s-max-plan-usage says there's a soft limit of 50 sessions per month which seems like it would be burned up quickly for any reasonable use of this unless 5 hour session windows can have multiple session IDs? — Reply to this email directly, view it on GitHub <https://github.com/anthropics/claude-code/issues/3510#issuecomment-3096888508>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AADSWQTYTMJB2AJAOT536F33JTWOHAVCNFSM6AAAAACBQMCOC6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTAOJWHA4DQNJQHA> . You are receiving this because you were mentioned.Message ID: @.***>
rembo10 · 1 year ago

It seems like it would make more sense to use the same session/session_id in --print mode

github-actions[bot] · 1 year ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.