Restore initial communication guidance across legacy execution paths

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-09-21 14:02:04 -05:00
1 parent 38cfd21765
commit 0deee9ed4d
12 files changed
+98 -36

No files matched your search

@@ -26,6 +26,7 @@ import {
resolveLegacyPaperclipDesiredSkillNames,
resolvePaperclipDesiredSkillNames,
selectPaperclipTaskMarkdown,
selectInitialCommunicationGuidance,
runningProcesses,
runChildProcess,
sanitizeSshRemoteEnv,
@@ -3061,6 +3062,9 @@ describe("selectPaperclipTaskMarkdown", () => {
paperclipWake: wake("issue_commented"),
};
expect(selectPaperclipTaskMarkdown(context)).toContain("Saved initial guidance");
expect(selectInitialCommunicationGuidance({ paperclipTaskCommunicationGuidance: " Slack preference " })).toBe("Slack preference");
expect(selectInitialCommunicationGuidance(context, { resumedSession: true })).toBe("");
expect(selectInitialCommunicationGuidance({})).toBe("");
expect(selectPaperclipTaskMarkdown(context, { resumedSession: true })).toBe(compactMarkdown);
expect(selectPaperclipTaskMarkdown(context, { includeCommunicationGuidance: false })).toBe(fullMarkdown);
context.paperclipWake = { ...wake("issue_monitor_recovery"), recovery: { cause: "process_lost" } } as typeof context.paperclipWake;