Remote sessions can re-read their access token from a file
Claude Code can re-read the session token from the file named in CLAUDE_SESSION_INGRESS_TOKEN_FILE, and the runner empties that file if writing it fails
Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
SessionsArea: what it touches
Internal ChangesKind: in v2.1.333,
Internal ChangesSection of the release
What
Claude Code can now produce a small shell step that reads the session ingress token from a file. The session ingress token is a credential that remote sessions use. The file is the one named in CLAUDE_SESSION_INGRESS_TOKEN_FILE. The step only reads the file when all of these hold:
a particular variable is set
the path is an ordinary file
the path is not a symbolic link, which is a shortcut pointing at another file
It only accepts a token made of letters, digits, ., _ and -. A separate step removes the variable from the environment.
When writing the token file fails, the runner that hosts the session now empties the file. The log message says that git and gh may use an older token until the runner empties or next writes the file.
Why
This lets a remote session pick up a fresh token while it runs, without handing the file's location on to the programs it starts.