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 plan-only task context and form defaults

[._.]/ Adam Eivy8558a6ade411
diff --git a/client/src/components/cos/TaskAddForm.jsx b/client/src/components/cos/TaskAddForm.jsx
index 95fc20f402..eb9659baf5 100644
--- a/client/src/components/cos/TaskAddForm.jsx
+++ b/client/src/components/cos/TaskAddForm.jsx
@@ -177,7 +177,7 @@ export default function TaskAddForm({ providers, apps, onTaskAdded, compact = fa
setUseWorktree(defaultUseWorktree);
setOpenPR(defaultOpenPR);
setPrCompletion(selectedApp?.defaultPrCompletion || DEFAULT_PR_COMPLETION);
- }, [appDefaultsSig]);
+ }, [appDefaultsSig, planOnly]);
// Get models for selected provider. The form carries its own Thinking Effort
// select and submits it, so Antigravity lists BASE models (`gemini-3.6-flash`)
diff --git a/client/src/components/cos/TaskAddForm.test.jsx b/client/src/components/cos/TaskAddForm.test.jsx
index 4b01127565..b349a0d323 100644
--- a/client/src/components/cos/TaskAddForm.test.jsx
+++ b/client/src/components/cos/TaskAddForm.test.jsx
@@ -103,6 +103,13 @@ describe('TaskAddForm responsive layout', () => {
worktreeChangesExpected: false,
createJiraTicket: false,
});
+
+ await user.click(planOnlyToggle());
+ await waitFor(() => {
+ expect(planOnlyToggle()).not.toBeChecked();
+ expect(worktreeToggle()).toBeChecked();
+ expect(openPrToggle()).toBeChecked();
+ });
});
});
diff --git a/server/lib/slashdoInvocation.js b/server/lib/slashdoInvocation.js
index 66a39e7866..f4e5db1655 100644
--- a/server/lib/slashdoInvocation.js
+++ b/server/lib/slashdoInvocation.js
@@ -424,14 +424,21 @@ export function oversizedBodyPointer(bodyPath, body) {
* suffix, so the prose would just have the agent pass the flag twice. Unpinned,
* the workflow resolves reviewers itself and this is the pin's only route to the
* CLI it spawns.
+ * @param {boolean} [opts.includeTaskContext=false] - keep the task-context bridge
+ * even when the invocation has explicit flags instead of a free-text target
* @returns {string} markdown section, or '' when `resolved` is null
*/
-export function buildSlashdoSection(resolved, body = null, { bodyPath = null, reviewWith = '', reviewerEffortNote = '' } = {}) {
+export function buildSlashdoSection(resolved, body = null, {
+ bodyPath = null,
+ reviewWith = '',
+ reviewerEffortNote = '',
+ includeTaskContext = false,
+} = {}) {
if (!resolved) return '';
// Without explicit args the workflow operates on the task described above —
// say so rather than re-printing the whole description inside the invocation.
- const target = resolved.args ? '' : ' Apply it to the task described above.';
+ const target = resolved.args && !includeTaskContext ? '' : ' Apply it to the task described above.';
const lines = ['### Slashdo Workflow'];
if (resolved.style === SLASHDO_INVOCATION_STYLES.SKILL) {
diff --git a/server/services/agentPromptBuilder.test.js b/server/services/agentPromptBuilder.test.js
index fa8b5fe65e..d61d8a68a1 100644
--- a/server/services/agentPromptBuilder.test.js
+++ b/server/services/agentPromptBuilder.test.js
@@ -2630,6 +2630,7 @@ describe('buildAgentPrompt — slashdo-backed tasks', () => {
{ providerType: 'cli', providerId: 'codex' });
expect(prompt).toContain('--issues --yes');
+ expect(prompt).toContain('Apply it to the task described above.');
expect(prompt).toContain('## Completion (No Code Output)');
expect(prompt).not.toContain('## Completion Workflow');
expect(prompt).not.toContain('## Simplify Step');
diff --git a/server/services/promptSections/slashdo.js b/server/services/promptSections/slashdo.js
index 0ed6685cb6..e43d2a0523 100644
--- a/server/services/promptSections/slashdo.js
+++ b/server/services/promptSections/slashdo.js
@@ -147,6 +147,14 @@ export async function applySlashdoInvocation(task, {
// spawns (the `/do:pr` completion step further down is a different invocation
// entirely, and for a slashdo-backed task usually isn't reached).
const reviewerEffortNote = buildReviewerEffortNote(resolvedReviewers, resolvedEfforts, { reviewWith, reviewerModels: resolvedModels });
- const section = buildSlashdoSection(resolved, body, { bodyPath, reviewWith, reviewerEffortNote });
+ // Plan-only supplies destination/approval flags as slashdo args, so preserve
+ // the task description bridge that those flags would otherwise suppress.
+ const includeTaskContext = task.metadata?.planOnly === true || task.metadata?.planOnly === 'true';
+ const section = buildSlashdoSection(resolved, body, {
+ bodyPath,
+ reviewWith,
+ reviewerEffortNote,
+ includeTaskContext,
+ });
return { ...task, description: `${task.description}\n\n${section}` };
}