tryharness 0.7.32 → 0.7.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -716,12 +716,15 @@ export function createCoordinator({
716
716
  return;
717
717
  }
718
718
  // Harness assembles the person's message at once, even while agents work; anything else waits for a quiet thread,
719
- // but for the goal, which keeps up with what the person says at once.
719
+ // but for the goal, which keeps up with what the person says at once. A thread the person resumed gets its round
720
+ // with nothing new posted: resuming says only "go on", in a note.
720
721
  const assembling = Boolean(asked) && assembles();
721
- if (!assembling && (!posts.length || active)) {
722
+ const resumedNow = store.meta(`coordinator-resumed:${goalId}`) === "1";
723
+ if (!assembling && (active || (!posts.length && !resumedNow))) {
722
724
  if (posts.length) await keepGoalNow(thread, state);
723
725
  return;
724
726
  }
727
+ if (resumedNow) store.meta(`coordinator-resumed:${goalId}`, "");
725
728
  // A task's own room is coordinated once it becomes a conversation: someone posted in it, not only the task and its result.
726
729
  if (
727
730
  store.meta(`task-room:${goalId}`) &&
@@ -887,6 +890,13 @@ export function createCoordinator({
887
890
  poke(goalId);
888
891
  };
889
892
 
893
+ /** The person resumed a paused thread: its round looks at where it stands, though only notes came in since
894
+ * (October 17: a resume reopened a thread that then sat with Codex's handoff unread). */
895
+ const resumed = (goalId) => {
896
+ store.meta(`coordinator-resumed:${goalId}`, "1");
897
+ poke(goalId);
898
+ };
899
+
890
900
  /** A thread changed: run a round once it is quiet; one at a time per thread, again if more came in meanwhile. */
891
901
  const poke = (goalId) => {
892
902
  if (busy.has(goalId)) {
@@ -904,5 +914,5 @@ export function createCoordinator({
904
914
  })
905
915
  );
906
916
  };
907
- return { poke, heard, assembles, state: stateOf };
917
+ return { poke, heard, resumed, assembles, state: stateOf };
908
918
  }