Skip to content

Resume a session by pasting a session ID or resume command#107

Draft
mcintyre94 wants to merge 1 commit intostart-chat-from-directory-e216cd70from
resume-from-session-id-b3e8a21f
Draft

Resume a session by pasting a session ID or resume command#107
mcintyre94 wants to merge 1 commit intostart-chat-from-directory-e216cd70from
resume-from-session-id-b3e8a21f

Conversation

@mcintyre94
Copy link
Owner

Stacked on #106 — merge that first.

Summary

  • Session ID input in empty chat state — a new "Resume by session ID" field appears below session suggestions; accepts a bare UUID or a full claude --resume SESSION_ID ... command pasted directly from terminal output
  • Automatic working directory discovery — looks up the session .jsonl file on the Sprite via find, reads .cwd from the file contents (more robust than decoding the directory name), and sets the working directory automatically before loading history
  • Handles both bare UUIDs and full claude commands via UUID regex extraction
  • Shows loading state while the Sprite wakes and the lookup runs; inline error if the session isn't found

Test plan

  • Paste a bare session UUID → working directory is set correctly and history loads
  • Paste a full claude --resume SESSION_ID "prompt" command → UUID is extracted and same flow runs
  • Enter a non-existent session ID → inline error "Session not found on this Sprite"
  • Enter something with no UUID → inline error "No valid session ID found"
  • Works when Sprite is cold (wakes automatically during exec)

🤖 Generated with Claude Code

On the empty chat screen, a new "Resume by session ID" input accepts
a bare UUID or a full `claude --resume SESSION_ID ...` command. Wisp
looks up the session file on the Sprite to read the cwd, sets the
working directory accordingly, and loads the session history — no
manual directory selection needed.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant