MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / extractHeadlessSessionId

Method extractHeadlessSessionId

src/workspaces/cli-adapter.ts:198–198  ·  view source on GitHub ↗

* Extract the agent's OWN session id from one line of headless stdout. * All four agent CLIs announce their session id in the first line(s) of * their structured headless output (verified 2026-06-11): * claude: every stream-json event carries `session_id` * codex: `{"type":"thre

(line: string)

Source from the content-addressed store, hash-verified

196 * `capabilities.headless` (shell excluded).
197 */
198 extractHeadlessSessionId?(line: string): string | null;
199
200 /** Optional per-CLI env adjustments on top of `spawn-env.ts`'s baseline. */
201 envOverrides?(parent: NodeJS.ProcessEnv): EnvOverrides;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected