diff --git a/app/connections.tsx b/app/connections.tsx index 263dfa9..b8a5db7 100644 --- a/app/connections.tsx +++ b/app/connections.tsx @@ -62,6 +62,8 @@ export function Connections({ const [workflow, setWorkflow] = useState('research'); const [loading, setLoading] = useState(false); + const [nextTask, setNextTask] = useState(''); + const [research, setResearch] = useState(''); function editorTarget() { return current?.session ? { @@ -108,12 +110,12 @@ export function Connections({ if (assistant) { try { downloadFile( - assistantPrompt(packet, assistant), + assistantPrompt(packet, assistant, false, { nextTask, research }), `relay-${assistant}-prompt.md`, 'text/markdown', ); setNote( - 'Prompt downloaded. Share it with your chosen assistant, save its JSON response, then load that file here for review. Only this job, the visible draft and supplied facts are included.', + 'Prompt downloaded with this job, visible draft, supplied facts and the task context shown below. Share it with your assistant, then paste or load its JSON response here for review.', ); } catch (error) { setNote( @@ -254,6 +256,59 @@ export function Connections({ placeholder="Only include facts you want to share with your chosen assistant. These facts are not saved here." /> +
+ Continue a task with ChatGPT or Codex +

+ Add only what this draft needs. These optional details go into Prepare + for ChatGPT and Prepare for Codex downloads, not the plain job packet. + They are not saved here. +

+