-
-
Notifications
You must be signed in to change notification settings - Fork 319
Description
Claude Code 2.1.9 is going to support the CLAUDE_SESSION_ID environment variable for skills.
However, I've noticed that ccusage seems to have a little confusion over sessionId vs. project name. Example:
ccusage session --json
{
"sessions": [
{
"sessionId": "-Users-noahlz-projects-myproject",
"inputTokens": 1320207,
"outputTokens": 68264,
"cacheCreationTokens": 46395029,
"cacheReadTokens": 486593734,
"totalTokens": 534377234,
...
sessionId is named for the project directory i.e. \Users\noahlz\projects\myproject is converted to -Users-noahlz-projects-myproject in this case. These are actually project names according to Claude - see output of ls $HOME/.claude/projects
And now, 2.1.9 is adding the skill env variable $CLAUDE_SESSION_ID which makes clear that Claude Code considers session Ids to be GUID values:
anthropics/claude-code/issues/17188
anthropics/claude-code@5a91286
I don't have a bug report here, just hoping for clarification / explanation having sessionId being based on the project name. Am I missing something here?