Skip to content

fix(control): set reply_to lineage env only for locally placed sessions - #377

Merged
kombuchapunk merged 1 commit into
mainfrom
fix/bug-331-reply-to-local
Dec 4, 2026
Merged

kombuchapunk merged 1 commit into
mainfrom
fix/bug-331-reply-to-local

Conversation

@kombuchapunk

Copy link
Copy Markdown
Collaborator

Fixes the cross-machine reply_to bug documented in #331:

  • childEnv() in packages/cli/src/control/daemon.ts now reads from this.handoffs.get(id) instead of unconditionally stamping SESSIONPIPE_ASKED_BY (delegated_by) and SESSIONPIPE_ASK_CHAIN whenever cmd.reply_to is present.
  • When reply_to is not placed on this computer (remote machine, nonexistent session, disallowed folder, or ambiguous home), no lineage env is set (matching spec/CONTROL.md §6 "no handoff at all").
  • Locally placed handoffs continue to receive both env vars across cold starts, prompts, and reroute().
  • Includes cross-platform regression tests (Unix socket + Windows named pipe) at 100% coverage and a patch changeset.

QA verified (Codex gpt-6.2-sol): 0 blockers, 0 high across cold starts, prompts, Interrupt reroutes, local asks, loop/depth checks, folder revocation, and transcript deletion.

Refs #331

Signed-off-by: kombuchapunk <35040017+kombuchapunk@users.noreply.github.com>
@kombuchapunk
kombuchapunk merged commit 79ebe6b into main Dec 4, 2026
18 checks passed
@kombuchapunk
kombuchapunk deleted the fix/bug-331-reply-to-local branch December 4, 2026 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant