Skip to content

Add a "title" file to the gist#64

Open
paulkchen wants to merge 2 commits intosimonw:mainfrom
paulkchen:main
Open

Add a "title" file to the gist#64
paulkchen wants to merge 2 commits intosimonw:mainfrom
paulkchen:main

Conversation

@paulkchen
Copy link

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.

paulkchen and others added 2 commits February 6, 2026 13:29
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>
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