Skip to content

Type a direct send into any loop whose session is up - #1018

Merged
scgopi merged 1 commit into
mainfrom
feat/status-agnostic-send
Nov 26, 2026
Merged

scgopi merged 1 commit into
mainfrom
feat/status-agnostic-send

Conversation

@scgopi

@scgopi scgopi commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Summary

graphcode node send staged a message to memory whenever the target was not running, idle or waiting, unless it had succeeded or failed with a live session. Two cases never reached a live session:

  • Stopped, stalled, blocked and awaiting-input loops were staged without checking for a session.
  • In a remote project, every finished loop was staged: the local zmx ls cannot see remote sessions and answers absent for all of them.

A direct send now types into any loop whose session is up, whatever its state, and leaves the state untouched. For a remote project the session is read through presence over ssh. A message is staged only when there is no session to type into.

Broadcasts are unchanged: they still stage for stopped, stalled and blocked loops.

Tests

  • New: a stopped loop with a live session is typed into and stays stopped; a stopped loop whose session ended is staged.
  • The remote path has no test (needs a remote rig).

RED: xcodebuild test -only-testing:graphcodeTests/GoalResolutionFollowUpTests with main's GraphStore.swift -> aMessageToAStoppedLoopWithALiveSessionIsTypedInAndLeavesItStopped failed with 2 issues, exit 65
GREEN: xcodebuild test -only-testing:graphcodeTests/GoalResolutionFollowUpTests with this branch -> 8 tests passed, exit 0
REGRESSION: xcodebuild test -only-testing GoalResolutionFollowUpTests, FollowUpMessageTests, MessageAndSpawnTests -> 29 tests in 3 suites passed, exit 0

node send staged a message to memory whenever the loop's state was not
running/idle/waiting, unless it had succeeded or failed with a live
session. Stopped, stalled, blocked and awaiting-input loops with a live
session were never typed into, and a remote project's finished loops were
always staged because the local zmx listing cannot see remote sessions.

A direct send now types into any loop whose session is up, read through
presence over ssh for a remote project, and stages only when there is no
session. The loop's state is untouched.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: scgopi <[email protected]>
@scgopi
scgopi merged commit 2b1e1be into main Nov 26, 2026
29 of 34 checks passed
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