Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: preserve completion guidance helper default

[._.]/ Adam Eivyc01d1d2bd4a1
diff --git a/server/services/promptSections/completion.js b/server/services/promptSections/completion.js
index fce7df9ce3..c49b8e2056 100644
--- a/server/services/promptSections/completion.js
+++ b/server/services/promptSections/completion.js
@@ -44,7 +44,7 @@ function withNoChangeAuditGuidance(guidance, noChangeSuccess) {
export function buildCompletionGuidelineBullet({
isReadOnly, isTui, tuiCompletionCommand, slashdoFree = false,
worktreeInfo, willOpenPR, prCompletion = PR_COMPLETIONS.MERGE_ON_GREEN, discardWorktree = false, noCodeOutput = false,
- leavePrOpen = false, isPrFollowUp = false, claimFlow = false, noChangeSuccess = false, whenDone = 'leave-uncommitted',
+ leavePrOpen = false, isPrFollowUp = false, claimFlow = false, noChangeSuccess = false, whenDone = null,
}) {
// A PR follow-up (review-loop or merge-only) already carries its own PRIMARY
// OBJECTIVE section with the full procedure, and its cleanup runs with
@@ -100,7 +100,7 @@ export function buildCompletionGuidelineBullet({
if (worktreeInfo) {
return withNoChangeAuditGuidance('Your worktree branch will be automatically merged back to the source branch when your task completes — do NOT open a PR.', noChangeSuccess);
}
- return whenDone === 'commit-push'
+ return whenDone === null ? null : whenDone === 'commit-push'
? 'Commit and push your changes to the default branch (see Git Hygiene below).'
: 'Leave your code changes uncommitted in the default branch; do not commit or push.';
}