Open
Conversation
When uploading a gist, creates a {session_title}.md file with placeholder
content so GitHub uses the session title as the gist name. The title is
sourced from the session summary (local/json) or session title (web).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The session detail API response doesn't have a top-level "title" field,
so session_data.get("title") was returning None. Extracted common logic
into get_title_from_session_data() which checks for a title field first,
then falls back to the first user message in loglines.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I love this tool except that every gist is effectively named "index.html" So if you look at your personal gist page, it's just a bunch of /index.html gists. This PR adds a file titled .md with the contents "Empty file to name gist".
I am not particularly wedded to the exact details of this PR. You want the filename not ending on ".md"? Don't want to bother with even adding "Empty file to name gist" to the title file? Works for me.
Oh, I've only tested it using the web since I rarely use Claude Code directly on the CLI.