MCPcopy Create free account
hub / github.com/Facets-cloud/flow / currentSessionID

Function currentSessionID

internal/app/helpers.go:21–26  ·  view source on GitHub ↗

currentSessionID returns this process's harness session id, or "" if not running inside any known harness. Probes every implemented harness's session-id env var and returns the one that's set.

()

Source from the content-addressed store, hash-verified

19// if not running inside any known harness. Probes every implemented
20// harness's session-id env var and returns the one that's set.
21func currentSessionID() string {
22 if h := ambientHarness(); h != nil {
23 return os.Getenv(h.SessionIDEnvVar())
24 }
25 return ""
26}
27
28// currentSessionTask returns the task bound to this Claude session
29// via tasks.session_id. Returns sql.ErrNoRows if the current session

Callers 5

currentSessionTaskFunction · 0.85
showTaskCmdFunction · 0.85
showProjectCmdFunction · 0.85
cmdRunPlaybookFunction · 0.85
cmdTranscriptFunction · 0.85

Calls 2

ambientHarnessFunction · 0.85
SessionIDEnvVarMethod · 0.65

Tested by

no test coverage detected