Skip to content

feat: display session URL on SessionStart hook#8

Merged
sestinj merged 1 commit intomainfrom
feat/session-start-url
Feb 21, 2026
Merged

feat: display session URL on SessionStart hook#8
sestinj merged 1 commit intomainfrom
feat/session-start-url

Conversation

@sestinj
Copy link
Owner

@sestinj sestinj commented Feb 21, 2026

Summary

  • Generate a 12-char nanoid share slug in the SessionStart hook handler
  • Store it at ~/.threader/share-slugs/{session_id} for the uploader
  • Print 🧵 https://threader.sh/s/{slug} to stderr (Claude Code displays hook stderr to user)
  • Uploader reads the local slug and includes it in the POST /api/sessions create request

Requires the backend PR (sestinj/threader-internal#75) to be deployed first so the API accepts the share_slug parameter.

Test plan

  • cargo check compiles cleanly
  • Manual test: start a Claude Code session, verify URL appears
  • Verify slug file written to ~/.threader/share-slugs/
  • Verify uploader sends slug and backend uses it

Thread: https://threader.sh/s/ewjVv4KJLn-A

🤖 Generated with Claude Code


Continue Tasks: ✅ 2 no changes — View all

Generate a nanoid share slug during the SessionStart hook and print the
threader.sh URL to stderr so Claude Code shows it to the user. The slug
is stored locally and sent with the session create request so the
backend uses the same slug.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sestinj sestinj merged commit fdf4e43 into main Feb 21, 2026
3 checks passed
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