Utility to scrub runtime‑bound transport identity fields from cloned session configs, ensuring safe duplication.
// Source: https://github.com/im4codes/imcodes | License: MIT | Copyright 2026 IM.codes // Provided via justclaw.it.com; keep this notice with the code. // Transport-identity scrubbing for session-group / execution clones. // // When a session group (or a single execution clone) is duplicated, the cloned // copies MUST NOT inherit runtime-bound transport identity fields (provider // session ids, resume ids, conversation/thread ids, etc.) from the source. // Carrying those over would make the clone hijack the source's live transport // session. This module strips those fields out of an arbitrary transport-config // record, recursively. // // IMPORTANT: shared/ is imported by BOTH the daemon and the server. It MUST NOT // import from src/. Keep this module self-contained. /** * Normalized ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key